public interface VersionableDocument
Modifier and Type | Method and Description |
---|---|
Document |
checkIn(String label,
String checkinComment)
Creates a new version.
|
void |
checkOut() |
Document |
getBaseVersion()
Gets the version to which a checked in document is linked.
|
String |
getCheckinComment() |
Document |
getLastVersion()
Gets the last version of this document.
|
Document |
getSourceDocument()
Gets the head ("live") version of this document.
|
Document |
getVersion(String label)
Gets a version of this document, given its label.
|
Calendar |
getVersionCreationDate() |
String |
getVersionLabel() |
List<Document> |
getVersions() |
String |
getVersionSeriesId()
Gets the version series id.
|
List<String> |
getVersionsIds()
Gets the list of version ids for this document.
|
Document |
getWorkingCopy() |
boolean |
hasVersions()
Tells the caller if this document has versions or not.
|
boolean |
isCheckedOut() |
boolean |
isLatestMajorVersion() |
boolean |
isLatestVersion() |
boolean |
isMajorVersion() |
boolean |
isVersion()
Checks whether or not this doc is a version document.
|
boolean |
isVersionSeriesCheckedOut() |
void |
restore(Document version)
Replaces current version with version specified.
|
Document checkIn(String label, String checkinComment) throws DocumentException
label
- the version labelcheckinComment
- the checkin commentDocumentException
void checkOut() throws DocumentException
DocumentException
List<String> getVersionsIds() throws DocumentException
DocumentException
List<Document> getVersions() throws DocumentException
DocumentException
Document getLastVersion() throws DocumentException
DocumentException
Document getSourceDocument() throws DocumentException
DocumentException
void restore(Document version) throws DocumentException
version
- the version to replace withDocumentException
Document getVersion(String label) throws DocumentException
label
- the version labelDocumentException
boolean hasVersions() throws DocumentException
Needed to know if we need to use checkin/checkout methods when changing a document.
DocumentException
boolean isVersion()
Document getBaseVersion() throws DocumentException
Returns null
for a checked out document or a version or a proxy.
null
DocumentException
boolean isCheckedOut() throws DocumentException
DocumentException
Calendar getVersionCreationDate() throws DocumentException
DocumentException
String getVersionSeriesId() throws DocumentException
DocumentException
String getVersionLabel() throws DocumentException
DocumentException
boolean isLatestVersion() throws DocumentException
DocumentException
boolean isMajorVersion() throws DocumentException
DocumentException
boolean isLatestMajorVersion() throws DocumentException
DocumentException
boolean isVersionSeriesCheckedOut() throws DocumentException
DocumentException
Document getWorkingCopy() throws DocumentException
DocumentException
String getCheckinComment() throws DocumentException
DocumentException
Copyright © 2011 Nuxeo SA. All Rights Reserved.