Class AsynchronousActionExecutionQueueImpl

    • Constructor Detail

      • AsynchronousActionExecutionQueueImpl

        public AsynchronousActionExecutionQueueImpl()
        Default constructor
    • Method Detail

      • init

        public void init()
        Init method. Registers the policies.
      • setActionServiceImpl

        public void setActionServiceImpl​(ActionServiceImpl serviceImpl)
        Since:
        Thor Phase 2 Sprint 2
      • setId

        public void setId​(java.lang.String id)
        Since:
        Thor Phase 2 Sprint 2
      • setThreadPoolExecutor

        public void setThreadPoolExecutor​(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
        Set the thread pool, which may be shared with other components, that will be used to run the actions.
        Parameters:
        threadPoolExecutor - the thread pool
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Set the transaction service
        Parameters:
        transactionService - the transaction service
      • setAuthenticationContext

        public void setAuthenticationContext​(AuthenticationContext authenticationContext)
        Deprecated.
        Not used since 3.4
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
        Set the policy component
        Parameters:
        policyComponent - policy component
      • registerActionFilter

        public void registerActionFilter​(AbstractAsynchronousActionFilter filter)
        This method registers an action filter, which can be used to prevent unwanted or unnecessary asynchronous actions from being scheduled for execution.
        Parameters:
        filter - the filter implementation.
      • executeAction

        public void executeAction​(RuntimeActionService actionService,
                                  Action action,
                                  org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
                                  boolean checkConditions,
                                  java.util.Set<java.lang.String> actionChain)
        Specified by:
        executeAction in interface AsynchronousActionExecutionQueue
        Parameters:
        actionService - RuntimeActionService
        action - Action
        actionedUponNodeRef - NodeRef
        checkConditions - boolean
      • executeAction

        public void executeAction​(RuntimeActionService actionService,
                                  Action action,
                                  org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
                                  boolean checkConditions,
                                  java.util.Set<java.lang.String> actionChain,
                                  org.alfresco.service.cmr.repository.NodeRef actionExecutionHistoryNodeRef)