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