private synchronized Set<IEntityGroup> buildParentGroupsSet() throws GroupsException { logger.debug( "Constructing containingGroups for member='{}'", getUnderlyingEntityIdentifier()); final Set<IEntityGroup> rslt = new HashSet<>(); for (Iterator it = GroupService.getCompositeGroupService().findParentGroups(this); it.hasNext(); ) { final IEntityGroup eg = (IEntityGroup) it.next(); rslt.add(eg); } return Collections.unmodifiableSet(rslt); }
private synchronized Set<IEntityGroup> buildParentGroupsSet() throws GroupsException { logger.debug( "Constructing containingGroups for member='{}'", getUnderlyingEntityIdentifier()); final Set<IEntityGroup> rslt = new HashSet<>(); for (Iterator it = GroupService.getCompositeGroupService().findParentGroups(this); it.hasNext(); ) { final IEntityGroup eg = (IEntityGroup) it.next(); rslt.add(eg); } return Collections.unmodifiableSet(rslt); }
Iterator<?> it = GroupService.getCompositeGroupService().findParentGroups(member); if (it.hasNext()) {
@SuppressWarnings("unchecked") final Iterator<IEntityGroup> categories = GroupService.getCompositeGroupService().findParentGroups(gm); while (categories.hasNext()) { IEntityGroup category = categories.next();