public class VersioningManagerImpl extends DefaultComponent implements VersioningManager
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_ID |
lastModified
Constructor and Description |
---|
VersioningManagerImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getMajorVersionPropertyName(String documentType)
Deprecated.
|
String |
getMinorVersionPropertyName(String documentType)
Deprecated.
|
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.
|
DocumentModel |
incrementMajor(DocumentModel doc)
Deprecated.
|
DocumentModel |
incrementMinor(DocumentModel doc)
Deprecated.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public static final String COMPONENT_ID
public VersioningManagerImpl()
public VersionIncEditOptions getVersionIncEditOptions(DocumentModel doc)
VersioningManager
getVersionIncEditOptions
in interface VersioningManager
doc
- the documentpublic String getVersionLabel(DocumentModel doc)
VersioningManager
getVersionLabel
in interface VersioningManager
doc
- the document@Deprecated public DocumentModel incrementMajor(DocumentModel doc)
VersioningManager
incrementMajor
in interface VersioningManager
doc
- the document@Deprecated public DocumentModel incrementMinor(DocumentModel doc)
VersioningManager
incrementMinor
in interface VersioningManager
doc
- the document@Deprecated public String getMajorVersionPropertyName(String documentType)
VersioningManager
getMajorVersionPropertyName
in interface VersioningManager
@Deprecated public String getMinorVersionPropertyName(String documentType)
VersioningManager
getMinorVersionPropertyName
in interface VersioningManager
Copyright © 2015 Nuxeo SA. All rights reserved.