|
||||||||||
| 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 | |
|---|---|
javax.jcr.version.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(javax.jcr.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(javax.jcr.version.VersionHistory history,
Name versionName)
Removes the specified version from the given version history. |
javax.jcr.version.Version |
setVersionLabel(javax.jcr.version.VersionHistory history,
Name version,
Name label,
boolean move)
Sets the version label to the given version. |
| Method Detail |
|---|
VirtualItemStateProvider getVirtualItemStateProvider()
VersionHistoryInfo getVersionHistory(javax.jcr.Session session,
NodeState node)
throws javax.jcr.RepositoryException
session - node - node whose version history should be returned
javax.jcr.RepositoryException - if an error occurs
javax.jcr.version.Version checkin(NodeImpl node)
throws javax.jcr.RepositoryException
node -
javax.jcr.RepositoryException
void removeVersion(javax.jcr.version.VersionHistory history,
Name versionName)
throws javax.jcr.RepositoryException
history - versionName -
javax.jcr.RepositoryException
javax.jcr.version.Version setVersionLabel(javax.jcr.version.VersionHistory history,
Name version,
Name label,
boolean move)
throws javax.jcr.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 -
javax.jcr.RepositoryException
InternalVersionHistory getVersionHistory(NodeId id)
throws javax.jcr.RepositoryException
id -
javax.jcr.RepositoryException
InternalVersion getVersion(NodeId id)
throws javax.jcr.RepositoryException
id -
javax.jcr.RepositoryException
void close()
throws java.lang.Exception
java.lang.Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||