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

@@ -52,7 +52,7 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
* @param replicationName
* a unique name for the replication action.
*/
public ReplicationDefinitionImpl(String id, QName replicationName)
public ReplicationDefinitionImpl(String id, String replicationName)
{
this(id, replicationName, null);
}
@@ -65,10 +65,10 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
* @param description
* a description of the replication
*/
public ReplicationDefinitionImpl(String id, QName replicationName, String description)
public ReplicationDefinitionImpl(String id, String replicationName, String description)
{
super(null, id, "replicationActionExecutor");
setParameterValue(REPLICATION_DEFINITION_NAME, replicationName);
setReplicationQName(QName.createQName(null, replicationName));
setDescription(description);
}
@@ -80,10 +80,27 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
/*
* @see org.alfresco.service.cmr.replication.ReplicationDefinition#getReplicationName()
*/
public QName getReplicationName()
public String getReplicationName()
{
return getReplicationQName().getLocalName();
}
/*
* @see org.alfresco.service.cmr.replication.ReplicationDefinition#getReplicationQName()
*/
public QName getReplicationQName()
{
Serializable parameterValue = getParameterValue(REPLICATION_DEFINITION_NAME);
return (QName) parameterValue;
return (QName)parameterValue;
}
/*
* Sets or changes the replication name, which should match
* the association name in the data dictionary
*/
protected void setReplicationQName(QName replicationName)
{
setParameterValue(REPLICATION_DEFINITION_NAME, replicationName);
}
/*