Class DistributionJcrUtils
java.lang.Object
org.apache.sling.distribution.util.DistributionJcrUtils
Utility class for JCR related distribution operations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanchecks a generated JCR event was not created by a JCR session having set the 'userData' toDO_NOT_DISTRIBUTE.static voidsetDoNotDistribute(@NotNull Session session)
-
Field Details
-
DO_NOT_DISTRIBUTE
- See Also:
-
-
Constructor Details
-
DistributionJcrUtils
public DistributionJcrUtils()
-
-
Method Details
-
isSafe
checks a generated JCR event was not created by a JCR session having set the 'userData' toDO_NOT_DISTRIBUTE.- Parameters:
jcrEvent- anEvent- Returns:
falseif the event was generated by aSessionhaving itsObservationManager.setUserData(String)set toDO_NOT_DISTRIBUTE- Throws:
RepositoryException- if retrieving 'userData' fails
-
setDoNotDistribute
- Parameters:
session- aSession- Throws:
RepositoryException- if retrieving theObservationManagerfails
-