The parameters of the filter can then be set by chaining the set methods, since each method returns the same EventFilter
with the indicated parameter set.
Once the filter is configured, it and an {@link javax.jcr.observation.EventListener} object arepassed to {@link org.apache.jackrabbit.api.observation.JackrabbitObservationManager#addEventListener(javax.jcr.observation.EventListener,JackrabbitEventFilter)}.
The filter restricts which events are sent to the EventListener
according to the following parameters. Note that the term associated parent node of an event means the parent node of the item at (or formerly at) the path returned by {@link javax.jcr.observation.Event#getPath}.
eventTypes
: A bitwise OR
of the event types to be listened to. See {@link javax.jcr.observation.Event} for details.absPath
, absPaths
, excludedPaths
, isDeep
: Only events whose associated parent node is at one of the paths in absPath
or absPaths
(or within its subgraph, if isDeep
is true
) will be received except if the associated parent node is at one of the paths in excludedPaths
or its subgraph. It is permissible to register a listener for a path where no node currently exists. uuid
: Only events whose associated parent node has one of the identifiers in this list will be received. If his parameter is null
then no identifier-related restriction is placed on events received. Note that specifying an empty array instead of null
would result in no nodes being listened to. The term "UUID" is used for compatibility with JCR 1.0. nodeTypeName
: Only events whose associated parent node has one of the node types (or a subtype of one of the node types) in this list will be received. If his parameter is null
then no node type-related restriction is placed on events received. Note that specifying an empty array instead of null
would result in no nodes types being listened to. noLocal
: if true
, then events generated by the session through which the listener was registered are ignored. Otherwise, they are not ignored. noExternal
: if true
, then events from external cluster nodes are ignored. Otherwise, they are not ignored. noInternal
: if true
, then events from this cluster node are ignored. Otherwise, they are not ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|