public class FileVersioningService
extends org.nuxeo.ecm.core.versioning.StandardVersioningService
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLY_OTTC_FILE_VERSIONING
Marker to create Version.
|
static int |
MAX_VERSIONS
the maximum amount of versions a document can have
|
| Constructor and Description |
|---|
FileVersioningService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doApplyFileVersioning(org.nuxeo.ecm.core.model.Document doc,
Map<String,Serializable> options)
A version is created for File when only its Blob has changed.
|
org.nuxeo.ecm.core.model.Document |
doPostSave(org.nuxeo.ecm.core.model.Document doc,
org.nuxeo.ecm.core.api.VersioningOption option,
String checkinComment,
Map<String,Serializable> options) |
protected org.nuxeo.ecm.core.api.DocumentModel |
readModel(org.nuxeo.ecm.core.model.Document doc)
Gets the document model for the given core document.
|
doCheckIn, doCheckOut, doPostCreate, doPreSave, followTransitionByOption, getMajor, getMajor, getMinor, getMinor, getSaveOptions, getSaveOptions, getSaveOptions, getVersion, getVersion, getVersioningRules, getVersionLabel, incrementByOption, incrementMajor, incrementMinor, isPostSaveDoingCheckIn, isPreSaveDoingCheckOut, setDefaultVersioningRule, setInitialVersion, setVersion, setVersioningRules, validateOptionpublic static final String APPLY_OTTC_FILE_VERSIONING
public static final int MAX_VERSIONS
public org.nuxeo.ecm.core.model.Document doPostSave(org.nuxeo.ecm.core.model.Document doc,
org.nuxeo.ecm.core.api.VersioningOption option,
String checkinComment,
Map<String,Serializable> options)
throws org.nuxeo.ecm.core.api.DocumentException
doPostSave in interface org.nuxeo.ecm.core.versioning.VersioningServicedoPostSave in class org.nuxeo.ecm.core.versioning.StandardVersioningServiceorg.nuxeo.ecm.core.api.DocumentExceptionprotected boolean doApplyFileVersioning(org.nuxeo.ecm.core.model.Document doc,
Map<String,Serializable> options)
throws org.nuxeo.ecm.core.api.DocumentException
doc - org.nuxeo.ecm.core.api.DocumentExceptionprotected org.nuxeo.ecm.core.api.DocumentModel readModel(org.nuxeo.ecm.core.model.Document doc)
throws org.nuxeo.ecm.core.api.ClientException
doc - the documentorg.nuxeo.ecm.core.api.ClientExceptionCopyright © 2019. All rights reserved.