12-04-2006 09:04 AM
12-06-2006 03:54 AM
12-06-2006 04:17 AM
04-01-2007 11:56 PM
04-02-2007 03:48 AM
04-02-2007 06:57 PM
04-03-2007 03:12 AM
04-03-2007 10:13 AM
11-21-2007 12:32 PM
public static String getGroups(AuthorityService authorityService){
String groupList = "";
//AuthorityType authType = AuthorityType.getAuthorityType(AuthorityType.GROUP.toString());
Set<String> auts = authorityService.getAllAuthorities(AuthorityType.GROUP);
//System.out.println(auts.toString());
if (authorityService == null){
//if (logger.isDebugEnabled())
//logger.info("AuthorityService is null");
}else{
Iterator<String> iter = auts.iterator();
while (iter.hasNext()){
String autName = iter.next();
groupList += autName + "\n";
System.out.println(autName);
}
}
return (groupList);
}
call:
AuthorityService authorityService = new SimpleAuthorityServiceImpl();
User.getGroups(authorityService);
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.