@Override public boolean hasGroupRole(IdentityType identityType, Role role, Group group) { return getContextualStoreForFeature(createContext(), Feature.readMembership) .getMembership(identityType, group, role) != null; }
@Override public boolean hasRole(IdentityType identityType, Role role) { return getContextualStoreForFeature(createContext(), Feature.readMembership) .getMembership(identityType, null, role) != null; }
@Override public boolean isMember(IdentityType identityType, Group group) { return getContextualStoreForFeature(createContext(), Feature.readMembership).getMembership(identityType, group, null) != null; }