Package org.nuxeo.ecm.core.versioning
Class NoVersioningPolicyFilter
- java.lang.Object
-
- org.nuxeo.ecm.core.versioning.NoVersioningPolicyFilter
-
- All Implemented Interfaces:
BiPredicate<DocumentModel,DocumentModel>
,VersioningPolicyFilter
public class NoVersioningPolicyFilter extends Object implements VersioningPolicyFilter
Policy filter which disables automatic versioning for System document or document which should never be versioned.- Since:
- 9.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
WORKSPACE_TYPE
-
Constructor Summary
Constructors Constructor Description NoVersioningPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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
-
-
-
-
Field Detail
-
WORKSPACE_TYPE
public static final String WORKSPACE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NoVersioningPolicyFilter
public NoVersioningPolicyFilter()
-
-
Method Detail
-
test
public boolean test(DocumentModel previousDocument, DocumentModel currentDocument)
- 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
-
-