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 ItemState s
accordingly. |
public HierarchyEventListener(WorkspaceManager wspManager, HierarchyManager hierarchyMgr, CacheBehaviour cacheBehaviour)
public Collection<EventFilter> getEventFilters()
InternalEventListener
InternalEventListener.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 InternalEventListener
EventFilter
s currently
in use by this event listener.InternalEventListener.getEventFilters()
public void onEvent(EventBundle eventBundle)
events
and invalidates cached ItemState
s
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 InternalEventListener
eventBundle
- the events.InternalEventListener.onEvent(EventBundle)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.