use of org.pentaho.platform.engine.security.acls.PentahoGrantedAuthorityEffectiveAclsResolver in project pentaho-platform by pentaho.
the class PentahoBasicAclVoter method getEffectiveAcls.
public IAclEntry[] getEffectiveAcls(final IPentahoSession session, final IAclHolder holder) {
Authentication auth = getAuthentication(session);
if (auth == null) {
// No user, so no ACLs.
return null;
}
List allAcls = holder.getEffectiveAccessControls();
IAclEntry[] acls = new IAclEntry[allAcls.size()];
acls = (IAclEntry[]) allAcls.toArray(acls);
PentahoGrantedAuthorityEffectiveAclsResolver resolver = new PentahoGrantedAuthorityEffectiveAclsResolver();
IAclEntry[] resolvedAcls = resolver.resolveEffectiveAcls(acls, auth);
return resolvedAcls;
}
Aggregations