public class ReplicationDefinitionImpl extends ActionImpl implements ReplicationDefinition
SchedulableAction.IntervalPeriod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXECUTOR_NAME |
static java.lang.String |
REPLICATION_DEFINITION_ENABLED |
static java.lang.String |
REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT |
static java.lang.String |
REPLICATION_DEFINITION_NAME |
static java.lang.String |
REPLICATION_DEFINITION_PAYLOAD |
static java.lang.String |
REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT |
static java.lang.String |
REPLICATION_DEFINITION_TARGET |
| Constructor and Description |
|---|
ReplicationDefinitionImpl(Action action) |
ReplicationDefinitionImpl(java.lang.String id,
java.lang.String replicationName) |
ReplicationDefinitionImpl(java.lang.String id,
java.lang.String replicationName,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
getLocalTransferReport()
Returns the local side of the report on
the transfer.
|
java.util.List |
getPayload()
The list of Nodes to be transfered.
|
org.alfresco.service.cmr.repository.NodeRef |
getRemoteTransferReport()
Returns the remote side of the report on
the transfer.
|
java.lang.String |
getReplicationName() |
org.alfresco.service.namespace.QName |
getReplicationQName() |
ScheduledPersistedAction |
getSchedule() |
java.lang.Integer |
getScheduleIntervalCount()
How many
SchedulableAction.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated. |
SchedulableAction.IntervalPeriod |
getScheduleIntervalPeriod()
How long are
SchedulableAction.getScheduleIntervalCount() counts
measured in? |
java.util.Date |
getScheduleStart()
Get the first date that the action should be run
on or after, or null if it should start shortly
after each startup.
|
java.lang.String |
getTargetName() |
boolean |
isEnabled()
Is this Replication Definition currently
enabled (can be run), or disabled
(can't be run)?
|
boolean |
isSchedulingEnabled()
Is scheduling currently enabled?
See
ReplicationService.enableScheduling(ReplicationDefinition) and
ReplicationService.disableScheduling(ReplicationDefinition) |
void |
setEnabled(boolean enabled)
Enable or Disable the Replication
Definition.
|
void |
setLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
Records the location on the local repository
of the transfer service report on the
replication.
|
void |
setRemoteTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
Records the location on the local repository
of the transfer service report that was
generated on the remote repository for the
replication.
|
protected void |
setReplicationQName(org.alfresco.service.namespace.QName replicationName) |
void |
setSchedule(ScheduledPersistedAction schedule) |
void |
setScheduleIntervalCount(java.lang.Integer count)
Sets how many periods should be waited between
each execution, or null if it shouldn't be
repeated.
|
void |
setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
Sets the interval period
|
void |
setScheduleStart(java.util.Date startDate)
Sets the first date that the action should be
run on or after.
|
void |
setTargetName(java.lang.String targetName)
Sets the name of the target repository.
|
addActionCondition, addActionCondition, addParameterValues, getActionChain, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionInstance, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getRunAsUser, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, setTitle, setTrackStatus, toStringequals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddActionCondition, addActionCondition, addParameterValues, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionCondition, setCompensatingAction, setDescription, setExecuteAsynchronously, setTitle, setTrackStatusgetId, getParameterValue, getParameterValues, setParameterValue, setParameterValuespublic static final java.lang.String EXECUTOR_NAME
public static final java.lang.String REPLICATION_DEFINITION_NAME
public static final java.lang.String REPLICATION_DEFINITION_TARGET
public static final java.lang.String REPLICATION_DEFINITION_PAYLOAD
public static final java.lang.String REPLICATION_DEFINITION_ENABLED
public static final java.lang.String REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT
public static final java.lang.String REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT
public ReplicationDefinitionImpl(java.lang.String id,
java.lang.String replicationName)
id - the action idreplicationName - a unique name for the replication action.public ReplicationDefinitionImpl(java.lang.String id,
java.lang.String replicationName,
java.lang.String description)
id - the action idreplicationName - a unique name for the replication action.description - a description of the replicationpublic ReplicationDefinitionImpl(Action action)
public java.lang.String getReplicationName()
getReplicationName in interface ReplicationDefinitionpublic org.alfresco.service.namespace.QName getReplicationQName()
getReplicationQName in interface ReplicationDefinitionprotected void setReplicationQName(org.alfresco.service.namespace.QName replicationName)
public boolean isEnabled()
ReplicationDefinitionisEnabled in interface ReplicationDefinitionpublic void setEnabled(boolean enabled)
ReplicationDefinitionsetEnabled in interface ReplicationDefinitionpublic java.util.List getPayload()
ReplicationDefinitiongetPayload in interface ReplicationDefinitionpublic java.lang.String getTargetName()
getTargetName in interface ReplicationDefinitionpublic void setTargetName(java.lang.String targetName)
ReplicationDefinitionsetTargetName in interface ReplicationDefinitionpublic org.alfresco.service.cmr.repository.NodeRef getLocalTransferReport()
ReplicationDefinitiongetLocalTransferReport in interface ReplicationDefinitionpublic void setLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinitionsetLocalTransferReport in interface ReplicationDefinitionpublic org.alfresco.service.cmr.repository.NodeRef getRemoteTransferReport()
ReplicationDefinitiongetRemoteTransferReport in interface ReplicationDefinitionpublic void setRemoteTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinitionsetRemoteTransferReport in interface ReplicationDefinitionpublic ScheduledPersistedAction getSchedule()
public void setSchedule(ScheduledPersistedAction schedule)
public java.lang.Integer getScheduleIntervalCount()
SchedulableActionSchedulableAction.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated.getScheduleIntervalCount in interface SchedulableActionpublic SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
SchedulableActionSchedulableAction.getScheduleIntervalCount() counts
measured in?getScheduleIntervalPeriod in interface SchedulableActionpublic java.util.Date getScheduleStart()
SchedulableActiongetScheduleStart in interface SchedulableActionpublic void setScheduleIntervalCount(java.lang.Integer count)
SchedulableActionsetScheduleIntervalCount in interface SchedulableActionpublic void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
SchedulableActionsetScheduleIntervalPeriod in interface SchedulableActionpublic void setScheduleStart(java.util.Date startDate)
SchedulableActionsetScheduleStart in interface SchedulableActionpublic boolean isSchedulingEnabled()
ReplicationDefinitionReplicationService.enableScheduling(ReplicationDefinition) and
ReplicationService.disableScheduling(ReplicationDefinition)isSchedulingEnabled in interface ReplicationDefinitionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.