Package org.nuxeo.ecm.core.versioning
Class VersioningDocumentAdapter
- java.lang.Object
-
- org.nuxeo.ecm.core.versioning.VersioningDocumentAdapter
-
- All Implemented Interfaces:
VersioningDocument
public class VersioningDocumentAdapter extends Object implements VersioningDocument
Adapter showing the versioning aspects of documents.
-
-
Field Summary
Fields Modifier and Type Field Description DocumentModel
doc
VersioningService
service
-
Fields inherited from interface org.nuxeo.ecm.core.api.facet.VersioningDocument
CURRENT_DOCUMENT_MAJOR_VERSION_KEY, CURRENT_DOCUMENT_MINOR_VERSION_KEY, RESTORED_VERSION_UUID_KEY
-
-
Constructor Summary
Constructors Constructor Description VersioningDocumentAdapter(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVersionLabel()
Returns a string representation of the version number.
-
-
-
Field Detail
-
doc
public final DocumentModel doc
-
service
public final VersioningService service
-
-
Constructor Detail
-
VersioningDocumentAdapter
public VersioningDocumentAdapter(DocumentModel doc)
-
-
Method Detail
-
getVersionLabel
public String getVersionLabel()
Description copied from interface:VersioningDocument
Returns a string representation of the version number.- Specified by:
getVersionLabel
in interfaceVersioningDocument
- Returns:
- a string, like
"2.1"
-
-