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()
VersionHistory
getRootVersion
in interface VersionHistory
public Version getHeadVersion()
VersionHistory
getHeadVersion
in interface VersionHistory
public Collection<Version> getAllVersions()
VersionHistory
Versions are returned in descending create date order (most recent first).
getAllVersions
in interface VersionHistory
public Version getPredecessor(Version version)
VersionHistory
getPredecessor
in interface VersionHistory
version
- the version objectpublic Collection<Version> getSuccessors(Version version)
VersionHistory
getSuccessors
in interface VersionHistory
version
- the version objectpublic Version getVersion(String versionLabel)
VersionHistory
getVersion
in interface VersionHistory
versionLabel
- the version labelCopyright © 2005–2017 Alfresco Software. All rights reserved.