Update ReplicationDefinition to hold both local and remote transfer reports, ready for ALF-4126

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21503 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-07-30 11:12:10 +00:00
parent 9d48876cea
commit a35543d4c4
2 changed files with 39 additions and 3 deletions

View File

@@ -44,7 +44,8 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
public static final String REPLICATION_DEFINITION_TARGET = "replicationTarget";
public static final String REPLICATION_DEFINITION_PAYLOAD = "replicationPayload";
public static final String REPLICATION_DEFINITION_ENABLED = "replicationDefinitionEnabled";
public static final String REPLICATION_DEFINITION_TRANSFER_REPORT = "replicationTransferReport";
public static final String REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT = "replicationTransferLocalReport";
public static final String REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT = "replicationTransferRemoteReport";
/**
* @param id
@@ -181,7 +182,7 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
* org.alfresco.service.cmr.replication.ReplicationDefinition#getLocalTransferReport()
*/
public NodeRef getLocalTransferReport() {
return (NodeRef)getParameterValue(REPLICATION_DEFINITION_TRANSFER_REPORT);
return (NodeRef)getParameterValue(REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT);
}
/*
@@ -189,6 +190,22 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
* org.alfresco.service.cmr.replication.ReplicationDefinition#setLocalTransferReport(NodeRef)
*/
public void setLocalTransferReport(NodeRef report) {
setParameterValue(REPLICATION_DEFINITION_TRANSFER_REPORT, report);
setParameterValue(REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT, report);
}
/*
* @see
* org.alfresco.service.cmr.replication.ReplicationDefinition#getRemoteTransferReport()
*/
public NodeRef getRemoteTransferReport() {
return (NodeRef)getParameterValue(REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT);
}
/*
* @see
* org.alfresco.service.cmr.replication.ReplicationDefinition#setRemoteTransferReport(NodeRef)
*/
public void setRemoteTransferReport(NodeRef report) {
setParameterValue(REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT, report);
}
}