public class CMISVersioningFilter extends Object implements VersioningPolicyFilter
ThreadLocal
, it returns Boolean.TRUE
only for thread
from CMIS.Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Boolean> |
ENABLED |
Constructor and Description |
---|
CMISVersioningFilter() |
Modifier and Type | Method and Description |
---|---|
static void |
disable()
Disables the filter for current thread.
|
static void |
enable()
Enables the filter for current thread, which will disable the automatic versioning.
|
boolean |
test(DocumentModel previousDocument,
DocumentModel currentDocument) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, negate, or
protected static final ThreadLocal<Boolean> ENABLED
public CMISVersioningFilter()
public boolean test(DocumentModel previousDocument, DocumentModel currentDocument)
test
in interface BiPredicate<DocumentModel,DocumentModel>
test
in interface VersioningPolicyFilter
previousDocument
- the document before modification, could be null if event is aboutToCreatecurrentDocument
- the document after modificationpublic static void enable()
public static void disable()
Copyright © 2017 Nuxeo. All rights reserved.