Class WorkflowDeployer

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

    public class WorkflowDeployer
    extends org.springframework.extensions.surf.util.AbstractLifecycleBean
    Alfresco bootstrap Process deployment.
    Author:
    davidc
    • Constructor Detail

      • WorkflowDeployer

        public WorkflowDeployer()
    • Method Detail

      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Sets the Transaction Service
        Parameters:
        transactionService - the transaction service
      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)
        Sets the workflow service
        Parameters:
        workflowService - the workflow service
      • setWorkflowAdminService

        public void setWorkflowAdminService​(WorkflowAdminService workflowAdminService)
        Sets the workflow admin service
        Parameters:
        workflowAdminService - the workflow admin service
      • setAuthenticationContext

        public void setAuthenticationContext​(AuthenticationContext authenticationContext)
        Set the authentication component
        Parameters:
        authenticationContext - AuthenticationContext
      • setDictionaryDAO

        public void setDictionaryDAO​(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
        Sets the Dictionary DAO
        Parameters:
        dictionaryDAO - DictionaryDAO
      • setTenantAdminService

        public void setTenantAdminService​(TenantAdminService tenantAdminService)
        Sets the tenant admin service
        Parameters:
        tenantAdminService - the tenant admin service
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
        Sets the tenant service
        Parameters:
        tenantService - the tenant service
      • setWorkflowDefinitions

        public void setWorkflowDefinitions​(java.util.List<java.util.Properties> workflowDefinitions)
        Sets the Workflow Definitions
      • setModels

        public void setModels​(java.util.List<java.lang.String> modelResources)
        Sets the initial list of Workflow models to bootstrap with
        Parameters:
        modelResources - the model names
      • setLabels

        public void setLabels​(java.util.List<java.lang.String> labels)
        Sets the initial list of Workflow resource bundles to bootstrap with
        Parameters:
        labels - the list of labels
      • getWorkflowDefinitions

        public java.util.List<java.util.Properties> getWorkflowDefinitions()
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • setRepositoryWorkflowDefsLocations

        public void setRepositoryWorkflowDefsLocations​(RepositoryLocation repoWorkflowDefsLocation)
      • init

        public void init()
        Deploy the Workflow Definitions
      • deploy

        public void deploy​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                           boolean redeploy)
        Deploy a workflow definition from a node in the repository.
      • undeploy

        public void undeploy​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      • undeploy

        public int undeploy​(java.util.List<java.lang.String> workflowNames)
      • onBootstrap

        protected void onBootstrap​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean