public class PentahoACLProvider
extends org.apache.jackrabbit.core.security.authorization.acl.ACLProvider
ACLProvider
.PARAM_ALLOW_UNKNOWN_PRINCIPALS
observationMgr, PARAM_OMIT_DEFAULT_PERMISSIONS, privilegeManager, session
N_ACCESSCONTROL, N_POLICY, N_REPO_POLICY, NT_REP_ACCESS_CONTROL, NT_REP_ACCESS_CONTROLLABLE, NT_REP_ACE, NT_REP_ACL, NT_REP_DENY_ACE, NT_REP_GRANT_ACE, NT_REP_PRINCIPAL_ACCESS_CONTROL, NT_REP_REPO_ACCESS_CONTROLLABLE, P_GLOB, P_PRINCIPAL_NAME, P_PRIVILEGES
Constructor and Description |
---|
PentahoACLProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccessRoot(Set<Principal> principals)
Overridden to:
Use custom
CompiledPermissions . |
org.apache.jackrabbit.core.security.authorization.CompiledPermissions |
compilePermissions(Set<Principal> principals)
Overridden to:
Return custom
CompiledPermissions . |
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector |
createEntryCollector(org.apache.jackrabbit.core.SessionImpl systemSession)
Overridden to:
Return custom
EntryCollector . |
protected PentahoCompiledPermissionsImpl |
getCompiledPermissions(Set<Principal> principals) |
void |
init(javax.jcr.Session systemSession,
Map conf)
Overridden to:
Store
configuration for later passing to PentahoEntryCollector .
Add JCR_READ_ACCESS_CONTROL to root ACL. |
protected void |
registerEntryCollectorWithObservationManager(javax.jcr.Session systemSession) |
protected boolean |
requireRootAclUpdate(org.apache.jackrabbit.core.security.authorization.acl.ACLEditor editor)
Returns true if the root acl needs updating (if the JCR_READ_ACCESS_CONTROL privilege is missing from the
'everyone' principle) and false otherwise.
|
protected void |
updateRootAcl(org.apache.jackrabbit.core.SessionImpl systemSession,
org.apache.jackrabbit.core.security.authorization.acl.ACLEditor editor)
Adds ACE so that everyone can read access control.
|
close, getEditor, getEffectivePolicies, getEffectivePolicies
public void init(javax.jcr.Session systemSession, Map conf) throws javax.jcr.RepositoryException
configuration
for later passing to PentahoEntryCollector
.init
in interface org.apache.jackrabbit.core.security.authorization.AccessControlProvider
init
in class org.apache.jackrabbit.core.security.authorization.acl.ACLProvider
javax.jcr.RepositoryException
protected void registerEntryCollectorWithObservationManager(javax.jcr.Session systemSession) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void updateRootAcl(org.apache.jackrabbit.core.SessionImpl systemSession, org.apache.jackrabbit.core.security.authorization.acl.ACLEditor editor) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean requireRootAclUpdate(org.apache.jackrabbit.core.security.authorization.acl.ACLEditor editor) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector createEntryCollector(org.apache.jackrabbit.core.SessionImpl systemSession) throws javax.jcr.RepositoryException
EntryCollector
.
EntryCollector
createEntryCollector
in class org.apache.jackrabbit.core.security.authorization.acl.ACLProvider
javax.jcr.RepositoryException
public org.apache.jackrabbit.core.security.authorization.CompiledPermissions compilePermissions(Set<Principal> principals) throws javax.jcr.RepositoryException
CompiledPermissions
.
compilePermissions
in interface org.apache.jackrabbit.core.security.authorization.AccessControlProvider
compilePermissions
in class org.apache.jackrabbit.core.security.authorization.acl.ACLProvider
javax.jcr.RepositoryException
PentahoCompiledPermissionsImpl
protected PentahoCompiledPermissionsImpl getCompiledPermissions(Set<Principal> principals) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean canAccessRoot(Set<Principal> principals) throws javax.jcr.RepositoryException
CompiledPermissions
.
canAccessRoot
in interface org.apache.jackrabbit.core.security.authorization.AccessControlProvider
canAccessRoot
in class org.apache.jackrabbit.core.security.authorization.acl.ACLProvider
javax.jcr.RepositoryException
PentahoCompiledPermissionsImpl
Copyright © 2019 Hitachi Vantara. All rights reserved.