|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.versioning.VersioningDocumentAdapter
public class VersioningDocumentAdapter
Adapter showing the versioning aspects of documents.
Field Summary | |
---|---|
DocumentModel |
doc
|
VersioningService |
service
|
Fields inherited from interface org.nuxeo.ecm.core.api.facet.VersioningDocument |
---|
CREATE_SNAPSHOT_ON_SAVE_KEY, CURRENT_DOCUMENT_MAJOR_VERSION_KEY, CURRENT_DOCUMENT_MINOR_VERSION_KEY, DOCUMENT_WAS_SNAPSHOTTED, KEY_FOR_INC_OPTION, RESTORED_VERSION_UUID_KEY |
Constructor Summary | |
---|---|
VersioningDocumentAdapter(DocumentModel doc)
|
Method Summary | |
---|---|
Long |
getMajorVersion()
|
Long |
getMinorVersion()
|
String |
getVersionAsString(int majorDigits,
int minorDigits,
char sep)
Deprecated. |
String |
getVersionLabel()
Returns a string representation of the version number. |
void |
incrementMajor()
Deprecated. |
void |
incrementMinor()
Deprecated. |
void |
incrementVersions()
Deprecated. |
void |
refetchDoc()
Deprecated. |
void |
setMajorVersion(Long value)
Deprecated. |
void |
setMinorVersion(Long value)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final DocumentModel doc
public final VersioningService service
Constructor Detail |
---|
public VersioningDocumentAdapter(DocumentModel doc)
Method Detail |
---|
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"
@Deprecated public void incrementMajor() throws DocumentException
incrementMajor
in interface VersioningDocument
DocumentException
@Deprecated public void incrementMinor() throws DocumentException
incrementMinor
in interface VersioningDocument
DocumentException
@Deprecated public void setMajorVersion(Long value)
setMajorVersion
in interface VersioningDocument
@Deprecated public void setMinorVersion(Long value)
setMinorVersion
in interface VersioningDocument
@Deprecated public void refetchDoc() throws DocumentException
refetchDoc
in interface VersioningDocument
DocumentException
@Deprecated public void incrementVersions()
incrementVersions
in interface VersioningDocument
@Deprecated public String getVersionAsString(int majorDigits, int minorDigits, char sep) throws DocumentException
getVersionAsString
in interface VersioningDocument
DocumentException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |