@AlfrescoPublicApi public interface VersionHistory extends Serializable
Modifier and Type | Method and Description |
---|---|
Collection<Version> |
getAllVersions()
Gets a collection containing all the versions within the
version history.
|
Version |
getHeadVersion()
Gets the head (current / most recent) version of the version history.
|
Version |
getPredecessor(Version version)
Gets the predecessor of a specified version
|
Version |
getRootVersion()
Gets the root (initial / least recent) version of the version history.
|
Collection<Version> |
getSuccessors(Version version)
Gets the succeeding versions of a specified version.
|
Version |
getVersion(String versionLabel)
Gets a version with a specified version label.
|
Version getRootVersion()
Version getHeadVersion()
Collection<Version> getAllVersions()
Versions are returned in descending create date order (most recent first).
Version getPredecessor(Version version)
version
- the version objectCollection<Version> getSuccessors(Version version)
version
- the version objectVersion getVersion(String versionLabel)
versionLabel
- the version labelVersionDoesNotExistException
- indicates requested version does not exisitCopyright © 2005–2017 Alfresco Software. All rights reserved.