res.add(GroupOrStem.findByStem(s,childStem)); children=stem.getChildGroups(); it = children.iterator(); Group childGroup = null;
/** {@inheritDoc} */ public Set<String> getResults(GrouperSession s) throws QueryException { Stem stem = StemFinder.findByName(getGrouperSession(), name, false); if (stem == null) { return Collections.EMPTY_SET; } Set<String> set = new LinkedHashSet<String>(); for (Stem child : stem.getChildStems(scope)) { set.add(child.getName()); } for (Group group : stem.getChildGroups(scope)) { set.add(group.getName()); } return set; }
groups.addAll(StemFinder.findRootStem(grouperSession).getChildGroups(Scope.SUB)); } else { groups.addAll(getFilter().getResults(grouperSession));
int numberOfGroupsInTree = GrouperUiConfig.retrieveConfig().propertyValueInt("uiV2.treeGroupsOnIndexPage", 30); Set<Stem> childrenStems = stem.getChildStems(Scope.ONE, QueryOptions.create("displayExtension", true, 1, numberOfStemsInTree)); Set<Group> childrenGroups = stem.getChildGroups(Scope.ONE, AccessPrivilege.VIEW_PRIVILEGES, QueryOptions.create("displayExtension", true, 1, numberOfGroupsInTree));