Class VersioningManagerImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.versioning.service.VersioningManagerImpl
-
- All Implemented Interfaces:
VersioningManager,Adaptable,Component,Extensible,TimestampedService
public class VersioningManagerImpl extends DefaultComponent implements VersioningManager
Versions management component implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_IDDeprecated.since 10.10, seems unused-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description VersioningManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionIncEditOptionsgetVersionIncEditOptions(DocumentModel doc)Get document increment options as defined by versioning rules.StringgetVersionLabel(DocumentModel doc)Gets the label for the current version of a document, for the UI.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
COMPONENT_ID
@Deprecated public static final String COMPONENT_ID
Deprecated.since 10.10, seems unused- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersionIncEditOptions
public VersionIncEditOptions getVersionIncEditOptions(DocumentModel doc)
Description copied from interface:VersioningManagerGet document increment options as defined by versioning rules.- Specified by:
getVersionIncEditOptionsin interfaceVersioningManager- Parameters:
doc- the document- Returns:
- a list of version increment options available for the given document
-
getVersionLabel
public String getVersionLabel(DocumentModel doc)
Description copied from interface:VersioningManagerGets the label for the current version of a document, for the UI.- Specified by:
getVersionLabelin interfaceVersioningManager- Parameters:
doc- the document- Returns:
- the version label
-
-