Package org.ametys.plugins.workflow
Class SimpleConfiguration
java.lang.Object
org.ametys.plugins.workflow.SimpleConfiguration
- All Implemented Interfaces:
com.opensymphony.workflow.config.Configuration
public class SimpleConfiguration
extends Object
implements com.opensymphony.workflow.config.Configuration
Really simple OSWorkflow configuration, allowing to setup the WorkflowFactory and the WorkflowStore outside this class.
-
Constructor Summary
ConstructorDescriptionSimpleConfiguration
(com.opensymphony.workflow.loader.WorkflowFactory factory, com.opensymphony.workflow.spi.WorkflowStore store) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.opensymphony.workflow.util.VariableResolver
com.opensymphony.workflow.loader.WorkflowDescriptor
getWorkflow
(String name) String[]
com.opensymphony.workflow.spi.WorkflowStore
boolean
boolean
isModifiable
(String name) void
boolean
removeWorkflow
(String workflow) boolean
saveWorkflow
(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace)
-
Constructor Details
-
SimpleConfiguration
public SimpleConfiguration(com.opensymphony.workflow.loader.WorkflowFactory factory, com.opensymphony.workflow.spi.WorkflowStore store) Constructor.- Parameters:
factory
- the WorkflowFactory to manipulate workflow descriptorsstore
- the WorkflowStore for persisting data
-
-
Method Details
-
getPersistence
- Specified by:
getPersistence
in interfacecom.opensymphony.workflow.config.Configuration
-
getPersistenceArgs
- Specified by:
getPersistenceArgs
in interfacecom.opensymphony.workflow.config.Configuration
-
getVariableResolver
- Specified by:
getVariableResolver
in interfacecom.opensymphony.workflow.config.Configuration
-
getWorkflow
public com.opensymphony.workflow.loader.WorkflowDescriptor getWorkflow(String name) throws com.opensymphony.workflow.FactoryException - Specified by:
getWorkflow
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-
getWorkflowNames
- Specified by:
getWorkflowNames
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-
getWorkflowStore
public com.opensymphony.workflow.spi.WorkflowStore getWorkflowStore() throws com.opensymphony.workflow.StoreException- Specified by:
getWorkflowStore
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.StoreException
-
isInitialized
- Specified by:
isInitialized
in interfacecom.opensymphony.workflow.config.Configuration
-
isModifiable
- Specified by:
isModifiable
in interfacecom.opensymphony.workflow.config.Configuration
-
load
- Specified by:
load
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-
removeWorkflow
- Specified by:
removeWorkflow
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-
saveWorkflow
public boolean saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace) throws com.opensymphony.workflow.FactoryException - Specified by:
saveWorkflow
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-