Package org.alfresco.repo.replication
Class ReplicationDefinitionImpl
java.lang.Object
org.alfresco.repo.action.ParameterizedItemImpl
org.alfresco.repo.action.ActionImpl
org.alfresco.repo.replication.ReplicationDefinitionImpl
- All Implemented Interfaces:
Serializable,Action,CancellableAction,ParameterizedItem,SchedulableAction,ReplicationDefinition
- Since:
- 3.4
- Author:
- Nick Burch
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction
SchedulableAction.IntervalPeriod -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReplicationDefinitionImpl(String id, String replicationName) ReplicationDefinitionImpl(String id, String replicationName, String description) ReplicationDefinitionImpl(Action action) -
Method Summary
Modifier and TypeMethodDescriptionReturns the local side of the report on the transfer.The list of Nodes to be transfered.Returns the remote side of the report on the transfer.How manySchedulableAction.getScheduleIntervalPeriod()periods should we wait between executions? Will be null if the action isn't scheduled to be repeated.How long areSchedulableAction.getScheduleIntervalCount()counts measured in?Get the first date that the action should be run on or after, or null if it should start shortly after each startup.booleanIs this Replication Definition currently enabled (can be run), or disabled (can't be run)?booleanIs scheduling currently enabled? SeeReplicationService.enableScheduling(ReplicationDefinition)andReplicationService.disableScheduling(ReplicationDefinition)booleanDoes the target exist?voidsetEnabled(boolean enabled) Enable or Disable the Replication Definition.voidsetLocalTransferReport(NodeRef report) Records the location on the local repository of the transfer service report on the replication.voidsetRemoteTransferReport(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 voidsetReplicationQName(QName replicationName) voidsetSchedule(ScheduledPersistedAction schedule) voidsetScheduleIntervalCount(Integer count) Sets how many periods should be waited between each execution, or null if it shouldn't be repeated.voidSets the interval periodvoidsetScheduleStart(Date startDate) Sets the first date that the action should be run on or after.voidsetTargetExists(boolean targetExists) voidsetTargetName(String targetName) Sets the name of the target repository.Methods inherited from class org.alfresco.repo.action.ActionImpl
addActionCondition, addActionCondition, addParameterValues, getActionChain, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionInstance, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getRunAsUser, getTenantId, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, setTenantId, setTitle, setTrackStatus, toStringMethods inherited from class org.alfresco.repo.action.ParameterizedItemImpl
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.service.cmr.action.Action
addActionCondition, 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, setTrackStatusMethods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
-
Field Details
-
EXECUTOR_NAME
- See Also:
-
REPLICATION_DEFINITION_NAME
- See Also:
-
REPLICATION_DEFINITION_TARGET
- See Also:
-
REPLICATION_DEFINITION_PAYLOAD
- See Also:
-
REPLICATION_DEFINITION_ENABLED
- See Also:
-
REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT
- See Also:
-
REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT
- See Also:
-
-
Constructor Details
-
ReplicationDefinitionImpl
- Parameters:
id- the action idreplicationName- a unique name for the replication action.
-
ReplicationDefinitionImpl
- Parameters:
id- the action idreplicationName- a unique name for the replication action.description- a description of the replication
-
ReplicationDefinitionImpl
-
-
Method Details
-
getReplicationName
- Specified by:
getReplicationNamein interfaceReplicationDefinition- Returns:
- the name which uniquely identifies this replication definition.
-
getReplicationQName
- Specified by:
getReplicationQNamein interfaceReplicationDefinition- Returns:
- the qualified name which uniquely identifies this replication definition.
-
setReplicationQName
-
isEnabled
public boolean isEnabled()Description copied from interface:ReplicationDefinitionIs this Replication Definition currently enabled (can be run), or disabled (can't be run)?- Specified by:
isEnabledin interfaceReplicationDefinition- Returns:
- Whether the definition is enabled or not
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:ReplicationDefinitionEnable or Disable the Replication Definition.- Specified by:
setEnabledin interfaceReplicationDefinition
-
getPayload
Description copied from interface:ReplicationDefinitionThe list of Nodes to be transfered. This list can be edited as required.- Specified by:
getPayloadin interfaceReplicationDefinition- Returns:
- An editable list of the nodes to be transfered
-
getTargetName
- Specified by:
getTargetNamein interfaceReplicationDefinition- Returns:
- the name of the target repository.
-
setTargetName
Description copied from interface:ReplicationDefinitionSets the name of the target repository.- Specified by:
setTargetNamein interfaceReplicationDefinition
-
getLocalTransferReport
Description copied from interface:ReplicationDefinitionReturns the local side of the report on the transfer. The transfer service generates two reports, one on the local repository, and one on the remote repository. This returns the local version of the report.- Specified by:
getLocalTransferReportin interfaceReplicationDefinition- Returns:
- The transfer report on the local repository
-
setLocalTransferReport
Description copied from interface:ReplicationDefinitionRecords the location on the local repository of the transfer service report on the replication.- Specified by:
setLocalTransferReportin interfaceReplicationDefinition
-
getRemoteTransferReport
Description copied from interface:ReplicationDefinitionReturns the remote side of the report on the transfer. The transfer service generates two reports, one on the local repository, and one on the remote repository. This returns the remote version of the report.- Specified by:
getRemoteTransferReportin interfaceReplicationDefinition- Returns:
- The transfer report on the remote repository
-
setRemoteTransferReport
Description copied from interface:ReplicationDefinitionRecords the location on the local repository of the transfer service report that was generated on the remote repository for the replication.- Specified by:
setRemoteTransferReportin interfaceReplicationDefinition
-
getSchedule
-
setSchedule
-
getScheduleIntervalCount
Description copied from interface:SchedulableActionHow manySchedulableAction.getScheduleIntervalPeriod()periods should we wait between executions? Will be null if the action isn't scheduled to be repeated.- Specified by:
getScheduleIntervalCountin interfaceSchedulableAction
-
getScheduleIntervalPeriod
Description copied from interface:SchedulableActionHow long areSchedulableAction.getScheduleIntervalCount()counts measured in?- Specified by:
getScheduleIntervalPeriodin interfaceSchedulableAction
-
getScheduleStart
Description copied from interface:SchedulableActionGet the first date that the action should be run on or after, or null if it should start shortly after each startup.- Specified by:
getScheduleStartin interfaceSchedulableAction
-
setScheduleIntervalCount
Description copied from interface:SchedulableActionSets how many periods should be waited between each execution, or null if it shouldn't be repeated.- Specified by:
setScheduleIntervalCountin interfaceSchedulableAction
-
setScheduleIntervalPeriod
Description copied from interface:SchedulableActionSets the interval period- Specified by:
setScheduleIntervalPeriodin interfaceSchedulableAction
-
setScheduleStart
Description copied from interface:SchedulableActionSets the first date that the action should be run on or after. Set to null if the action should be run shortly after each startup.- Specified by:
setScheduleStartin interfaceSchedulableAction
-
isSchedulingEnabled
public boolean isSchedulingEnabled()Description copied from interface:ReplicationDefinitionIs scheduling currently enabled? SeeReplicationService.enableScheduling(ReplicationDefinition)andReplicationService.disableScheduling(ReplicationDefinition)- Specified by:
isSchedulingEnabledin interfaceReplicationDefinition
-
isTargetExists
public boolean isTargetExists()Description copied from interface:ReplicationDefinitionDoes the target exist?- Specified by:
isTargetExistsin interfaceReplicationDefinition- Returns:
- true it does
-
setTargetExists
public void setTargetExists(boolean targetExists)
-