Interface ReplicationDefinition
-
- All Superinterfaces:
Action,CancellableAction,ParameterizedItem,SchedulableAction,java.io.Serializable
- All Known Implementing Classes:
ReplicationDefinitionImpl
public interface ReplicationDefinition extends CancellableAction, SchedulableAction, java.io.Serializable
This class is used to fully specify an inter-repository replication. It specifies which node(s) should be transfered, which associated content should be sent with them, and which target they should be sent to. Every ReplicationDefinition has areplicationNameattribute which uniquely identifies it. It also has a single target.- Author:
- Nick Burch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction
SchedulableAction.IntervalPeriod
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetLocalTransferReport()Returns the local side of the report on the transfer.java.util.List<org.alfresco.service.cmr.repository.NodeRef>getPayload()The list of Nodes to be transfered.org.alfresco.service.cmr.repository.NodeRefgetRemoteTransferReport()Returns the remote side of the report on the transfer.java.lang.StringgetReplicationName()org.alfresco.service.namespace.QNamegetReplicationQName()java.lang.StringgetTargetName()booleanisEnabled()Is this Replication Definition currently enabled (can be run), or disabled (can't be run)?booleanisSchedulingEnabled()Is scheduling currently enabled? SeeReplicationService.enableScheduling(ReplicationDefinition)andReplicationService.disableScheduling(ReplicationDefinition)booleanisTargetExists()Does the target exist?voidsetEnabled(boolean enabled)Enable or Disable the Replication Definition.voidsetLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)Records the location on the local repository of the transfer service report on the replication.voidsetRemoteTransferReport(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.voidsetTargetName(java.lang.String targetName)Sets the name of the target repository.-
Methods 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, setTrackStatus
-
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
-
Methods inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction
getScheduleIntervalCount, getScheduleIntervalPeriod, getScheduleStart, setScheduleIntervalCount, setScheduleIntervalPeriod, setScheduleStart
-
-
-
-
Method Detail
-
getReplicationName
java.lang.String getReplicationName()
- Returns:
- the name which uniquely identifies this replication definition.
-
getReplicationQName
org.alfresco.service.namespace.QName getReplicationQName()
- Returns:
- the qualified name which uniquely identifies this replication definition.
-
getTargetName
java.lang.String getTargetName()
- Returns:
- the name of the target repository.
-
setTargetName
void setTargetName(java.lang.String targetName)
Sets the name of the target repository.
-
isEnabled
boolean isEnabled()
Is this Replication Definition currently enabled (can be run), or disabled (can't be run)?- Returns:
- Whether the definition is enabled or not
-
setEnabled
void setEnabled(boolean enabled)
Enable or Disable the Replication Definition.
-
getPayload
java.util.List<org.alfresco.service.cmr.repository.NodeRef> getPayload()
The list of Nodes to be transfered. This list can be edited as required.- Returns:
- An editable list of the nodes to be transfered
-
getLocalTransferReport
org.alfresco.service.cmr.repository.NodeRef getLocalTransferReport()
Returns 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.- Returns:
- The transfer report on the local repository
-
setLocalTransferReport
void setLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
Records the location on the local repository of the transfer service report on the replication.
-
getRemoteTransferReport
org.alfresco.service.cmr.repository.NodeRef getRemoteTransferReport()
Returns 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.- Returns:
- The transfer report on the remote repository
-
setRemoteTransferReport
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.
-
isSchedulingEnabled
boolean isSchedulingEnabled()
Is scheduling currently enabled? SeeReplicationService.enableScheduling(ReplicationDefinition)andReplicationService.disableScheduling(ReplicationDefinition)
-
isTargetExists
boolean isTargetExists()
Does the target exist?- Returns:
- true it does
-
-