public class EntryCollector extends AccessControlObserver implements AccessControlConstants
EntryCollector
collects ACEs defined and effective for a
given Node
and listens to access control modifications in order
to inform listeners.Modifier and Type | Field and Description |
---|---|
protected NodeId |
rootID
The root id.
|
protected SessionImpl |
systemSession
The system session used to register an event listener and process the
events as well as collect AC entries.
|
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
Modifier | Constructor and Description |
---|---|
protected |
EntryCollector(SessionImpl systemSession,
NodeId rootID) |
Modifier and Type | Method and Description |
---|---|
protected void |
close()
Release all resources contained by this instance.
|
protected List<org.apache.jackrabbit.core.security.authorization.acl.Entry> |
collectEntries(NodeImpl node,
EntryFilter filter)
Collect the ACEs effective at the given node applying the specified
filter.
|
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries |
getEntries(NodeId nodeId) |
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries |
getEntries(NodeImpl node)
Retrieve the access control entries defined for the given node.
|
void |
onEvent(EventIterator events)
Collects access controlled nodes that are effected by access control
changes together with the corresponding modification types, and
notifies access control listeners about the modifications.
|
addListener, notifyListeners, removeListener
protected final SessionImpl systemSession
protected final NodeId rootID
protected EntryCollector(SessionImpl systemSession, NodeId rootID) throws RepositoryException
systemSession
- rootID
- RepositoryException
protected void close()
close
in class AccessControlObserver
protected List<org.apache.jackrabbit.core.security.authorization.acl.Entry> collectEntries(NodeImpl node, EntryFilter filter) throws RepositoryException
node
- filter
- RepositoryException
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries getEntries(NodeImpl node) throws RepositoryException
node
- RepositoryException
protected org.apache.jackrabbit.core.security.authorization.acl.EntryCollector.Entries getEntries(NodeId nodeId) throws RepositoryException
nodeId
- RepositoryException
public void onEvent(EventIterator events)
onEvent
in interface EventListener
events
- Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.