Class HierarchyEventListener
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener
-
- All Implemented Interfaces:
InternalEventListener
public class HierarchyEventListener extends Object implements InternalEventListener
HierarchyEventListener
...
-
-
Constructor Summary
Constructors Constructor Description HierarchyEventListener(WorkspaceManager wspManager, HierarchyManager hierarchyMgr, CacheBehaviour cacheBehaviour)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<EventFilter>
getEventFilters()
Returns a collection of event filters which is in use by this event listener.void
onEvent(EventBundle eventBundle)
Processesevents
and invalidates cachedItemState
s accordingly.
-
-
-
Constructor Detail
-
HierarchyEventListener
public HierarchyEventListener(WorkspaceManager wspManager, HierarchyManager hierarchyMgr, CacheBehaviour cacheBehaviour)
-
-
Method Detail
-
getEventFilters
public Collection<EventFilter> getEventFilters()
Description copied from interface:InternalEventListener
Returns a collection of event filters which is in use by this event listener. The event bundles delivered toInternalEventListener.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.- Specified by:
getEventFilters
in interfaceInternalEventListener
- Returns:
- an unmodifiable collection of
EventFilter
s currently in use by this event listener. - See Also:
InternalEventListener.getEventFilters()
-
onEvent
public void onEvent(EventBundle eventBundle)
Processesevents
and invalidates cachedItemState
s accordingly. Note that this is performed for local changes only, since workspace operations are reported as local and have been applied already.- Specified by:
onEvent
in interfaceInternalEventListener
- Parameters:
eventBundle
- the events.- See Also:
InternalEventListener.onEvent(EventBundle)
-
-