|
||||||||||
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. |
InternalVersion |
getVersion(NodeId id)
Returns the version with the given id |
InternalVersionHistory |
getVersionHistory(NodeId id)
Returns the version history with the given id |
VersionHistoryInfo |
getVersionHistory(Session session,
NodeState node)
Returns information about the version history of the specified node. |
VirtualItemStateProvider |
getVirtualItemStateProvider()
returns the virtual item state provider that exposes the internal versions as items. |
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()
VersionHistoryInfo getVersionHistory(Session session, NodeState node) throws RepositoryException
session
- node
- node whose version history should be returned
RepositoryException
- if an error occursVersion 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
-
RepositoryException
InternalVersionHistory getVersionHistory(NodeId id) throws RepositoryException
id
-
RepositoryException
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 |