11-18-2010 11:49 AM
Set<NodeRef> people = personService.getAllPeople();
Iterator<NodeRef> users = people.iterator();
while (users.hasNext()) {
NodeRef usu = users.next();
String username = nodeService.getProperty(usu,
ContentModel.PROP_USERNAME).toString();
Set<String> auth=authorityService.getAuthoritiesForUser(username);
Iterator<String> authorities = auth.iterator();
System.out.println(username);
while(authorities.hasNext()){
String authority = authorities.next();
System.out.println(authority);
}
}
11-19-2010 03:34 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.