Class FilteredHandler
java.lang.Object
org.apache.jackrabbit.oak.plugins.observation.DefaultEventHandler
org.apache.jackrabbit.oak.plugins.observation.FilteredHandler
- All Implemented Interfaces:
EventHandler
Filtered event handler. This decorator class applies an
EventFilter
on all detected changes, and forwards the filtered change events to a given
delegate handler.-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.plugins.observation.DefaultEventHandler
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled before the given before and after states are compared.@Nullable EventHandlergetChildHandler(String name, NodeState before, NodeState after) Returns a handler of events within the given child node, ornullif changes within that child are not to be processed.voidCalled after the given before and after states are compared.voidNotification for an added nodevoidnodeDeleted(String name, NodeState before) Notification for a deleted nodevoidNotification for a moved nodevoidnodeReordered(String destName, String name, NodeState reordered) Notification for a reordered nodevoidpropertyAdded(PropertyState after) Notification for an added propertyvoidpropertyChanged(PropertyState before, PropertyState after) Notification for a changed propertyvoidpropertyDeleted(PropertyState before) Notification for a deleted property
-
Constructor Details
-
FilteredHandler
-
-
Method Details
-
enter
Description copied from interface:EventHandlerCalled before the given before and after states are compared. The implementation can use this method to initialize any internal state needed for processing the results of the comparison.- Specified by:
enterin interfaceEventHandler- Overrides:
enterin classDefaultEventHandler- Parameters:
before- before state, non-existent if this node was addedafter- after state, non-existent if this node was removed
-
leave
Description copied from interface:EventHandlerCalled after the given before and after states are compared. The implementation can use this method to post-process information collected during the content diff.- Specified by:
leavein interfaceEventHandler- Overrides:
leavein classDefaultEventHandler- Parameters:
before- before state, non-existent if this node was addedafter- after state, non-existent if this node was removed
-
getChildHandler
@Nullable public @Nullable EventHandler getChildHandler(String name, NodeState before, NodeState after) Description copied from interface:EventHandlerReturns a handler of events within the given child node, ornullif changes within that child are not to be processed.- Specified by:
getChildHandlerin interfaceEventHandler- Overrides:
getChildHandlerin classDefaultEventHandler- Parameters:
name- name of the child nodebefore- before state of the child node, possibly non-existentafter- after state of the child node, possibly non-existent- Returns:
this
-
propertyAdded
Description copied from interface:EventHandlerNotification for an added property- Specified by:
propertyAddedin interfaceEventHandler- Overrides:
propertyAddedin classDefaultEventHandler- Parameters:
after- added property
-
propertyChanged
Description copied from interface:EventHandlerNotification for a changed property- Specified by:
propertyChangedin interfaceEventHandler- Overrides:
propertyChangedin classDefaultEventHandler- Parameters:
before- property before the changeafter- property after the change
-
propertyDeleted
Description copied from interface:EventHandlerNotification for a deleted property- Specified by:
propertyDeletedin interfaceEventHandler- Overrides:
propertyDeletedin classDefaultEventHandler- Parameters:
before- deleted property
-
nodeAdded
Description copied from interface:EventHandlerNotification for an added node- Specified by:
nodeAddedin interfaceEventHandler- Overrides:
nodeAddedin classDefaultEventHandler- Parameters:
name- name of the nodeafter- added node
-
nodeDeleted
Description copied from interface:EventHandlerNotification for a deleted node- Specified by:
nodeDeletedin interfaceEventHandler- Overrides:
nodeDeletedin classDefaultEventHandler- Parameters:
name- name of the deleted nodebefore- deleted node
-
nodeMoved
Description copied from interface:EventHandlerNotification for a moved node- Specified by:
nodeMovedin interfaceEventHandler- Overrides:
nodeMovedin classDefaultEventHandler- Parameters:
sourcePath- source of the moved nodename- name of the moved nodemoved- moved node
-
nodeReordered
Description copied from interface:EventHandlerNotification for a reordered node- Specified by:
nodeReorderedin interfaceEventHandler- Overrides:
nodeReorderedin classDefaultEventHandler- Parameters:
destName- name of theorderBefore()destination nodename- name of the moved nodereordered- moved node
-