public class HierarchyEventListener extends Object implements InternalEventListener
HierarchyEventListener...| Constructor and Description |
|---|
HierarchyEventListener(WorkspaceManager wspManager,
HierarchyManager hierarchyMgr,
CacheBehaviour cacheBehaviour) |
| Modifier and Type | Method and Description |
|---|---|
Collection<EventFilter> |
getEventFilters()
Returns a collection of event filters which is in use by this event
listener.
|
void |
onEvent(EventBundle eventBundle)
Processes
events and invalidates cached ItemStates
accordingly. |
public HierarchyEventListener(WorkspaceManager wspManager, HierarchyManager hierarchyMgr, CacheBehaviour cacheBehaviour)
public Collection<EventFilter> getEventFilters()
InternalEventListenerInternalEventListener.onEvent(org.apache.jackrabbit.spi.EventBundle) will be filtered
using the collection returned by this method. An event is included
in an event bundles if it is accepted by at least one of the filters
returned by this method.getEventFilters in interface InternalEventListenerEventFilters currently
in use by this event listener.InternalEventListener.getEventFilters()public void onEvent(EventBundle eventBundle)
events and invalidates cached ItemStates
accordingly. Note that this is performed for local changes only,
since workspace operations are reported as local and have been applied already.onEvent in interface InternalEventListenereventBundle - the events.InternalEventListener.onEvent(EventBundle)Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.