|
||||||||||
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,
Calendar cal)
invokes the checkin() on the persistent version manager and remaps the newly created version objects. |
void |
close()
Close this version manager. |
InternalVersion |
getHeadVersionOfNode(NodeId id)
Returns the head version of the node with the given id. |
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. |
InternalVersionHistory |
getVersionHistoryOfNode(NodeId id)
Returns the version history for the versionable node with the given id. |
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
- workspace sessionnode
- node whose version history should be returned
RepositoryException
- if an error occursVersion checkin(NodeImpl node, Calendar cal) throws RepositoryException
node
- node to checkincal
- create time of the new version, or null
RepositoryException
- if an error occursvoid removeVersion(VersionHistory history, Name versionName) throws RepositoryException
history
- version history to remove the version fromversionName
- name of the version
RepositoryException
- if an error occursVersion 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 historyversion
- name of the versionlabel
- new labelmove
- if true
label will be moved
null
RepositoryException
- if an error occursInternalVersionHistory getVersionHistory(NodeId id) throws RepositoryException
id
- id of the version history
RepositoryException
- if an error occursInternalVersionHistory getVersionHistoryOfNode(NodeId id) throws RepositoryException
id
- id of the node to retrieve the version history for
RepositoryException
- if an error occurs or the history does not exitInternalVersion getVersion(NodeId id) throws RepositoryException
id
- id of the version to retrieve
RepositoryException
- if an error occursInternalVersion getHeadVersionOfNode(NodeId id) throws RepositoryException
id
- id of the node to retrieve the version for
RepositoryException
- if an error occursvoid close() throws Exception
Exception
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |