Package org.nuxeo.ecm.core.api.facet
Interface VersioningDocument
- All Known Implementing Classes:
VersioningDocumentAdapter
public interface VersioningDocument
Declares constants and methods used to control document versions mostly when a document is saved.
- Author:
- Dragos Mihalache
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
Key used in options map to send current versions to versioning listener so it will know what version the document had before restoring.static final String
Key used in options map to send the UUID of the version being restored to the listeners. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the version number.
-
Field Details
-
CURRENT_DOCUMENT_MINOR_VERSION_KEY
Key used in options map to send current versions to versioning listener so it will know what version the document had before restoring.- See Also:
-
CURRENT_DOCUMENT_MAJOR_VERSION_KEY
- See Also:
-
RESTORED_VERSION_UUID_KEY
Key used in options map to send the UUID of the version being restored to the listeners.- See Also:
-
-
Method Details
-
getVersionLabel
String getVersionLabel()Returns a string representation of the version number.- Returns:
- a string, like
"2.1"
-