Class RepositoryAccessVoterManager

  • All Implemented Interfaces:
    org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager

    public class RepositoryAccessVoterManager
    extends Object
    implements org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager
    • Constructor Summary

      Constructors 
      Constructor Description
      RepositoryAccessVoterManager​(List<org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoter> voters, org.pentaho.platform.api.engine.IAuthorizationPolicy authorizationPolicy, String repositoryAdminUsername)  
      RepositoryAccessVoterManager​(org.pentaho.platform.api.engine.IAuthorizationPolicy authorizationPolicy, String repositoryAdminUsername)  
    • Constructor Detail

      • RepositoryAccessVoterManager

        public RepositoryAccessVoterManager​(org.pentaho.platform.api.engine.IAuthorizationPolicy authorizationPolicy,
                                            String repositoryAdminUsername)
      • RepositoryAccessVoterManager

        public RepositoryAccessVoterManager​(List<org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoter> voters,
                                            org.pentaho.platform.api.engine.IAuthorizationPolicy authorizationPolicy,
                                            String repositoryAdminUsername)
    • Method Detail

      • registerVoter

        public void registerVoter​(org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoter voter)
        Specified by:
        registerVoter in interface org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager
      • hasAccess

        public boolean hasAccess​(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                 org.pentaho.platform.api.repository2.unified.RepositoryFilePermission operation,
                                 org.pentaho.platform.api.repository2.unified.RepositoryFileAcl repositoryFileAcl,
                                 org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        hasAccess in interface org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager