Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.service.cmr.version
Interface VersionHistory
All Superinterfaces:
Serializable

@org.alfresco.api.AlfrescoPublicApi
public interface VersionHistory
extends Serializable
Version history interface. Collects the versions that make-up a version history.
Author:
Roy Wetherall

Method Summary
getAllVersions()
          Gets a collection containing all the versions within the version history.
getHeadVersion()
          Gets the head (current / most recent) version of the version history.
getPredecessor(Version version)
          Gets the predecessor of a specified version
getRootVersion()
          Gets 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.
Method Detail
getRootVersion
Version getRootVersion()
Gets the root (initial / least recent) version of the version history.
Returns:
the root version

getHeadVersion
Version getHeadVersion()
Gets the head (current / most recent) version of the version history.
Returns:
the root version

getAllVersions
Collection<VersiongetAllVersions()
Gets a collection containing all the versions within the version history.

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

Returns:
collection containing all the versions

getPredecessor
Version getPredecessor(Version version)
Gets the predecessor of a specified version
Parameters:
version - the version object
Returns:
the predeceeding version, null if root version

getSuccessors
Collection<VersiongetSuccessors(Version version)
Gets the succeeding versions of a specified version.
Parameters:
version - the version object
Returns:
a collection containing the succeeding version, empty is none

getVersion
Version getVersion(String versionLabel)
Gets a version with a specified version label. The version label is guarenteed unique within the version history.
Parameters:
versionLabel - the version label
Returns:
the version object
Throws:
VersionDoesNotExistException - indicates requested version does not exisit

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.