mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Replication Definition enable/disable/check support (Replication 69+70)
Ability to enable and disable replication definitions, which the executor checks, along with unit tests git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -43,6 +43,7 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
|
||||
public static final String REPLICATION_DEFINITION_NAME = "replicationActionName";
|
||||
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";
|
||||
|
||||
/**
|
||||
@@ -84,6 +85,28 @@ public class ReplicationDefinitionImpl extends ActionImpl implements Replication
|
||||
Serializable parameterValue = getParameterValue(REPLICATION_DEFINITION_NAME);
|
||||
return (QName) parameterValue;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.alfresco.service.cmr.replication.ReplicationDefinition#isEnabled()
|
||||
*/
|
||||
public boolean isEnabled()
|
||||
{
|
||||
Serializable parameterValue = getParameterValue(REPLICATION_DEFINITION_ENABLED);
|
||||
if(parameterValue == null)
|
||||
{
|
||||
// Default is enabled
|
||||
return true;
|
||||
}
|
||||
return ((Boolean)parameterValue).booleanValue();
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.alfresco.service.cmr.replication.ReplicationDefinition#setEnabled(boolean)
|
||||
*/
|
||||
public void setEnabled(boolean enabled)
|
||||
{
|
||||
setParameterValue(REPLICATION_DEFINITION_ENABLED, new Boolean(enabled));
|
||||
}
|
||||
|
||||
/*
|
||||
* @see
|
||||
|
Reference in New Issue
Block a user