public class DistributionJcrUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DO_NOT_DISTRIBUTE |
Constructor and Description |
---|
DistributionJcrUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSafe(Event jcrEvent)
checks a generated JCR event was not created by a JCR session having set the 'userData' to
DO_NOT_DISTRIBUTE . |
static void |
setDoNotDistribute(Session session)
set
DO_NOT_DISTRIBUTE on the given Session 's javax.jcr.observation.ObservationManager#setUserData(String) |
public static final java.lang.String DO_NOT_DISTRIBUTE
public static boolean isSafe(Event jcrEvent) throws RepositoryException
DO_NOT_DISTRIBUTE
.jcrEvent
- an javax.jcr.observation.Event
false
if the event was generated by a javax.jcr.Session
having its
javax.jcr.observation.ObservationManager#setUserData(String)
set to DO_NOT_DISTRIBUTE
javax.jcr.RepositoryException
- if retrieving 'userData' failsRepositoryException
public static void setDoNotDistribute(Session session) throws RepositoryException
DO_NOT_DISTRIBUTE
on the given Session
's javax.jcr.observation.ObservationManager#setUserData(String)
session
- a javax.jcr.Session
RepositoryException
- if retrieving the javax.jcr.observation.ObservationManager
fails"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"