com.opensymphony.workflow.loader
Class URLWorkflowFactory
java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
com.opensymphony.workflow.loader.URLWorkflowFactory
- All Implemented Interfaces:
- WorkflowFactory, Serializable
public class URLWorkflowFactory
- extends AbstractWorkflowFactory
- implements Serializable
- Author:
- Hani Suleiman
Date: May 10, 2002
Time: 11:59:47 AM
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLWorkflowFactory
public URLWorkflowFactory()
setLayout
public void setLayout(String workflowName,
Object layout)
- Specified by:
setLayout in interface WorkflowFactory
getLayout
public Object getLayout(String workflowName)
- Specified by:
getLayout in interface WorkflowFactory
isModifiable
public boolean isModifiable(String name)
- Specified by:
isModifiable in interface WorkflowFactory
getName
public String getName()
- Specified by:
getName in interface WorkflowFactory
getWorkflow
public WorkflowDescriptor getWorkflow(String name,
boolean validate)
throws FactoryException
- Description copied from interface:
WorkflowFactory
- Get a workflow descriptor given a workflow name.
- Specified by:
getWorkflow in interface WorkflowFactory
- 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
public String[] getWorkflowNames()
throws FactoryException
- Description copied from interface:
WorkflowFactory
- Get all workflow names in the current factory
- Specified by:
getWorkflowNames in interface WorkflowFactory
- Returns:
- An array of all workflow names
- Throws:
FactoryException - if the factory cannot determine the names of the workflows it has.
createWorkflow
public void createWorkflow(String name)
- Specified by:
createWorkflow in interface WorkflowFactory
removeWorkflow
public boolean removeWorkflow(String name)
throws FactoryException
- Specified by:
removeWorkflow in interface WorkflowFactory
- Throws:
FactoryException
renameWorkflow
public void renameWorkflow(String oldName,
String newName)
- Specified by:
renameWorkflow in interface WorkflowFactory
save
public void save()
- Specified by:
save in interface WorkflowFactory
saveWorkflow
public boolean saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace)
throws FactoryException
- Description copied from interface:
WorkflowFactory
- Save the workflow.
Is it the responsibility of the caller to ensure that the workflow is valid,
through the
WorkflowDescriptor.validate() method. Invalid workflows will
be saved without being checked.
- Specified by:
saveWorkflow in interface WorkflowFactory
- 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
InvalidWorkflowDescriptorException - if the descriptor specified is invalid