|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VersionManager
This interface defines the version manager. It gives access to the underlying persistence layer of the versioning.
| Method Summary | |
|---|---|
Version |
checkin(NodeImpl node)
invokes the checkin() on the persistent version manager and remaps the newly created version objects. |
void |
close()
Close this version manager. |
VersionHistory |
createVersionHistory(Session session,
NodeState node)
Creates a new version history. |
InternalVersion |
getVersion(NodeId id)
Returns the version with the given id |
InternalVersionHistory |
getVersionHistory(NodeId id)
Returns the version history with the given id |
VersionHistory |
getVersionHistory(Session session,
NodeState node)
Returns the version history of the specified node or
null if the given node doesn't (yet) have an associated
version history. |
VirtualItemStateProvider |
getVirtualItemStateProvider()
returns the virtual item state provider that exposes the internal versions as items. |
boolean |
hasVersion(NodeId id)
Checks if the version with the given id exists |
boolean |
hasVersionHistory(NodeId id)
Checks if the version history with the given id exists |
void |
removeVersion(VersionHistory history,
Name versionName)
Removes the specified version from the given version history. |
Version |
setVersionLabel(VersionHistory history,
Name version,
Name label,
boolean move)
Sets the version label to the given version. |
| Method Detail |
|---|
VirtualItemStateProvider getVirtualItemStateProvider()
VersionHistory createVersionHistory(Session session,
NodeState node)
throws RepositoryException
node -
RepositoryExceptiongetVersionHistory(Session, NodeState)
VersionHistory getVersionHistory(Session session,
NodeState node)
throws RepositoryException
node or
null if the given node doesn't (yet) have an associated
version history.
session - node - node whose version history should be returned
node or
null if the given node doesn't (yet) have an
associated version history.
RepositoryException - if an error occurscreateVersionHistory(Session, NodeState)
Version checkin(NodeImpl node)
throws RepositoryException
node -
RepositoryException
void removeVersion(VersionHistory history,
Name versionName)
throws RepositoryException
history - versionName -
RepositoryException
Version setVersionLabel(VersionHistory history,
Name version,
Name label,
boolean move)
throws RepositoryException
label to the given version.
If the label is already assigned to another version, a VersionException is
thrown unless move is true. If version
is null, the label is removed from the respective version.
In either case, the version the label was previously assigned is returned,
or null of the label was not moved.
history - version - label - move -
RepositoryExceptionboolean hasVersionHistory(NodeId id)
id -
true if the version history exists.
InternalVersionHistory getVersionHistory(NodeId id)
throws RepositoryException
id -
RepositoryExceptionboolean hasVersion(NodeId id)
id -
true if the version exists.
InternalVersion getVersion(NodeId id)
throws RepositoryException
id -
RepositoryException
void close()
throws Exception
Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||