Replication Service tweaks

In preparation for writing the webscripts, add a rename service method, and change the user facing type of the name from QName to string


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-07-27 15:01:02 +00:00
parent 88a3b85d78
commit 91aa8759f5
9 changed files with 173 additions and 29 deletions

View File

@@ -26,7 +26,6 @@ import org.alfresco.service.cmr.replication.ReplicationDefinition;
import org.alfresco.service.cmr.replication.ReplicationService;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.transfer.TransferService;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.GUID;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -97,7 +96,7 @@ public class ReplicationServiceImpl implements ReplicationService, ReplicationDe
* (org.alfresco.service.namespace.QName, java.lang.String)
*/
public ReplicationDefinition createReplicationDefinition(
QName replicationDefinitionName, String description) {
String replicationDefinitionName, String description) {
if (log.isDebugEnabled())
{
StringBuilder msg = new StringBuilder();
@@ -114,7 +113,7 @@ public class ReplicationServiceImpl implements ReplicationService, ReplicationDe
* org.alfresco.service.cmr.replication.ReplicationService#loadReplicationDefinition
* (org.alfresco.service.namespace.QName)
*/
public ReplicationDefinition loadReplicationDefinition(QName replicationDefinitionName) {
public ReplicationDefinition loadReplicationDefinition(String replicationDefinitionName) {
return replicationDefinitionPersister.loadReplicationDefinition(replicationDefinitionName);
}
@@ -136,6 +135,17 @@ public class ReplicationServiceImpl implements ReplicationService, ReplicationDe
public List<ReplicationDefinition> loadReplicationDefinitions(String target) {
return replicationDefinitionPersister.loadReplicationDefinitions(target); // TODO is this right
}
/*
* (non-Javadoc)
* @see
* org.alfresco.service.cmr.replication.ReplicationService#renameReplicationDefinition
* (String,String)
*/
public void renameReplicationDefinition(String oldReplicationName, String newReplicationName)
{
replicationDefinitionPersister.renameReplicationDefinition(oldReplicationName, newReplicationName);
}
/*
* (non-Javadoc)