Package org.alfresco.repo.virtual.bundle
Class VirtualVersionServiceExtension.VirtualVersionHistory
- java.lang.Object
-
- org.alfresco.repo.virtual.bundle.VirtualVersionServiceExtension.VirtualVersionHistory
-
- All Implemented Interfaces:
java.io.Serializable,VersionHistory
- Enclosing class:
- VirtualVersionServiceExtension
public class VirtualVersionServiceExtension.VirtualVersionHistory extends java.lang.Object implements VersionHistory
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VirtualVersionHistory(Reference versionedReference, VersionHistory actualHistory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Version>getAllVersions()Gets a collection containing all the versions within the version history.VersiongetHeadVersion()Gets the head (current / most recent) version of the version history.VersiongetPredecessor(Version version)Gets the predecessor of a specified versionVersiongetRootVersion()Gets the root (initial / least recent) version of the version history.java.util.Collection<Version>getSuccessors(Version version)Gets the succeeding versions of a specified version.VersiongetVersion(java.lang.String versionLabel)Gets a version with a specified version label.
-
-
-
Constructor Detail
-
VirtualVersionHistory
public VirtualVersionHistory(Reference versionedReference, VersionHistory actualHistory)
-
-
Method Detail
-
getRootVersion
public Version getRootVersion()
Description copied from interface:VersionHistoryGets the root (initial / least recent) version of the version history.- Specified by:
getRootVersionin interfaceVersionHistory- Returns:
- the root version
-
getHeadVersion
public Version getHeadVersion()
Description copied from interface:VersionHistoryGets the head (current / most recent) version of the version history.- Specified by:
getHeadVersionin interfaceVersionHistory- Returns:
- the root version
-
getAllVersions
public java.util.Collection<Version> getAllVersions()
Description copied from interface:VersionHistoryGets a collection containing all the versions within the version history.Versions are returned in descending create date order (most recent first).
- Specified by:
getAllVersionsin interfaceVersionHistory- Returns:
- collection containing all the versions
-
getPredecessor
public Version getPredecessor(Version version)
Description copied from interface:VersionHistoryGets the predecessor of a specified version- Specified by:
getPredecessorin interfaceVersionHistory- Parameters:
version- the version object- Returns:
- the predeceeding version, null if root version
-
getSuccessors
public java.util.Collection<Version> getSuccessors(Version version)
Description copied from interface:VersionHistoryGets the succeeding versions of a specified version.- Specified by:
getSuccessorsin interfaceVersionHistory- Parameters:
version- the version object- Returns:
- a collection containing the succeeding version, empty is none
-
getVersion
public Version getVersion(java.lang.String versionLabel)
Description copied from interface:VersionHistoryGets a version with a specified version label. The version label is guarenteed unique within the version history.- Specified by:
getVersionin interfaceVersionHistory- Parameters:
versionLabel- the version label- Returns:
- the version object
-
-