Package org.ametys.web.workflow
Class WebWorkflowProvider
- java.lang.Object
-
- org.ametys.plugins.workflow.support.WorkflowProvider
-
- org.ametys.web.workflow.WebWorkflowProvider
-
- All Implemented Interfaces:
Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
public class WebWorkflowProvider extends WorkflowProvider
WorkflowProvider
which relies on workflows that always work in the default workspace.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.plugins.workflow.support.WorkflowProvider
WorkflowProvider.AmetysObjectWorkflow, WorkflowProvider.ExternalWorkflow, WorkflowProvider.GenericWorkflow
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkspaceSelector
_workspaceSelector
workspace selector.-
Fields inherited from class org.ametys.plugins.workflow.support.WorkflowProvider
_cocoonContext, _currentUserProvider, _genericWorkflow, _logger, _manager, _repository, _resolver, _typeResolver, _workflowContext, _workflowFactory, _workflowHelper, ROLE
-
-
Constructor Summary
Constructors Constructor Description WebWorkflowProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AmetysObjectWorkflowStore
_createAmetysObjectWorkflowStore(WorkflowAwareAmetysObject ametysObject, boolean preserveHistory)
Provide an ametys object workflow store instanceprotected GenericWorkflowStore
_createGenericWorkflowStore()
Provide the generic workflow storevoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.plugins.workflow.support.WorkflowProvider
contextualize, dispose, getAmetysObjectWorkflow, getAmetysObjectWorkflow, getAmetysObjectWorkflow, getAmetysObjectWorkflow, getExternalWorkflow, getExternalWorkflow, getGenericWorkflow, initialize
-
-
-
-
Field Detail
-
_workspaceSelector
protected WorkspaceSelector _workspaceSelector
workspace selector.
-
-
Constructor Detail
-
WebWorkflowProvider
public WebWorkflowProvider()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkflowProvider
- Throws:
ServiceException
-
_createGenericWorkflowStore
protected GenericWorkflowStore _createGenericWorkflowStore()
Description copied from class:WorkflowProvider
Provide the generic workflow store- Overrides:
_createGenericWorkflowStore
in classWorkflowProvider
- Returns:
- The generic workflow store
-
_createAmetysObjectWorkflowStore
protected AmetysObjectWorkflowStore _createAmetysObjectWorkflowStore(WorkflowAwareAmetysObject ametysObject, boolean preserveHistory)
Description copied from class:WorkflowProvider
Provide an ametys object workflow store instance- Overrides:
_createAmetysObjectWorkflowStore
in classWorkflowProvider
- Parameters:
ametysObject
- The ametys object bound to this store (can be null in case of initialization)preserveHistory
- true if the history steps should be preserve when workflow is complete- Returns:
- the local workflow store of an Ametys object
-
-