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 commentDocumentExceptionvoid checkOut()
              throws DocumentException
DocumentExceptionList<String> getVersionsIds() throws DocumentException
DocumentExceptionList<Document> getVersions() throws DocumentException
DocumentExceptionDocument getLastVersion() throws DocumentException
DocumentExceptionDocument getSourceDocument() throws DocumentException
DocumentExceptionvoid restore(Document version) throws DocumentException
version - the version to replace withDocumentExceptionDocument getVersion(String label) throws DocumentException
label - the version labelDocumentExceptionboolean hasVersions()
                    throws DocumentException
Needed to know if we need to use checkin/checkout methods when changing a document.
DocumentExceptionboolean isVersion()
Document getBaseVersion() throws DocumentException
 Returns null for a checked out document or a version or a proxy.
nullDocumentExceptionboolean isCheckedOut()
                     throws DocumentException
DocumentExceptionCalendar getVersionCreationDate() throws DocumentException
DocumentExceptionString getVersionSeriesId() throws DocumentException
DocumentExceptionString getVersionLabel() throws DocumentException
DocumentExceptionboolean isLatestVersion()
                        throws DocumentException
DocumentExceptionboolean isMajorVersion()
                       throws DocumentException
DocumentExceptionboolean isLatestMajorVersion()
                             throws DocumentException
DocumentExceptionboolean isVersionSeriesCheckedOut()
                                  throws DocumentException
DocumentExceptionDocument getWorkingCopy() throws DocumentException
DocumentExceptionString getCheckinComment() throws DocumentException
DocumentExceptionCopyright © 2014 Nuxeo SA. All rights reserved.