mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Made revert to version behave better. Now when a node is reverted a clone of
the version being reverted to is created. This clone has the previous head version as its ancestor and a wcm:reverted aspect applied. wcm:reverted contains wcm:revertedid, the node id that the reversion is a clone of. Revert to version is now a simple call to a new AVMService method, revert(). Propagated this to the remote API. Modified the the AVMRevertToVersionAction to use this mechanism. Though really the action isn't really needed now. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -800,4 +800,14 @@ public interface AVMService
|
||||
* @throws AVMExistsException
|
||||
*/
|
||||
public void renameStore(String sourceName, String destName);
|
||||
|
||||
/**
|
||||
* Revert a head path to a given version. This works by cloning
|
||||
* the version to revert to, and then linking that new version into head.
|
||||
* The reverted version will have the previous head version as ancestor.
|
||||
* @param path The path to the node to revert.
|
||||
* @param toRevertTo The descriptor of the version to revert to.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void revert(String path, AVMNodeDescriptor toRevertTo);
|
||||
}
|
||||
|
@@ -443,4 +443,14 @@ public interface AVMRemote
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public boolean hasAspect(int version, String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Revert a head path to a given version. This works by cloning
|
||||
* the version to revert to, and then linking that new version into head.
|
||||
* The reverted version will have the previous head version as ancestor.
|
||||
* @param path The path to the node to revert.
|
||||
* @param toRevertTo The descriptor of the version to revert to.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void revert(String path, AVMNodeDescriptor toRevertTo);
|
||||
}
|
||||
|
@@ -461,4 +461,14 @@ public interface AVMRemoteTransport
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public boolean hasAspect(String ticket, int version, String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Revert a head path to a given version. This works by cloning
|
||||
* the version to revert to, and then linking that new version into head.
|
||||
* The reverted version will have the previous head version as ancestor.
|
||||
* @param path The path to the node to revert.
|
||||
* @param toRevertTo The descriptor of the version to revert to.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void revert(String ticket, String path, AVMNodeDescriptor toRevertTo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user