Package com.day.cq.commons.jcr
Class ObservationUtil
- java.lang.Object
-
- com.day.cq.commons.jcr.ObservationUtil
-
public class ObservationUtil extends java.lang.Object
Utility for common JCR Observations
-
-
Constructor Summary
Constructors Constructor Description ObservationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isExternal(Event event)
On a JCR implementation which supports cluster-aware event processing, checks if the event has originally happened locally (internal) or remotely (external).
-
-
-
Method Detail
-
isExternal
public static boolean isExternal(Event event)
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 specify setNoExternal(true)
- Implement the org.apache.jackrabbit.oak.plugins.observation.ExcludeExternal marker interface ( Oak-only )
- Parameters:
event
- The event to be checked.- Returns:
true
if the JCR implementation is cluster aware and the event is external.
-
-