- Added getCopies method to CopyService

- Copy and transform actions will now (by default) overwrite an exiting copy.  A parameter can be set on both actions to revert to the previous, always copy, behaviour.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2755 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-05-04 11:15:38 +00:00
parent 5b81614707
commit 5ba9ae0028
6 changed files with 229 additions and 39 deletions

View File

@@ -16,6 +16,8 @@
*/
package org.alfresco.service.cmr.repository;
import java.util.List;
import org.alfresco.service.namespace.QName;
/**
@@ -115,5 +117,13 @@ public interface CopyService
* @param sourceNodeRef the source node reference
* @param destinationNodeRef the destination node reference
*/
public void copy(NodeRef sourceNodeRef, NodeRef destinationNodeRef);
public void copy(NodeRef sourceNodeRef, NodeRef destinationNodeRef);
/**
* Gets all the copies of a given node that have been made using this service.
*
* @param nodeRef the origional node reference
* @return a list of copies, empty is none
*/
public List<NodeRef> getCopies(NodeRef nodeRef);
}