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(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(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(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(Session session,
NodeId nodeId)
Removes an activity and all
|
void |
removeVersion(Session session,
InternalVersionHistory history,
Name versionName)
Removes the specified version from the given version history.
|
void |
removeVersionHistory(Session session,
InternalVersionHistory history)
Removes the specified version history from storage.
|
InternalVersion |
setVersionLabel(Session session,
InternalVersionHistory history,
Name version,
Name label,
boolean move)
Sets the version
label to the given version. |
VirtualItemStateProvider getVirtualItemStateProvider()
VersionHistoryInfo getVersionHistory(Session session, NodeState vNode, NodeId copiedFrom) throws RepositoryException
session - workspace sessionvNode - node whose version history should be returnedcopiedFrom - the node id for the jcr:copiedFrom property use for copied nodesRepositoryException - if an error occursInternalVersion checkin(Session session, NodeStateEx node, Calendar created) throws RepositoryException
session - session that invokes the checkinnode - node to checkincreated - create time of the new version,
or null for the current timeRepositoryException - if an error occursNodeId canCheckout(NodeStateEx state, NodeId activityId) throws RepositoryException
state - node to checkoutactivityId - node id if the current activityRepositoryException - if an error occursvoid removeVersion(Session session, InternalVersionHistory history, Name versionName) throws RepositoryException
session - the session that performs the removehistory - version history to remove the version fromversionName - name of the versionRepositoryException - if an error occursvoid removeVersionHistory(Session session, InternalVersionHistory history) throws RepositoryException
session - the session that performs the removehistory - the version history to removeRepositoryException - if an error occursInternalVersion setVersionLabel(Session session, InternalVersionHistory 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.session - the session that performs the operationhistory - version historyversion - name of the versionlabel - new labelmove - if true label will be movednullRepositoryException - if an error occursInternalVersionHistory getVersionHistory(NodeId id) throws RepositoryException
id - id of the version historyRepositoryException - if an error occursInternalVersionHistory getVersionHistoryOfNode(NodeId id) throws RepositoryException
id - id of the node to retrieve the version history forRepositoryException - if an error occurs or the history does not exitInternalVersion getVersion(NodeId id) throws RepositoryException
id - id of the version to retrievenullRepositoryException - if an error occursInternalBaseline getBaseline(NodeId id) throws RepositoryException
id - id of the baseline version to retrievenull if not foundRepositoryException - if an error occursInternalActivity getActivity(NodeId id) throws RepositoryException
id - id of the activity to retrieveRepositoryException - if an error occursInternalVersion getHeadVersionOfNode(NodeId id) throws RepositoryException
id - id of the node to retrieve the version forRepositoryException - if an error occursNodeId createActivity(Session session, String title) throws RepositoryException
session - the current sessiontitle - title of the new activityRepositoryException - if an error occursvoid removeActivity(Session session, NodeId nodeId) throws RepositoryException
session - the current sessionnodeId - id of the activity to removeRepositoryException - if an error occursCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.