Class VirtualVersionServiceExtension.VirtualVersionHistory

    • Constructor Detail

      • VirtualVersionHistory

        public VirtualVersionHistory​(Reference versionedReference,
                                     VersionHistory actualHistory)
    • Method Detail

      • 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 java.util.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 java.util.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​(java.lang.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