public class VirtualVersionServiceExtension.VirtualVersionHistory extends Object implements VersionHistory
| Constructor and Description |
|---|
VirtualVersionHistory(Reference versionedReference,
VersionHistory actualHistory) |
| 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.
|
public VirtualVersionHistory(Reference versionedReference, VersionHistory actualHistory)
public Version getRootVersion()
VersionHistorygetRootVersion in interface VersionHistorypublic Version getHeadVersion()
VersionHistorygetHeadVersion in interface VersionHistorypublic Collection<Version> getAllVersions()
VersionHistoryVersions are returned in descending create date order (most recent first).
getAllVersions in interface VersionHistorypublic Version getPredecessor(Version version)
VersionHistorygetPredecessor in interface VersionHistoryversion - the version objectpublic Collection<Version> getSuccessors(Version version)
VersionHistorygetSuccessors in interface VersionHistoryversion - the version objectpublic Version getVersion(String versionLabel)
VersionHistorygetVersion in interface VersionHistoryversionLabel - the version labelCopyright © 2005–2018 Alfresco Software. All rights reserved.