Class SharedObjectsDefaultAclHandler

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

    public class SharedObjectsDefaultAclHandler
    extends InheritDefaultAclHandler
    This default acl handler sets the default security to Authenticated ALL for specific shared paths specified by a list in the configuration, defaulting to just databases at this time.
    Author:
    Will Gorman (wgorman@pentaho.com)
    • Constructor Detail

      • SharedObjectsDefaultAclHandler

        public SharedObjectsDefaultAclHandler()
      • SharedObjectsDefaultAclHandler

        public SharedObjectsDefaultAclHandler​(String authenticatedRoleName,
                                              List<String> sharedObjectPaths)
    • Method Detail

      • applyAuthRule

        protected boolean applyAuthRule​(org.pentaho.platform.api.repository2.unified.RepositoryFile file)
        Logic to determine if we should use default Authenticated permission vs. Inheriting permission. This is the approach we take with Shared Objects in the DI Server.
        Parameters:
        file - repository file to examine
        Returns:
        whether this file is in a shared object path
      • createDefaultAcl

        public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl createDefaultAcl​(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
        Determine the correct default acls and return it.
        Specified by:
        createDefaultAcl in interface org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler
        Overrides:
        createDefaultAcl in class InheritDefaultAclHandler
        Returns:
        default acls