private Set<String> getUserRoles() { return getUserRoles(getSubject()); }
private Set<String> getUserRoles() { return getUserRoles(getSubject()); }
private Set<String> getUserRoles() { return getUserRoles(getSubject()); }
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); }
public static boolean sameSubject(DQPWorkContext workContext) { Object currentContext = workContext.getSecurityHelper().getSecurityContext(); if (currentContext != null) { Subject currentUser = workContext.getSecurityHelper().getSubjectInContext(workContext.getSecurityDomain()); if (workContext.getSubject() != null && currentUser != null && workContext.getSubject().equals(currentUser)) { return true; } if (currentUser == null && workContext.getSubject() == null) { return true; //unauthenticated } } return false; }
context.setResultSetCacheEnabled(this.resultSetCacheEnabled); context.setUserRequestSourceConcurrency(this.userRequestConcurrency); context.setSubject(workContext.getSubject()); this.context.setOptions(options); this.context.setSession(workContext.getSession());
context.setResultSetCacheEnabled(this.resultSetCacheEnabled); context.setUserRequestSourceConcurrency(this.userRequestConcurrency); context.setSubject(workContext.getSubject()); this.context.setOptions(options); this.context.setSession(workContext.getSession());
context.setResultSetCacheEnabled(this.resultSetCacheEnabled); context.setUserRequestSourceConcurrency(this.userRequestConcurrency); context.setSubject(workContext.getSubject()); this.context.setOptions(options); this.context.setSession(workContext.getSession());