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
Fields Modifier and Type Field Description static String
CURRENT_DOCUMENT_MAJOR_VERSION_KEY
static String
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.static String
RESTORED_VERSION_UUID_KEY
Key used in options map to send the UUID of the version being restored to the listeners.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getVersionLabel()
Returns a string representation of the version number.
-
-
-
Field Detail
-
CURRENT_DOCUMENT_MINOR_VERSION_KEY
static final String 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:
- Constant Field Values
-
CURRENT_DOCUMENT_MAJOR_VERSION_KEY
static final String CURRENT_DOCUMENT_MAJOR_VERSION_KEY
- See Also:
- Constant Field Values
-
RESTORED_VERSION_UUID_KEY
static final String RESTORED_VERSION_UUID_KEY
Key used in options map to send the UUID of the version being restored to the listeners.- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersionLabel
String getVersionLabel()
Returns a string representation of the version number.- Returns:
- a string, like
"2.1"
-
-