|
Field Summary | ||
VERSION_STORE_PROTOCOL The version store protocol label, used in store references |
Method Summary | ||
createVersion(Collection<NodeRef> nodeRefs, Map<String,Serializable> versionProperties) Creates new versions based on the list of node references provided. |
||
createVersion(NodeRef nodeRef, Map<String,Serializable> versionProperties) Creates a new version based on the referenced node. |
||
createVersion(NodeRef nodeRef, Map<String,Serializable> versionProperties, boolean versionChildren) Creates a new version based on the referenced node. |
||
void |
deleteVersion(NodeRef nodeRef, Version version) Delete a specific version associated with a node reference. |
|
void |
deleteVersionHistory(NodeRef nodeRef) Delete the version history associated with a node reference. |
|
void |
ensureVersioningEnabled(NodeRef nodeRef, Map<QName,Serializable> versionProperties) Ensures that a node has the versionable aspect applied to it, and has at least an initial entry in the version store. |
|
getCurrentVersion(NodeRef nodeRef) Gets the version object for the current version of the node reference passed. |
||
getVersionHistory(NodeRef nodeRef) Gets the version history information for a node. |
||
getVersionStoreReference() Gets the reference to the version store |
||
boolean |
isAVersion(NodeRef nodeRef) Is the nodeRef a version node? |
|
boolean |
isVersioned(NodeRef nodeRef) Is the nodeRef versioned? |
|
void |
registerVersionLabelPolicy(QName typeQName, org.alfresco.repo.version.VersionServicePolicies.CalculateVersionLabelPolicy policy) Register a version label policy |
|
restore(NodeRef nodeRef, NodeRef parentNodeRef, QName assocTypeQName, QName assocQName) By default a deep restore is performed. |
||
restore(NodeRef nodeRef, NodeRef parentNodeRef, QName assocTypeQName, QName assocQName, boolean deep) Restores a node not currently present in the store, but that has a version history. |
||
void |
revert(NodeRef nodeRef) Revert the state of the node to the current version. |
|
void |
revert(NodeRef nodeRef, boolean deep) Revert the state of the node to the current version. |
|
void |
revert(NodeRef nodeRef, Version version) Revert the state of the node to the specified version. |
|
void |
revert(NodeRef nodeRef, Version version, boolean deep) Revert the state of the node to the specified version. |
If the node has not previously been versioned then a version history and initial version will be created.
If the node referenced does not or can not have the version aspect applied to it then an exception will be raised.
The version properties are stored as version meta-data against the newly created version.
If the node has not previously been versioned then a version history and initial version will be created.
If the node referenced does not or can not have the version aspect applied to it then an exception will be raised.
The version properties are stored as version meta-data against the newly created version.
If the node has not been versioned then null is returned.
If the node referenced does not or can not have the version aspect applied to it then an exception will be raised.
Returns null if the node is not versionable or has not been versioned.
The node reference will be reverted to the current version.
A deep revert will be performed.
The node will be reverted to the current version.
A deep revert will take place by default.
Any changes made to the node will be lost and the state of the node will reflect that of the version specified.
The version label property on the node reference will remain unchanged.
If the node is further versioned then the new version will be created at the head of the version history graph. A branch will not be created.
If a deep revert is to be performed then any child nodes that are no longer present will be deep restored (if appropriate) otherwise child associations to deleted, versioned nodes will not be restored.
The restored node will be at the head (most resent version).
Restoration will fail if there is no version history for the specified node id in the specified store.
If the node already exists in the store then an exception will be raised.
Once the node is restored it is reverted to the head version in the appropriate version history tree. If deep is set to true then this will be a deep revert, false otherwise.
This operation is permanent, all versions in the version history are deleted and cannot be retrieved.
The current version label for the node reference is reset and any subsequent versions of the node will result in a new version history being created.
This operation is permanent, the specific version in the version history is deleted and cannot be retrieved.
If this is the last version, then the current version label for the node reference is reset and any subsequent versions of the node will result in a new version history being created.
|