Package org.alfresco.repo.replication
Class ReplicationActionExecutor
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.replication.ReplicationActionExecutor
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Since:
- 3.4
- Author:
- Nick Burch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classATransferCallbackwhich periodically renews the lock held against aReplicationDefinition -
Field Summary
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionAccessRestrictions, actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Adds the parameter definitions to the listprotected TransferDefinitionbuildTransferDefinition(ReplicationDefinition replicationDef, Set<NodeRef> toTransfer) Takes aReplicationDefinitionand a list ofNodeRefs, and returns theTransferDefinitionwhich will allow the replication to be run.protected voidexecuteImpl(Action action, NodeRef actionedUponNodeRef) Execute the action implementationexpandPayload(ReplicationDefinition replicationDef) Takes aReplicationDefinition, which contains one or more payloadsNodeRefs, and expands them into a full list of nodes to be transfered.booleanonLogException(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 actionvoidsetActionTrackingService(ActionTrackingService actionTrackingService) Injects the ActionTrackingService bean.voidsetExcludedAspects(String[] excludedAspects) voidsetJobLockService(JobLockService jobLockService) Injects the JobLockService bean.voidsetNodeCrawlerFactory(NodeCrawlerFactory nodeCrawlerFactory) Injects the NodeCrawlerFactory bean.voidsetNodeService(NodeService nodeService) Injects the NodeService bean.voidsetReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister) Injects the ReplicationDefinitionPersister bean.voidsetReplicationParams(ReplicationParams replicationParams) Sets Replication ParametersvoidsetTransactionService(TransactionService transactionService) Injects the TransactionService bean.voidsetTransferService(TransferService2 transferService) Injects the TransferService bean.Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus, verifyActionAccessRestrictionsMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Constructor Details
-
ReplicationActionExecutor
public ReplicationActionExecutor()
-
-
Method Details
-
setNodeService
Injects the NodeService bean.- Parameters:
nodeService- the NodeService.
-
setJobLockService
Injects the JobLockService bean.- Parameters:
jobLockService- the JobLockService.
-
setTransferService
Injects the TransferService bean.- Parameters:
transferService- the TransferService.
-
setNodeCrawlerFactory
Injects the NodeCrawlerFactory bean.- Parameters:
nodeCrawlerFactory- the NodeCrawlerFactory.
-
setActionTrackingService
Injects the ActionTrackingService bean.- Parameters:
actionTrackingService- the ActionTrackingService.
-
setTransactionService
Injects the TransactionService bean.- Parameters:
transactionService- the TransactionService.
-
setReplicationDefinitionPersister
public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister) Injects the ReplicationDefinitionPersister bean.- Parameters:
replicationDefinitionPersister- ReplicationDefinitionPersisterImpl
-
setReplicationParams
Sets Replication Parameters- Parameters:
replicationParams- replication parameters
-
setExcludedAspects
-
addParameterDefinitions
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
expandPayload
Takes aReplicationDefinition, which contains one or more payloadsNodeRefs, and expands them into a full list of nodes to be transfered. -
buildTransferDefinition
protected TransferDefinition buildTransferDefinition(ReplicationDefinition replicationDef, Set<NodeRef> toTransfer) Takes aReplicationDefinitionand a list ofNodeRefs, and returns theTransferDefinitionwhich will allow the replication to be run. -
executeImpl
Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionactionedUponNodeRef- the actioned upon node
-
onLogException
Description copied from interface:LoggingAwareExecuterOptional 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- Specified by:
onLogExceptionin interfaceLoggingAwareExecuter- Overrides:
onLogExceptionin classActionExecuterAbstractBase- Parameters:
logger- the loggert- the exception thrownmessage- the proposed message that will be logged- Returns:
- true if it was handled, false for default handling
-