|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.ParameterizedItemImpl
org.alfresco.repo.action.ActionImpl
org.alfresco.repo.replication.ReplicationDefinitionImpl
public class ReplicationDefinitionImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction |
|---|
SchedulableAction.IntervalPeriod |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.alfresco.repo.action.ParameterizedItemImpl |
|---|
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem |
|---|
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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()
ReplicationDefinition
isEnabled in interface ReplicationDefinitionpublic void setEnabled(boolean enabled)
ReplicationDefinition
setEnabled in interface ReplicationDefinitionpublic java.util.List getPayload()
ReplicationDefinition
getPayload in interface ReplicationDefinitionpublic java.lang.String getTargetName()
getTargetName in interface ReplicationDefinitionpublic void setTargetName(java.lang.String targetName)
ReplicationDefinition
setTargetName in interface ReplicationDefinitionpublic org.alfresco.service.cmr.repository.NodeRef getLocalTransferReport()
ReplicationDefinition
getLocalTransferReport in interface ReplicationDefinitionpublic void setLocalTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinition
setLocalTransferReport in interface ReplicationDefinitionpublic org.alfresco.service.cmr.repository.NodeRef getRemoteTransferReport()
ReplicationDefinition
getRemoteTransferReport in interface ReplicationDefinitionpublic void setRemoteTransferReport(org.alfresco.service.cmr.repository.NodeRef report)
ReplicationDefinition
setRemoteTransferReport 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()
SchedulableAction
getScheduleStart in interface SchedulableActionpublic void setScheduleIntervalCount(java.lang.Integer count)
SchedulableAction
setScheduleIntervalCount in interface SchedulableActionpublic void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
SchedulableAction
setScheduleIntervalPeriod in interface SchedulableActionpublic void setScheduleStart(java.util.Date startDate)
SchedulableAction
setScheduleStart in interface SchedulableActionpublic boolean isSchedulingEnabled()
ReplicationDefinitionReplicationService.enableScheduling(ReplicationDefinition) and
ReplicationService.disableScheduling(ReplicationDefinition)
isSchedulingEnabled in interface ReplicationDefinition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||