Class PentahoBasicAclVoter

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IAclVoter, org.pentaho.platform.api.engine.IPentahoInitializer
    Direct Known Subclasses:
    PentahoAllowAnonymousAclVoter, PentahoUserOverridesVoter

    public class PentahoBasicAclVoter
    extends AbstractPentahoAclVoter
    implements org.pentaho.platform.api.engine.IAclVoter
    Standard basic ACL Voter. This voter simply aggregates all the applicable access controls on an object when asked for the effective ACL.

    For example, if the user (sally) belongs to the following roles:

       
    User IdRole
    sallydev
    mgr
    And the object has the following defined access controls:
       
    RoleAccess
    devExecute
    salesExecute and Subscribe
    sallyNothing
    With voter, sally would have Execute permissions on this object because this voter simply aggregates all applicable access controls.

    Author:
    mbatchel
    See Also:
    PentahoUserOverridesVoter
    • Constructor Detail

      • PentahoBasicAclVoter

        public PentahoBasicAclVoter()
    • Method Detail

      • getAuthentication

        public org.springframework.security.core.Authentication getAuthentication​(org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        getAuthentication in class AbstractPentahoAclVoter
      • hasAccess

        public boolean hasAccess​(org.pentaho.platform.api.engine.IPentahoSession session,
                                 org.pentaho.platform.api.engine.IAclHolder holder,
                                 int mask)
        Specified by:
        hasAccess in interface org.pentaho.platform.api.engine.IAclVoter
      • getEffectiveAcls

        public org.pentaho.platform.api.engine.IAclEntry[] getEffectiveAcls​(org.pentaho.platform.api.engine.IPentahoSession session,
                                                                            org.pentaho.platform.api.engine.IAclHolder holder)
        Specified by:
        getEffectiveAcls in interface org.pentaho.platform.api.engine.IAclVoter
      • getEffectiveAcl

        public PentahoAclEntry getEffectiveAcl​(org.pentaho.platform.api.engine.IPentahoSession session,
                                               org.pentaho.platform.api.engine.IAclHolder holder)
        Specified by:
        getEffectiveAcl in interface org.pentaho.platform.api.engine.IAclVoter