org.alfresco.repo.workflow
Class WorkflowDeployer

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.workflow.WorkflowDeployer
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class WorkflowDeployer
extends org.springframework.extensions.surf.util.AbstractLifecycleBean

Alfresco bootstrap Process deployment.


Field Summary
static java.lang.String CRITERIA_ALL
           
static java.lang.String defaultSubtypeOfWorkflowDefinitionType
           
static java.lang.String ENGINE_ID
           
static java.lang.String LOCATION
           
static java.lang.String MIMETYPE
           
static java.lang.String REDEPLOY
           
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
WorkflowDeployer()
           
 
Method Summary
 void deploy(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean redeploy)
           
 java.util.List getWorkflowDefinitions()
           
 void init()
          Deploy the Workflow Definitions
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void setAuthenticationContext(AuthenticationContext authenticationContext)
          Set the authentication component
 void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
          Sets the Dictionary DAO
 void setLabels(java.util.List labels)
          Sets the initial list of Workflow resource bundles to bootstrap with
 void setModels(java.util.List modelResources)
          Sets the initial list of Workflow models to bootstrap with
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setRepositoryWorkflowDefsLocations(RepositoryLocation repoWorkflowDefsLocation)
           
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 void setTenantAdminService(TenantAdminService tenantAdminService)
          Sets the tenant admin service
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
          Sets the tenant service
 void setTransactionService(TransactionService transactionService)
          Sets the Transaction Service
 void setWorkflowAdminService(WorkflowAdminService workflowAdminService)
          Sets the workflow admin service
 void setWorkflowDefinitions(java.util.List workflowDefinitions)
          Sets the Workflow Definitions
 void setWorkflowService(WorkflowService workflowService)
          Sets the workflow service
 void undeploy(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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
Constructor Detail

WorkflowDeployer

public WorkflowDeployer()
Method Detail

setTransactionService

public void setTransactionService(TransactionService transactionService)
Sets the Transaction Service

Parameters:
userTransaction - 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 -

setDictionaryDAO

public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Sets the Dictionary DAO

Parameters:
dictionaryDAO -

setTenantAdminService

public void setTenantAdminService(TenantAdminService tenantAdminService)
Sets the tenant admin service

Parameters:
tenantService - 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 workflowDefinitions)
Sets the Workflow Definitions

Parameters:
workflowDefinitions -

setModels

public void setModels(java.util.List modelResources)
Sets the initial list of Workflow models to bootstrap with

Parameters:
modelResources - the model names

setLabels

public void setLabels(java.util.List labels)
Sets the initial list of Workflow resource bundles to bootstrap with

Parameters:
modelResources - the model names

getWorkflowDefinitions

public java.util.List 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)

undeploy

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

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.