|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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,
QName versionName)
Removes the specified version from the given version history. |
Version |
setVersionLabel(VersionHistory history,
QName version,
QName label,
boolean move)
Sets the version label to the given version . |
Method Detail |
public VirtualItemStateProvider getVirtualItemStateProvider()
public VersionHistory createVersionHistory(Session session, NodeState node) throws RepositoryException
node
-
RepositoryException
getVersionHistory(Session, NodeState)
public 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)
public Version checkin(NodeImpl node) throws RepositoryException
node
-
RepositoryException
public void removeVersion(VersionHistory history, QName versionName) throws RepositoryException
history
- versionName
-
RepositoryException
public Version setVersionLabel(VersionHistory history, QName version, QName 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
public boolean hasVersionHistory(NodeId id)
id
-
true
if the version history exists.public InternalVersionHistory getVersionHistory(NodeId id) throws RepositoryException
id
-
RepositoryException
public boolean hasVersion(NodeId id)
id
-
true
if the version exists.public InternalVersion getVersion(NodeId id) throws RepositoryException
id
-
RepositoryException
public 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 |