public abstract class ReadOnlyVersionManager extends Object
ReadOnlyVersionManager
provides implementations for read-only
version operations modeled after the ones available in VersionManager
.Constructor and Description |
---|
ReadOnlyVersionManager() |
Modifier and Type | Method and Description |
---|---|
Tree |
getBaseVersion(Tree versionable)
Returns the tree representing the base version of the given versionable
tree or
null if none exists yet. |
Tree |
getVersion(String uuid)
Returns the version tree with the given uuid.
|
Tree |
getVersionHistory(Tree versionable)
Returns the tree representing the version history of the given
versionable tree or
null if none exists yet. |
String |
getVersionHistoryPath(String uuid)
Returns the path of the version history for the given
uuid . |
boolean |
isCheckedOut(Tree tree)
Returns
true if the tree is checked out; otherwise
false . |
public boolean isCheckedOut(Tree tree)
true
if the tree is checked out; otherwise
false
. The root node is always considered checked out.tree
- the tree to check.public Tree getVersionHistory(Tree versionable) throws UnsupportedRepositoryOperationException, RepositoryException
null
if none exists yet.versionable
- the versionable tree.null
if none exists yet.UnsupportedRepositoryOperationException
- if the versionable tree is not actually
versionable.RepositoryException
- if an error occurs while checking the node
type of the tree.public Tree getVersion(String uuid)
uuid
- the uuid of the version tree.null
if there is none.public String getVersionHistoryPath(String uuid)
uuid
.
The returned path is relative to the version storage tree as returned
by getVersionStorage()
.uuid
- the uuid of the versionable nodepublic Tree getBaseVersion(Tree versionable) throws UnsupportedRepositoryOperationException, RepositoryException
null
if none exists yet. This is the case when a
versionable node is created, but is not yet saved.versionable
- the versionable tree.null
.UnsupportedRepositoryOperationException
- if the versionable tree is not actually
versionable.RepositoryException
- if an error occurs while checking the node
type of the tree."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"