public class CachingPentahoEntryCollector extends PentahoEntryCollector
CachingEntryCollector
extends PentahoEntryCollector
by keeping a cache of ACEs per access
controlled nodeId.
This class is a copy of the one in trunk of Jackrabbit. Backported here for performance reasons.Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_COLLECTOR |
rootID, systemSession
MOVE, POLICY_ADDED, POLICY_MODIFIED, POLICY_REMOVED
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 |
---|
CachingPentahoEntryCollector(org.apache.jackrabbit.core.SessionImpl systemSession,
org.apache.jackrabbit.core.id.NodeId rootID,
Map configuration)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries |
getEntries(org.apache.jackrabbit.core.id.NodeId nodeId) |
protected org.apache.jackrabbit.core.security.authorization.acl.PentahoEntryCollector.PentahoEntries |
getEntries(org.apache.jackrabbit.core.NodeImpl node)
Returns an
Entries for the given node. |
void |
notifyListeners(org.apache.jackrabbit.core.security.authorization.AccessControlModifications modifications) |
addOwnerAce, collectEntries, filterEntries, findAccessControlledNode, findNonInheritingNode, getAcesIncludingMagicAces, getAuthorizationPolicy, getRelevantAncestorAces, getRoleBindingDao, getRuntimeRoleNames, getVersionable, isAllowed
onEvent
public static final String ENTRY_COLLECTOR
public CachingPentahoEntryCollector(org.apache.jackrabbit.core.SessionImpl systemSession, org.apache.jackrabbit.core.id.NodeId rootID, Map configuration) throws javax.jcr.RepositoryException
systemSession
- A system session.rootID
- The id of the root node.javax.jcr.RepositoryException
- If an error occurs.protected void close()
close
in class org.apache.jackrabbit.core.security.authorization.acl.EntryCollector
protected org.apache.jackrabbit.core.security.authorization.acl.PentahoEntryCollector.PentahoEntries getEntries(org.apache.jackrabbit.core.NodeImpl node) throws javax.jcr.RepositoryException
PentahoEntryCollector
Entries
for the given node. This is where most of the customization lives.getEntries
in class PentahoEntryCollector
javax.jcr.RepositoryException
EntryCollector.getEntries(org.apache.jackrabbit.core.NodeImpl)
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries getEntries(org.apache.jackrabbit.core.id.NodeId nodeId) throws javax.jcr.RepositoryException
getEntries
in class org.apache.jackrabbit.core.security.authorization.acl.EntryCollector
javax.jcr.RepositoryException
EntryCollector.getEntries(org.apache.jackrabbit.core.id.NodeId)
public void notifyListeners(org.apache.jackrabbit.core.security.authorization.AccessControlModifications modifications)
notifyListeners
in class PentahoEntryCollector
AccessControlObserver.notifyListeners(org.apache.jackrabbit.core.security.authorization.AccessControlModifications)
Copyright © 2017 Hitachi Vantara. All rights reserved.