public class WorkflowProvider extends Object implements Component, Serviceable, Contextualizable, Initializable, Disposable
Modifier and Type | Class and Description |
---|---|
static class |
WorkflowProvider.AmetysObjectWorkflow
Local workflow to an ametys object
|
static class |
WorkflowProvider.ExternalWorkflow
The External worklfow
|
static class |
WorkflowProvider.GenericWorkflow
The Generic worklfow
|
Modifier and Type | Field and Description |
---|---|
protected Context |
_cocoonContext
Cocoon context
|
protected CurrentUserProvider |
_currentUserProvider
Current user provider.
|
protected WorkflowProvider.GenericWorkflow |
_genericWorkflow
Generic workflow instance
|
protected static Logger |
_logger
Logger available to subclasses.
|
protected ServiceManager |
_manager
Service manager.
|
protected Repository |
_repository
The repository
|
protected SourceResolver |
_resolver
The source resolver
|
protected com.opensymphony.workflow.TypeResolver |
_typeResolver
Type resolver
|
protected com.opensymphony.workflow.WorkflowContext |
_workflowContext
Workflow context
|
protected com.opensymphony.workflow.loader.WorkflowFactory |
_workflowFactory
Workflow factory
|
protected WorkflowHelper |
_workflowHelper
The workflow helper
|
static String |
ROLE
Avalon role.
|
Constructor and Description |
---|
WorkflowProvider() |
Modifier and Type | Method and Description |
---|---|
protected AmetysObjectWorkflowStore |
_createAmetysObjectWorkflowStore(WorkflowAwareAmetysObject ametysObject)
Provide an ametys object workflow store instance
|
protected GenericWorkflowStore |
_createGenericWorkflowStore()
Provide the generic workflow store
|
void |
contextualize(Context ctx) |
void |
dispose() |
WorkflowProvider.AmetysObjectWorkflow |
getAmetysObjectWorkflow()
Provide a local workflow to an Ametys object
Must be used to initialize a workflow that will create an ametys object.
|
WorkflowProvider.AmetysObjectWorkflow |
getAmetysObjectWorkflow(WorkflowAwareAmetysObject ametysObject)
Provide a local workflow to an Ametys object
|
com.opensymphony.workflow.Workflow |
getExternalWorkflow(String workflowStoreRole)
Provides an external workflow
|
com.opensymphony.workflow.Workflow |
getExternalWorkflow(com.opensymphony.workflow.spi.WorkflowStore workflowStore)
Provides an external workflow
|
com.opensymphony.workflow.Workflow |
getGenericWorkflow()
Provides the generic workflow
|
(package private) com.opensymphony.workflow.loader.WorkflowFactory |
getWorkflowFactory()
Workflow factory getter
|
void |
initialize() |
protected void |
registerNamespace()
Register osworkflow namespace.
|
void |
service(ServiceManager manager) |
protected ServiceManager _manager
protected CurrentUserProvider _currentUserProvider
protected Repository _repository
protected WorkflowHelper _workflowHelper
protected Context _cocoonContext
protected com.opensymphony.workflow.WorkflowContext _workflowContext
protected com.opensymphony.workflow.loader.WorkflowFactory _workflowFactory
protected com.opensymphony.workflow.TypeResolver _typeResolver
protected WorkflowProvider.GenericWorkflow _genericWorkflow
protected SourceResolver _resolver
public WorkflowProvider()
public void contextualize(Context ctx) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
com.opensymphony.workflow.loader.WorkflowFactory getWorkflowFactory()
protected void registerNamespace() throws RepositoryException
RepositoryException
- if an error occurs.public com.opensymphony.workflow.Workflow getGenericWorkflow()
protected GenericWorkflowStore _createGenericWorkflowStore()
public WorkflowProvider.AmetysObjectWorkflow getAmetysObjectWorkflow()
WorkflowProvider.AmetysObjectWorkflow.getAmetysObject()
could then be used to directly retrieves the ametys object.public WorkflowProvider.AmetysObjectWorkflow getAmetysObjectWorkflow(WorkflowAwareAmetysObject ametysObject)
ametysObject
- The ametys object (can be null in case of initialization)protected AmetysObjectWorkflowStore _createAmetysObjectWorkflowStore(WorkflowAwareAmetysObject ametysObject)
ametysObject
- The ametys object bound to this store (can be null in case of initialization)public com.opensymphony.workflow.Workflow getExternalWorkflow(String workflowStoreRole)
workflowStoreRole
- The component role of the workflow store to use.public com.opensymphony.workflow.Workflow getExternalWorkflow(com.opensymphony.workflow.spi.WorkflowStore workflowStore)
workflowStore
- An (already initialized) workflow store