Package org.alfresco.repo.virtual.bundle
Class VirtualVersionServiceExtension.VirtualVersionHistory
java.lang.Object
org.alfresco.repo.virtual.bundle.VirtualVersionServiceExtension.VirtualVersionHistory
- All Implemented Interfaces:
Serializable,VersionHistory
- Enclosing class:
- VirtualVersionServiceExtension
public class VirtualVersionServiceExtension.VirtualVersionHistory
extends Object
implements VersionHistory
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualVersionHistory(Reference versionedReference, VersionHistory actualHistory) -
Method Summary
Modifier and TypeMethodDescriptionGets a collection containing all the versions within the version history.Gets the head (current / most recent) version of the version history.getPredecessor(Version version) Gets the predecessor of a specified versionGets the root (initial / least recent) version of the version history.getSuccessors(Version version) Gets the succeeding versions of a specified version.getVersion(String versionLabel) Gets a version with a specified version label.
-
Constructor Details
-
VirtualVersionHistory
-
-
Method Details
-
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
Description copied from interface:VersionHistoryGets the head (current / most recent) version of the version history.- Specified by:
getHeadVersionin interfaceVersionHistory- Returns:
- the root 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
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
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
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
-