Package com.day.cq.commons.jcr
Class ObservationUtil
java.lang.Object
com.day.cq.commons.jcr.ObservationUtil
Utility for common JCR Observations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisExternal(Event event) On a JCR implementation which supports cluster-aware event processing, checks if the event has originally happened locally (internal) or remotely (external).
-
Constructor Details
-
ObservationUtil
public ObservationUtil()
-
-
Method Details
-
isExternal
On a JCR implementation which supports cluster-aware event processing, checks if the event has originally happened locally (internal) or remotely (external).If the result of this method call is used to filter out external events, the recommended approach is to use one of the following dedicated APIs:
- Register observation listeners with a
org.apache.jackrabbit.api.observation.JackrabbitEventFilter
and specifysetNoExternal(true)
- Implement the
org.apache.jackrabbit.oak.plugins.observation.ExcludeExternal
marker interface ( Oak-only )
- Parameters:
event- The event to be checked.- Returns:
trueif the JCR implementation is cluster aware and the event is external.
- Register observation listeners with a
-