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 String
COMPONENT_ID
Deprecated.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 VersionIncEditOptions
getVersionIncEditOptions(DocumentModel doc)
Get document increment options as defined by versioning rules.String
getVersionLabel(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:VersioningManager
Get document increment options as defined by versioning rules.- Specified by:
getVersionIncEditOptions
in 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:VersioningManager
Gets the label for the current version of a document, for the UI.- Specified by:
getVersionLabel
in interfaceVersioningManager
- Parameters:
doc
- the document- Returns:
- the version label
-
-