public interface VersionHistory
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
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.
|
java.util.Collection |
getSuccessors(Version version)
Gets the succeeding versions of a specified version.
|
Version |
getVersion(java.lang.String versionLabel)
Gets a version with a specified version label.
|
Version getRootVersion()
Version getHeadVersion()
java.util.Collection getAllVersions()
Versions are returned in descending create date order (most recent first).
Version getPredecessor(Version version)
version - the version objectjava.util.Collection getSuccessors(Version version)
version - the version objectVersion getVersion(java.lang.String versionLabel)
versionLabel - the version labelVersionDoesNotExistException - indicates requested version does not exisitCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.