public interface InternalVersionManager
| Modifier and Type | Method and Description |
|---|---|
NodeId |
canCheckout(NodeStateEx state,
NodeId activityId)
invokes the checkout() on the persistent version manager.
|
InternalVersion |
checkin(javax.jcr.Session session,
NodeStateEx node,
Calendar created)
invokes the checkin() on the persistent version manager and remaps the
newly created version objects.
|
void |
close()
Close this version manager.
|
NodeId |
createActivity(javax.jcr.Session session,
String title)
Creates a new activity
|
InternalActivity |
getActivity(NodeId id)
Returns the activity with the given id
|
InternalBaseline |
getBaseline(NodeId id)
Returns the baseline with the given id
|
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(javax.jcr.Session session,
NodeState vNode,
NodeId copiedFrom)
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 |
removeActivity(javax.jcr.Session session,
NodeId nodeId)
Removes an activity and all
|
void |
removeVersion(javax.jcr.Session session,
InternalVersionHistory history,
Name versionName)
Removes the specified version from the given version history.
|
void |
removeVersionHistory(javax.jcr.Session session,
InternalVersionHistory history)
Removes the specified version history from storage.
|
InternalVersion |
setVersionLabel(javax.jcr.Session session,
InternalVersionHistory history,
Name version,
Name label,
boolean move)
Sets the version
label to the given version. |
VirtualItemStateProvider getVirtualItemStateProvider()
VersionHistoryInfo getVersionHistory(javax.jcr.Session session, NodeState vNode, NodeId copiedFrom) throws javax.jcr.RepositoryException
session - workspace sessionvNode - node whose version history should be returnedcopiedFrom - the node id for the jcr:copiedFrom property use for copied nodesjavax.jcr.RepositoryException - if an error occursInternalVersion checkin(javax.jcr.Session session, NodeStateEx node, Calendar created) throws javax.jcr.RepositoryException
session - session that invokes the checkinnode - node to checkincreated - create time of the new version,
or null for the current timejavax.jcr.RepositoryException - if an error occursNodeId canCheckout(NodeStateEx state, NodeId activityId) throws javax.jcr.RepositoryException
state - node to checkoutactivityId - node id if the current activityjavax.jcr.RepositoryException - if an error occursvoid removeVersion(javax.jcr.Session session,
InternalVersionHistory history,
Name versionName)
throws javax.jcr.RepositoryException
session - the session that performs the removehistory - version history to remove the version fromversionName - name of the versionjavax.jcr.RepositoryException - if an error occursvoid removeVersionHistory(javax.jcr.Session session,
InternalVersionHistory history)
throws javax.jcr.RepositoryException
session - the session that performs the removehistory - the version history to removejavax.jcr.RepositoryException - if an error occursInternalVersion setVersionLabel(javax.jcr.Session session, InternalVersionHistory 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.session - the session that performs the operationhistory - version historyversion - name of the versionlabel - new labelmove - if true label will be movednulljavax.jcr.RepositoryException - if an error occursInternalVersionHistory getVersionHistory(NodeId id) throws javax.jcr.RepositoryException
id - id of the version historyjavax.jcr.RepositoryException - if an error occursInternalVersionHistory getVersionHistoryOfNode(NodeId id) throws javax.jcr.RepositoryException
id - id of the node to retrieve the version history forjavax.jcr.RepositoryException - if an error occurs or the history does not exitInternalVersion getVersion(NodeId id) throws javax.jcr.RepositoryException
id - id of the version to retrievenulljavax.jcr.RepositoryException - if an error occursInternalBaseline getBaseline(NodeId id) throws javax.jcr.RepositoryException
id - id of the baseline version to retrievenull if not foundjavax.jcr.RepositoryException - if an error occursInternalActivity getActivity(NodeId id) throws javax.jcr.RepositoryException
id - id of the activity to retrievejavax.jcr.RepositoryException - if an error occursInternalVersion getHeadVersionOfNode(NodeId id) throws javax.jcr.RepositoryException
id - id of the node to retrieve the version forjavax.jcr.RepositoryException - if an error occursNodeId createActivity(javax.jcr.Session session, String title) throws javax.jcr.RepositoryException
session - the current sessiontitle - title of the new activityjavax.jcr.RepositoryException - if an error occursvoid removeActivity(javax.jcr.Session session,
NodeId nodeId)
throws javax.jcr.RepositoryException
session - the current sessionnodeId - id of the activity to removejavax.jcr.RepositoryException - if an error occursCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.