/** * {@inheritDoc} */ public Collection<String> getMembersInGroups(Set<String> groupIds) { @SuppressWarnings("unchecked") Collection<Group> siteGroups = getGroups(); HashSet<String> siteGroupRefs = new HashSet<String>(siteGroups.size()); for (Group group : siteGroups) { if (groupIds == null || // null groupIds includes all groups in the site groupIds.contains(group.getId())) { siteGroupRefs.add(group.getReference()); } } Collection<String> membersInGroups = authzGroupService.getAuthzUsersInGroups(siteGroupRefs); return membersInGroups; }