コード例 #1
0
  public Set getResults(GrouperSession s) throws QueryException {
    // note, no need for GrouperSession inverse of control
    GrouperSession.validate(s);
    Set results;

    if (ns.isRootStem()) {
      results =
          PrivilegeHelper.canViewGroups(
              s, GrouperDAOFactory.getFactory().getGroup().findAllByCreatedAfter(this.d));
    } else {
      results =
          PrivilegeHelper.canViewGroups(
              s,
              GrouperDAOFactory.getFactory()
                  .getGroup()
                  .findAllByCreatedAfter(this.d, getStringForScope(ns)));
    }
    return results;
  } // public Set getResults(s)