public class DistributionJcrUtils extends Object
Modifier and Type | Field and Description |
---|---|
static 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)
|
public static final String DO_NOT_DISTRIBUTE
public static boolean isSafe(Event jcrEvent) throws RepositoryException
DO_NOT_DISTRIBUTE
.jcrEvent
- an Event
false
if the event was generated by a Session
having its
ObservationManager
set to DO_NOT_DISTRIBUTE
javax.jcr.RepositoryException
- if retrieving 'userData' failsRepositoryException
public static void setDoNotDistribute(Session session) throws RepositoryException
session
- a Session
RepositoryException
- if retrieving the ObservationManager
fails"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"