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(javax.jcr.observation.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(javax.jcr.Session session)
|
public static final String DO_NOT_DISTRIBUTE
public static boolean isSafe(@Nonnull javax.jcr.observation.Event jcrEvent) throws javax.jcr.RepositoryException
DO_NOT_DISTRIBUTE.jcrEvent - an Eventfalse if the event was generated by a Session having its
ObservationManager.setUserData(String) set to DO_NOT_DISTRIBUTEjavax.jcr.RepositoryException - if retrieving 'userData' failspublic static void setDoNotDistribute(@Nonnull javax.jcr.Session session) throws javax.jcr.RepositoryException
session - a Sessionjavax.jcr.RepositoryException - if retrieving the ObservationManager failsCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.