private boolean matchesPrincipal(Set<String> userRoles, DataPolicy policy) { if (policy.isAnyAuthenticated() && this.getSubject() != null) { return true; } return !Collections.disjoint(policy.getMappedRoleNames(), userRoles); }
private boolean matchesPrincipal(Set<String> userRoles, DataPolicy policy) { if (policy.isAnyAuthenticated() && this.getSubject() != null) { return true; } return !Collections.disjoint(policy.getMappedRoleNames(), userRoles); }
private boolean matchesPrincipal(Set<String> userRoles, DataPolicy policy) { if (policy.isAnyAuthenticated() && this.getSubject() != null) { return true; } return !Collections.disjoint(policy.getMappedRoleNames(), userRoles); }
for (String roleName:dp.getMappedRoleNames()) { writeElement(writer, Element.MAPPED_ROLE_NAME, roleName);
for (String roleName:dp.getMappedRoleNames()) { writeElement(writer, Element.MAPPED_ROLE_NAME, roleName);