Class NoVersioningCollectionPolicyFilter
java.lang.Object
org.nuxeo.ecm.collections.core.versioning.NoVersioningCollectionPolicyFilter
- All Implemented Interfaces:
BiPredicate<DocumentModel,
,DocumentModel> VersioningPolicyFilter
Policy filter which disables automatic versioning for collection actions.
- Since:
- 9.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(DocumentModel previousDocument, DocumentModel currentDocument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
NoVersioningCollectionPolicyFilter
public NoVersioningCollectionPolicyFilter()
-
-
Method Details
-
test
- Specified by:
test
in interfaceBiPredicate<DocumentModel,
DocumentModel> - Specified by:
test
in interfaceVersioningPolicyFilter
- Parameters:
previousDocument
- the document before modification, could be null if event is aboutToCreatecurrentDocument
- the document after modification- Returns:
- whether or not this filter matches the current context, if all policy's filters match, then apply policy
-