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 Details

    • VirtualVersionHistory

      public VirtualVersionHistory(Reference versionedReference, VersionHistory actualHistory)
  • Method Details

    • getRootVersion

      public Version getRootVersion()
      Description copied from interface: VersionHistory
      Gets the root (initial / least recent) version of the version history.
      Specified by:
      getRootVersion in interface VersionHistory
      Returns:
      the root version
    • getHeadVersion

      public Version getHeadVersion()
      Description copied from interface: VersionHistory
      Gets the head (current / most recent) version of the version history.
      Specified by:
      getHeadVersion in interface VersionHistory
      Returns:
      the root version
    • getAllVersions

      public Collection<Version> getAllVersions()
      Description copied from interface: VersionHistory
      Gets a collection containing all the versions within the version history.

      Versions are returned in descending create date order (most recent first).

      Specified by:
      getAllVersions in interface VersionHistory
      Returns:
      collection containing all the versions
    • getPredecessor

      public Version getPredecessor(Version version)
      Description copied from interface: VersionHistory
      Gets the predecessor of a specified version
      Specified by:
      getPredecessor in interface VersionHistory
      Parameters:
      version - the version object
      Returns:
      the predeceeding version, null if root version
    • getSuccessors

      public Collection<Version> getSuccessors(Version version)
      Description copied from interface: VersionHistory
      Gets the succeeding versions of a specified version.
      Specified by:
      getSuccessors in interface VersionHistory
      Parameters:
      version - the version object
      Returns:
      a collection containing the succeeding version, empty is none
    • getVersion

      public Version getVersion(String versionLabel)
      Description copied from interface: VersionHistory
      Gets a version with a specified version label. The version label is guarenteed unique within the version history.
      Specified by:
      getVersion in interface VersionHistory
      Parameters:
      versionLabel - the version label
      Returns:
      the version object