Package org.alfresco.repo.workflow
Class WorkflowDeployer
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.repo.workflow.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.AbstractLifecycleBeanAlfresco bootstrap Process deployment.- Author:
- davidc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWorkflowDeployer.WorkflowDeployerTransactionListenerWorkflow deployer transaction listener class.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCATEGORY_ALFRESCO_INTERNALstatic java.lang.StringCRITERIA_ALLstatic java.lang.StringdefaultSubtypeOfWorkflowDefinitionTypestatic java.lang.StringENGINE_IDstatic java.lang.StringLOCATIONstatic java.lang.StringMIMETYPEstatic java.lang.StringREDEPLOY
-
Constructor Summary
Constructors Constructor Description WorkflowDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean redeploy)Deploy a workflow definition from a node in the repository.java.util.List<java.util.Properties>getWorkflowDefinitions()voidinit()Deploy the Workflow Definitionsprotected voidonBootstrap(org.springframework.context.ApplicationEvent event)protected voidonShutdown(org.springframework.context.ApplicationEvent event)voidsetAuthenticationContext(AuthenticationContext authenticationContext)Set the authentication componentvoidsetDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)Sets the Dictionary DAOvoidsetLabels(java.util.List<java.lang.String> labels)Sets the initial list of Workflow resource bundles to bootstrap withvoidsetModels(java.util.List<java.lang.String> modelResources)Sets the initial list of Workflow models to bootstrap withvoidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetRepositoryWorkflowDefsLocations(RepositoryLocation repoWorkflowDefsLocation)voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)voidsetTenantAdminService(TenantAdminService tenantAdminService)Sets the tenant admin servicevoidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)Sets the tenant servicevoidsetTransactionService(TransactionService transactionService)Sets the Transaction ServicevoidsetWorkflowAdminService(WorkflowAdminService workflowAdminService)Sets the workflow admin servicevoidsetWorkflowDefinitions(java.util.List<java.util.Properties> workflowDefinitions)Sets the Workflow DefinitionsvoidsetWorkflowService(WorkflowService workflowService)Sets the workflow serviceintundeploy(java.util.List<java.lang.String> workflowNames)voidundeploy(org.alfresco.service.cmr.repository.NodeRef nodeRef)
-
-
-
Field Detail
-
ENGINE_ID
public static final java.lang.String ENGINE_ID
- See Also:
- Constant Field Values
-
LOCATION
public static final java.lang.String LOCATION
- See Also:
- Constant Field Values
-
MIMETYPE
public static final java.lang.String MIMETYPE
- See Also:
- Constant Field Values
-
REDEPLOY
public static final java.lang.String REDEPLOY
- See Also:
- Constant Field Values
-
CATEGORY_ALFRESCO_INTERNAL
public static final java.lang.String CATEGORY_ALFRESCO_INTERNAL
- See Also:
- Constant Field Values
-
CRITERIA_ALL
public static final java.lang.String CRITERIA_ALL
- See Also:
- Constant Field Values
-
defaultSubtypeOfWorkflowDefinitionType
public static final java.lang.String defaultSubtypeOfWorkflowDefinitionType
- See Also:
- Constant Field Values
-
-
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:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
-