|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalVersionManager
This interface defines the version manager. It gives access to the underlying persistence layer of the versioning.
Method Summary | |
---|---|
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. |
InternalVersion |
setVersionLabel(Session session,
InternalVersionHistory history,
Name version,
Name label,
boolean move)
Sets the version label to the given version . |
Method Detail |
---|
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 nodes
RepositoryException
- 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 time
RepositoryException
- if an error occursNodeId canCheckout(NodeStateEx state, NodeId activityId) throws RepositoryException
state
- node to checkoutactivityId
- node id if the current activity
RepositoryException
- 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 version
RepositoryException
- 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 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
null
RepositoryException
- if an error occursInternalBaseline getBaseline(NodeId id) throws RepositoryException
id
- id of the baseline version to retrieve
null
if not found
RepositoryException
- if an error occursInternalActivity getActivity(NodeId id) throws RepositoryException
id
- id of the activity 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 occursNodeId createActivity(Session session, String title) throws RepositoryException
session
- the current sessiontitle
- title of the new activity
RepositoryException
- if an error occursvoid removeActivity(Session session, NodeId nodeId) throws RepositoryException
session
- the current sessionnodeId
- id of the activity to remove
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 |