private List<String> getUniqueGroupAccessIds(UserRegistry userRegistry,
                                                 String realm, String uniqueName) throws EntryNotFoundException, RegistryException {
        List<String> uniqueGroupAccessIds = new ArrayList<String>();
        List<String> uniqueGroupIds = userRegistry.getUniqueGroupIdsForUser(uniqueName);
        Iterator<String> groupIter = uniqueGroupIds.iterator();
        while (groupIter.hasNext()) {
            String groupAccessId = AccessIdUtil.createAccessId(AccessIdUtil.TYPE_GROUP, realm, groupIter.next());
            uniqueGroupAccessIds.add(groupAccessId);
        }
        return uniqueGroupAccessIds;
    }
private List < String > getUniqueGroupAccessIds ( UserRegistry userRegistry , String realm , String uniqueName ) throws EntryNotFoundException , RegistryException { List < String > uniqueGroupAccessIds = new ArrayList < String > ( ) ; List < String > uniqueGroupIds = userRegistry . getUniqueGroupIdsForUser ( uniqueName ) ; Iterator < String > groupIter = uniqueGroupIds . iterator ( ) ; while ( groupIter . hasNext ( ) ) { String groupAccessId = AccessIdUtil . createAccessId ( AccessIdUtil . TYPE_GROUP , realm , groupIter . next ( ) ) ; uniqueGroupAccessIds . add ( groupAccessId ) ; } return uniqueGroupAccessIds ; }
Get a list of all of the groups the user belongs to, formated as
group access IDs.

@param userRegistry
@param realm
@param uniqueName
@return A list of all of the uniqueGroupAccessIds the user belongs to
@throws EntryNotFoundException
@throws RegistryException