public class VersioningManagerImpl extends DefaultComponent implements VersioningManager
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_ID |
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, unregisterContribution, unregisterExtension
public static final String COMPONENT_ID
public VersionIncEditOptions getVersionIncEditOptions(DocumentModel doc) throws ClientException
VersioningManager
getVersionIncEditOptions
in interface VersioningManager
doc
- the documentClientException
public String getVersionLabel(DocumentModel doc)
VersioningManager
getVersionLabel
in interface VersioningManager
doc
- the document@Deprecated public DocumentModel incrementMajor(DocumentModel doc) throws ClientException
VersioningManager
incrementMajor
in interface VersioningManager
doc
- the documentClientException
@Deprecated public DocumentModel incrementMinor(DocumentModel doc) throws ClientException
VersioningManager
incrementMinor
in interface VersioningManager
doc
- the documentClientException
@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.