Package com.opensymphony.workflow.loader
Class URLWorkflowFactory
java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
com.opensymphony.workflow.loader.URLWorkflowFactory
- All Implemented Interfaces:
WorkflowFactory,Serializable
- Author:
- Hani Suleiman Date: May 10, 2002 Time: 11:59:47 AM
- See Also:
-
Field Summary
Fields inherited from class com.opensymphony.workflow.loader.AbstractWorkflowFactory
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWorkflow(String name) getName()getWorkflow(String name, boolean validate) Get a workflow descriptor given a workflow name.String[]Get all workflow names in the current factorybooleanisModifiable(String name) booleanremoveWorkflow(String name) voidrenameWorkflow(String oldName, String newName) voidsave()booleansaveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) Save the workflow.voidMethods inherited from class com.opensymphony.workflow.loader.AbstractWorkflowFactory
getProperties, getWorkflow, init, initDone
-
Constructor Details
-
URLWorkflowFactory
public URLWorkflowFactory()
-
-
Method Details
-
setLayout
- Specified by:
setLayoutin interfaceWorkflowFactory
-
getLayout
- Specified by:
getLayoutin interfaceWorkflowFactory
-
isModifiable
- Specified by:
isModifiablein interfaceWorkflowFactory
-
getName
- Specified by:
getNamein interfaceWorkflowFactory
-
getWorkflow
Description copied from interface:WorkflowFactoryGet a workflow descriptor given a workflow name.- Specified by:
getWorkflowin interfaceWorkflowFactory- Parameters:
name- The name of the workflow to get.- Returns:
- The descriptor for the specified workflow.
- Throws:
FactoryException- if the specified workflow name does not exist or cannot be located.
-
getWorkflowNames
Description copied from interface:WorkflowFactoryGet all workflow names in the current factory- Specified by:
getWorkflowNamesin interfaceWorkflowFactory- Returns:
- An array of all workflow names
- Throws:
FactoryException- if the factory cannot determine the names of the workflows it has.
-
createWorkflow
- Specified by:
createWorkflowin interfaceWorkflowFactory
-
removeWorkflow
- Specified by:
removeWorkflowin interfaceWorkflowFactory- Throws:
FactoryException
-
renameWorkflow
- Specified by:
renameWorkflowin interfaceWorkflowFactory
-
save
public void save()- Specified by:
savein interfaceWorkflowFactory
-
saveWorkflow
public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException Description copied from interface:WorkflowFactorySave the workflow. Is it the responsibility of the caller to ensure that the workflow is valid, through theWorkflowDescriptor.validate()method. Invalid workflows will be saved without being checked.- Specified by:
saveWorkflowin interfaceWorkflowFactory- Parameters:
name- The name of the workflow to same.descriptor- The descriptor for the workflow.replace- true if an existing workflow with this name should be replaced.- Returns:
- true if the workflow was saved.
- Throws:
FactoryException- if there was an error saving the workflow
-