public class ReplicationDefinitionImpl extends ActionImpl implements ReplicationDefinition
SchedulableAction.IntervalPeriod
Modifier and Type | Field and Description |
---|---|
static String |
EXECUTOR_NAME |
static String |
REPLICATION_DEFINITION_ENABLED |
static String |
REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT |
static String |
REPLICATION_DEFINITION_NAME |
static String |
REPLICATION_DEFINITION_PAYLOAD |
static String |
REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT |
static String |
REPLICATION_DEFINITION_TARGET |
Constructor and Description |
---|
ReplicationDefinitionImpl(Action action) |
ReplicationDefinitionImpl(String id,
String replicationName) |
ReplicationDefinitionImpl(String id,
String replicationName,
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.
|
List<org.alfresco.service.cmr.repository.NodeRef> |
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.
|
String |
getReplicationName() |
org.alfresco.service.namespace.QName |
getReplicationQName() |
ScheduledPersistedAction |
getSchedule() |
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? |
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.
|
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) |
boolean |
isTargetExists()
Does the target exist?
|
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(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(Date startDate)
Sets the first date that the action should be
run on or after.
|
void |
setTargetExists(boolean targetExists) |
void |
setTargetName(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, 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, toString
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
public static final String EXECUTOR_NAME
public static final String REPLICATION_DEFINITION_NAME
public static final String REPLICATION_DEFINITION_TARGET
public static final String REPLICATION_DEFINITION_PAYLOAD
public static final String REPLICATION_DEFINITION_ENABLED
public static final String REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT
public static final String REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT
public ReplicationDefinitionImpl(String id, String replicationName)
id
- the action idreplicationName
- a unique name for the replication action.public ReplicationDefinitionImpl(String id, String replicationName, String description)
id
- the action idreplicationName
- a unique name for the replication action.description
- a description of the replicationpublic ReplicationDefinitionImpl(Action action)
public String getReplicationName()
getReplicationName
in interface ReplicationDefinition
public org.alfresco.service.namespace.QName getReplicationQName()
getReplicationQName
in interface ReplicationDefinition
protected void setReplicationQName(org.alfresco.service.namespace.QName replicationName)
public boolean isEnabled()
ReplicationDefinition
isEnabled
in interface ReplicationDefinition
public void setEnabled(boolean enabled)
ReplicationDefinition
setEnabled
in interface ReplicationDefinition
public List<org.alfresco.service.cmr.repository.NodeRef> getPayload()
ReplicationDefinition
getPayload
in interface ReplicationDefinition
public String getTargetName()
getTargetName
in interface ReplicationDefinition
public void setTargetName(String targetName)
ReplicationDefinition
setTargetName
in interface ReplicationDefinition
public org.alfresco.service.cmr.repository.NodeRef getLocalTransferReport()
ReplicationDefinition
getLocalTransferReport
in interface ReplicationDefinition
public void setLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinition
setLocalTransferReport
in interface ReplicationDefinition
public org.alfresco.service.cmr.repository.NodeRef getRemoteTransferReport()
ReplicationDefinition
getRemoteTransferReport
in interface ReplicationDefinition
public void setRemoteTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinition
setRemoteTransferReport
in interface ReplicationDefinition
public ScheduledPersistedAction getSchedule()
public void setSchedule(ScheduledPersistedAction schedule)
public Integer getScheduleIntervalCount()
SchedulableAction
SchedulableAction.getScheduleIntervalPeriod()
periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated.getScheduleIntervalCount
in interface SchedulableAction
public SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
SchedulableAction
SchedulableAction.getScheduleIntervalCount()
counts
measured in?getScheduleIntervalPeriod
in interface SchedulableAction
public Date getScheduleStart()
SchedulableAction
getScheduleStart
in interface SchedulableAction
public void setScheduleIntervalCount(Integer count)
SchedulableAction
setScheduleIntervalCount
in interface SchedulableAction
public void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
SchedulableAction
setScheduleIntervalPeriod
in interface SchedulableAction
public void setScheduleStart(Date startDate)
SchedulableAction
setScheduleStart
in interface SchedulableAction
public boolean isSchedulingEnabled()
ReplicationDefinition
ReplicationService.enableScheduling(ReplicationDefinition)
and
ReplicationService.disableScheduling(ReplicationDefinition)
isSchedulingEnabled
in interface ReplicationDefinition
public boolean isTargetExists()
ReplicationDefinition
isTargetExists
in interface ReplicationDefinition
public void setTargetExists(boolean targetExists)
Copyright © 2005–2017 Alfresco Software. All rights reserved.