public class SimpleConfiguration extends Object implements com.opensymphony.workflow.config.Configuration
Modifier and Type | Field and Description |
---|---|
private com.opensymphony.workflow.loader.WorkflowFactory |
_factory |
private com.opensymphony.workflow.spi.WorkflowStore |
_store |
Constructor and Description |
---|
SimpleConfiguration(com.opensymphony.workflow.loader.WorkflowFactory factory,
com.opensymphony.workflow.spi.WorkflowStore store)
Constructor.
|
Modifier and Type | Method and 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) |
private com.opensymphony.workflow.loader.WorkflowFactory _factory
private com.opensymphony.workflow.spi.WorkflowStore _store
public SimpleConfiguration(com.opensymphony.workflow.loader.WorkflowFactory factory, com.opensymphony.workflow.spi.WorkflowStore store)
factory
- the WorkflowFactory to manipulate workflow descriptorsstore
- the WorkflowStore for persisting datapublic String getPersistence()
getPersistence
in interface com.opensymphony.workflow.config.Configuration
public Map getPersistenceArgs()
getPersistenceArgs
in interface com.opensymphony.workflow.config.Configuration
public com.opensymphony.workflow.util.VariableResolver getVariableResolver()
getVariableResolver
in interface com.opensymphony.workflow.config.Configuration
public com.opensymphony.workflow.loader.WorkflowDescriptor getWorkflow(String name) throws com.opensymphony.workflow.FactoryException
getWorkflow
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.FactoryException
public String[] getWorkflowNames() throws com.opensymphony.workflow.FactoryException
getWorkflowNames
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.FactoryException
public com.opensymphony.workflow.spi.WorkflowStore getWorkflowStore() throws com.opensymphony.workflow.StoreException
getWorkflowStore
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.StoreException
public boolean isInitialized()
isInitialized
in interface com.opensymphony.workflow.config.Configuration
public boolean isModifiable(String name)
isModifiable
in interface com.opensymphony.workflow.config.Configuration
public void load(URL url) throws com.opensymphony.workflow.FactoryException
load
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.FactoryException
public boolean removeWorkflow(String workflow) throws com.opensymphony.workflow.FactoryException
removeWorkflow
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.FactoryException
public boolean saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace) throws com.opensymphony.workflow.FactoryException
saveWorkflow
in interface com.opensymphony.workflow.config.Configuration
com.opensymphony.workflow.FactoryException