Class ReplicationActionExecutor

    • Constructor Detail

      • ReplicationActionExecutor

        public ReplicationActionExecutor()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Injects the NodeService bean.
        Parameters:
        nodeService - the NodeService.
      • setJobLockService

        public void setJobLockService​(JobLockService jobLockService)
        Injects the JobLockService bean.
        Parameters:
        jobLockService - the JobLockService.
      • setTransferService

        public void setTransferService​(TransferService2 transferService)
        Injects the TransferService bean.
        Parameters:
        transferService - the TransferService.
      • setNodeCrawlerFactory

        public void setNodeCrawlerFactory​(NodeCrawlerFactory nodeCrawlerFactory)
        Injects the NodeCrawlerFactory bean.
        Parameters:
        nodeCrawlerFactory - the NodeCrawlerFactory.
      • setActionTrackingService

        public void setActionTrackingService​(ActionTrackingService actionTrackingService)
        Injects the ActionTrackingService bean.
        Parameters:
        actionTrackingService - the ActionTrackingService.
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Injects the TransactionService bean.
        Parameters:
        transactionService - the TransactionService.
      • setReplicationDefinitionPersister

        public void setReplicationDefinitionPersister​(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
        Injects the ReplicationDefinitionPersister bean.
        Parameters:
        replicationDefinitionPersister - ReplicationDefinitionPersisterImpl
      • setReplicationParams

        public void setReplicationParams​(ReplicationParams replicationParams)
        Sets Replication Parameters
        Parameters:
        replicationParams - replication parameters
      • setExcludedAspects

        public void setExcludedAspects​(java.lang.String[] excludedAspects)
      • expandPayload

        protected java.util.Set<org.alfresco.service.cmr.repository.NodeRef> expandPayload​(ReplicationDefinition replicationDef)
        Takes a ReplicationDefinition, which contains one or more payloads NodeRefs, and expands them into a full list of nodes to be transfered.
      • executeImpl

        protected void executeImpl​(Action action,
                                   org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
        Description copied from class: ActionExecuterAbstractBase
        Execute the action implementation
        Specified by:
        executeImpl in class ActionExecuterAbstractBase
        Parameters:
        action - the action
        actionedUponNodeRef - the actioned upon node
      • onLogException

        public boolean onLogException​(org.apache.commons.logging.Log logger,
                                      java.lang.Throwable t,
                                      java.lang.String message)
        Description copied from interface: LoggingAwareExecuter
        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
        Specified by:
        onLogException in interface LoggingAwareExecuter
        Overrides:
        onLogException in class ActionExecuterAbstractBase
        Parameters:
        logger - the logger
        t - the exception thrown
        message - the proposed message that will be logged
        Returns:
        true if it was handled, false for default handling