Class PentahoUserOverridesVoter

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IAclVoter, org.pentaho.platform.api.engine.IPentahoInitializer

    @Deprecated
    public class PentahoUserOverridesVoter
    extends PentahoBasicAclVoter
    Deprecated.
    Extends the PentahoBasicAclVoter class, and overrides the getEffectiveAcls method to stipulate that if the current user occurrs in the access control list, that whatever access controls are listed for that user, those are the only ones returned.

    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 the standard PentahoBasicAclVoter, sally would have Execute permissions on this object because that voter will simply aggregate all applicable access controls. With this voter, the returned access controls for sally will be PentahoAclEntry.NOTHING.
    Author:
    mbatchel
    • Constructor Detail

      • PentahoUserOverridesVoter

        public PentahoUserOverridesVoter()
        Deprecated.
    • Method Detail

      • getEffectiveAcls

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