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
Constructors Constructor Description SimpleConfiguration(com.opensymphony.workflow.loader.WorkflowFactory factory, com.opensymphony.workflow.spi.WorkflowStore store)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPersistence()
Map
getPersistenceArgs()
com.opensymphony.workflow.util.VariableResolver
getVariableResolver()
com.opensymphony.workflow.loader.WorkflowDescriptor
getWorkflow(String name)
String[]
getWorkflowNames()
com.opensymphony.workflow.spi.WorkflowStore
getWorkflowStore()
boolean
isInitialized()
boolean
isModifiable(String name)
void
load(URL url)
boolean
removeWorkflow(String workflow)
boolean
saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace)
-
-
-
Constructor Detail
-
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 Detail
-
getPersistence
public String getPersistence()
- Specified by:
getPersistence
in interfacecom.opensymphony.workflow.config.Configuration
-
getPersistenceArgs
public Map getPersistenceArgs()
- Specified by:
getPersistenceArgs
in interfacecom.opensymphony.workflow.config.Configuration
-
getVariableResolver
public com.opensymphony.workflow.util.VariableResolver 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
public String[] getWorkflowNames() throws com.opensymphony.workflow.FactoryException
- 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
public boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.opensymphony.workflow.config.Configuration
-
isModifiable
public boolean isModifiable(String name)
- Specified by:
isModifiable
in interfacecom.opensymphony.workflow.config.Configuration
-
load
public void load(URL url) throws com.opensymphony.workflow.FactoryException
- Specified by:
load
in interfacecom.opensymphony.workflow.config.Configuration
- Throws:
com.opensymphony.workflow.FactoryException
-
removeWorkflow
public boolean removeWorkflow(String workflow) throws com.opensymphony.workflow.FactoryException
- 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
-
-