org.apache.jackrabbit.jcr2spi.hierarchy
Class HierarchyEventListener

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener
All Implemented Interfaces:
InternalEventListener

public class HierarchyEventListener
extends Object
implements InternalEventListener

HierarchyEventListener...


Constructor Summary
HierarchyEventListener(WorkspaceManager wspManager, HierarchyManager hierarchyMgr, CacheBehaviour cacheBehaviour)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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(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-2010 The Apache Software Foundation. All Rights Reserved.