org.apache.jackrabbit.jcr2spi.hierarchy
Class HierarchyEventListener
java.lang.Object
org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener
- All Implemented Interfaces:
- InternalEventListener
public class HierarchyEventListener
- extends Object
- implements InternalEventListener
HierarchyEventListener...
|
Method Summary |
Collection<org.apache.jackrabbit.spi.EventFilter> |
getEventFilters()
Returns a collection of event filters which is in use by this event
listener. |
void |
onEvent(org.apache.jackrabbit.spi.EventBundle eventBundle)
Processes events and invalidates cached ItemStates
accordingly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchyEventListener
public HierarchyEventListener(WorkspaceManager wspManager,
HierarchyManager hierarchyMgr,
CacheBehaviour cacheBehaviour)
getEventFilters
public Collection<org.apache.jackrabbit.spi.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 to
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.
- Specified by:
getEventFilters in interface InternalEventListener
- Returns:
- an unmodifiable collection of
EventFilters currently
in use by this event listener. - See Also:
InternalEventListener.getEventFilters()
onEvent
public void onEvent(org.apache.jackrabbit.spi.EventBundle eventBundle)
- Processes
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.
- Specified by:
onEvent in interface InternalEventListener
- Parameters:
eventBundle - the events.- See Also:
InternalEventListener.onEvent(EventBundle)
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.