public class ReplicationActionExecutor extends ActionExecuterAbstractBase
Modifier and Type | Class and Description |
---|---|
protected class |
ReplicationActionExecutor.ReplicationDefinitionLockExtender
A
TransferCallback which periodically renews the
lock held against a ReplicationDefinition |
actionDefinition, applicableTypes, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
ReplicationActionExecutor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Adds the parameter definitions to the list
|
protected TransferDefinition |
buildTransferDefinition(ReplicationDefinition replicationDef,
Set<org.alfresco.service.cmr.repository.NodeRef> toTransfer)
Takes a
ReplicationDefinition and a list of
NodeRef s, and returns the
TransferDefinition which will allow the
replication to be run. |
protected void |
executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action implementation
|
protected Set<org.alfresco.service.cmr.repository.NodeRef> |
expandPayload(ReplicationDefinition replicationDef)
Takes a
ReplicationDefinition , which contains one or
more payloads NodeRef s, and expands them into a
full list of nodes to be transfered. |
boolean |
onLogException(org.apache.commons.logging.Log logger,
Throwable t,
String message)
Optional logging of errors callback for the action executer
for the cases when the error might be ignored
or shown in a different manner for the action
|
void |
setActionTrackingService(ActionTrackingService actionTrackingService)
Injects the ActionTrackingService bean.
|
void |
setExcludedAspects(String[] excludedAspects) |
void |
setJobLockService(JobLockService jobLockService)
Injects the JobLockService bean.
|
void |
setNodeCrawlerFactory(NodeCrawlerFactory nodeCrawlerFactory)
Injects the NodeCrawlerFactory bean.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Injects the NodeService bean.
|
void |
setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
Injects the ReplicationDefinitionPersister bean.
|
void |
setReplicationParams(ReplicationParams replicationParams)
Sets Replication Parameters
|
void |
setTransactionService(TransactionService transactionService)
Injects the TransactionService bean.
|
void |
setTransferService(TransferService2 transferService)
Injects the TransferService bean.
|
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the NodeService.public void setJobLockService(JobLockService jobLockService)
jobLockService
- the JobLockService.public void setTransferService(TransferService2 transferService)
transferService
- the TransferService.public void setNodeCrawlerFactory(NodeCrawlerFactory nodeCrawlerFactory)
nodeCrawlerFactory
- the NodeCrawlerFactory.public void setActionTrackingService(ActionTrackingService actionTrackingService)
actionTrackingService
- the ActionTrackingService.public void setTransactionService(TransactionService transactionService)
transactionService
- the TransactionService.public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
replicationDefinitionPersister
- ReplicationDefinitionPersisterImplpublic void setReplicationParams(ReplicationParams replicationParams)
replicationParams
- replication parameterspublic void setExcludedAspects(String[] excludedAspects)
protected void addParameterDefinitions(List<ParameterDefinition> paramList)
ParameterizedItemAbstractBase
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listprotected Set<org.alfresco.service.cmr.repository.NodeRef> expandPayload(ReplicationDefinition replicationDef)
ReplicationDefinition
, which contains one or
more payloads NodeRef
s, and expands them into a
full list of nodes to be transfered.protected TransferDefinition buildTransferDefinition(ReplicationDefinition replicationDef, Set<org.alfresco.service.cmr.repository.NodeRef> toTransfer)
ReplicationDefinition
and a list of
NodeRef
s, and returns the
TransferDefinition
which will allow the
replication to be run.protected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBase
executeImpl
in class ActionExecuterAbstractBase
action
- the actionactionedUponNodeRef
- the actioned upon nodepublic boolean onLogException(org.apache.commons.logging.Log logger, Throwable t, String message)
LoggingAwareExecuter
onLogException
in interface LoggingAwareExecuter
onLogException
in class ActionExecuterAbstractBase
logger
- the loggert
- the exception thrownmessage
- the proposed message that will be loggedCopyright © 2005–2017 Alfresco Software. All rights reserved.