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(@NotNull 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 Session session)
|
public static final java.lang.String DO_NOT_DISTRIBUTE
public static boolean isSafe(@NotNull @NotNull Event jcrEvent) throws 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
RepositoryException
- if retrieving 'userData' failspublic static void setDoNotDistribute(@NotNull @NotNull Session session) throws RepositoryException
session
- a Session
RepositoryException
- if retrieving the ObservationManager
failsCopyright © 2010 - 2020 Adobe. All Rights Reserved