Class SharedObjectsDefaultAclHandler
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.jcr.InheritDefaultAclHandler
-
- org.pentaho.platform.repository2.unified.jcr.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 Summary
Constructors Constructor Description SharedObjectsDefaultAclHandler()
SharedObjectsDefaultAclHandler(String authenticatedRoleName, List<String> sharedObjectPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
applyAuthRule(org.pentaho.platform.api.repository2.unified.RepositoryFile file)
Logic to determine if we should use default Authenticated permission vs.org.pentaho.platform.api.repository2.unified.RepositoryFileAcl
createDefaultAcl(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
Determine the correct default acls and return it.
-
-
-
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 interfaceorg.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler
- Overrides:
createDefaultAcl
in classInheritDefaultAclHandler
- Returns:
- default acls
-
-