Search in sources :

Example 6 with IPentahoAclEntry

use of org.pentaho.platform.api.engine.IPentahoAclEntry in project pentaho-platform by pentaho.

the class SpringSecurityPermissionMgr method getPermissions.

public Map<IPermissionRecipient, IPermissionMask> getPermissions(final Object domainInstance) {
    IAclHolder aclHolder = (IAclHolder) domainInstance;
    List<IPentahoAclEntry> aclList = aclHolder.getAccessControls();
    return transformEntries(aclList);
}
Also used : IPentahoAclEntry(org.pentaho.platform.api.engine.IPentahoAclEntry) IAclHolder(org.pentaho.platform.api.engine.IAclHolder)

Example 7 with IPentahoAclEntry

use of org.pentaho.platform.api.engine.IPentahoAclEntry in project pentaho-platform by pentaho.

the class PentahoAllowAllAclVoter method getEffectiveAcl.

public IPentahoAclEntry getEffectiveAcl(final IPentahoSession session, final IAclHolder holder) {
    IPentahoAclEntry rtn = new PentahoAclEntry();
    rtn.setMask(IPentahoAclEntry.PERM_FULL_CONTROL);
    return rtn;
}
Also used : IPentahoAclEntry(org.pentaho.platform.api.engine.IPentahoAclEntry) IPentahoAclEntry(org.pentaho.platform.api.engine.IPentahoAclEntry) PentahoAclEntry(org.pentaho.platform.engine.security.acls.PentahoAclEntry)

Aggregations

IPentahoAclEntry (org.pentaho.platform.api.engine.IPentahoAclEntry)7 PentahoAclEntry (org.pentaho.platform.engine.security.acls.PentahoAclEntry)4 IAclHolder (org.pentaho.platform.api.engine.IAclHolder)3 SimpleGrantedAuthority (org.springframework.security.core.authority.SimpleGrantedAuthority)3 ArrayList (java.util.ArrayList)2 IPermissionMask (org.pentaho.platform.api.engine.IPermissionMask)2 IPermissionRecipient (org.pentaho.platform.api.engine.IPermissionRecipient)2 LinkedHashMap (java.util.LinkedHashMap)1 Entry (java.util.Map.Entry)1 IAclEntry (org.pentaho.platform.api.engine.IAclEntry)1 RepositoryFileAce (org.pentaho.platform.api.repository2.unified.RepositoryFileAce)1 RepositoryFilePermission (org.pentaho.platform.api.repository2.unified.RepositoryFilePermission)1