@Override public boolean hasInaccessibleDescendants(Member member) { Boolean b = inaccessibleDescendantsMap.get(member); if (b == null) { b = hierarchyAccess.hasInaccessibleDescendants(member); inaccessibleDescendantsMap.put(member, b); } return b; } }
public boolean hasInaccessibleDescendants(Member member) { // If any of the roles return all the members, // we assume that all descendants are accessible when // we create a union of these roles. final Access unionAccess = getAccess(member); if (unionAccess == Access.ALL) { return false; } if (unionAccess == Access.NONE) { return true; } for (HierarchyAccess hierarchyAccess : list) { if (hierarchyAccess.getAccess(member) == Access.CUSTOM && !hierarchyAccess.hasInaccessibleDescendants(member)) { return false; } } // All of the roles have restricted the descendants in // some way. return true; }
public boolean hasInaccessibleDescendants(Member member) { return hierarchyAccess.hasInaccessibleDescendants(member); }