public class VersioningDocumentAdapter extends Object implements VersioningDocument
Modifier and Type | Field and Description |
---|---|
DocumentModel |
doc |
VersioningService |
service |
CREATE_SNAPSHOT_ON_SAVE_KEY, CURRENT_DOCUMENT_MAJOR_VERSION_KEY, CURRENT_DOCUMENT_MINOR_VERSION_KEY, KEY_FOR_INC_OPTION, RESTORED_VERSION_UUID_KEY
Constructor and Description |
---|
VersioningDocumentAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
Long |
getMajorVersion() |
Long |
getMinorVersion() |
String |
getVersionLabel()
Returns a string representation of the version number.
|
public final DocumentModel doc
public final VersioningService service
public VersioningDocumentAdapter(DocumentModel doc)
public Long getMajorVersion() throws DocumentException
getMajorVersion
in interface VersioningDocument
DocumentException
public Long getMinorVersion() throws DocumentException
getMinorVersion
in interface VersioningDocument
DocumentException
public String getVersionLabel()
VersioningDocument
getVersionLabel
in interface VersioningDocument
"2.1"
Copyright © 2013 Nuxeo SA. All Rights Reserved.