protected Set canVIEW(GrouperSession s, Set candidates) { Set             groups  = new LinkedHashSet(); Iterator        iter    = candidates.iterator(); while (iter.hasNext()) { Group g = (Group) iter.next(); g.setSession(s); try {  this.canVIEW(s, g, s.getSubject()); groups.add(g); } catch (InsufficientPrivilegeException eIP) {  }
protected void canVIEW(GrouperSession s, Group g, Subject subj) throws  InsufficientPrivilegeException {  boolean   can   = false; Privilege priv  = AccessPrivilege.VIEW; String    msg   = "canVIEW "; if (PrivilegeResolver.getInstance().hasPriv(s, g, subj, priv)) { msg += "VIEW"; can = true;
  protected Set canVIEW(GrouperSession s, Set candidates) {    Set             groups  = new LinkedHashSet();    Iterator        iter    = candidates.iterator();    while (iter.hasNext()) {      Group g = (Group) iter.next();      g.setSession(s);      try {        // Can we view the group        this.canVIEW(s, g, s.getSubject());        groups.add(g);      }      catch (InsufficientPrivilegeException eIP) {        // Ignore      }      }    return groups;  }