mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user