public class CatalogWorkflowList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
Workflow |
add(Workflow workflow)
Adds the given workflow.
|
void |
delete(Workflow workflow)
Deletes the given workflow and the related catalog fields.
|
Workflow |
getWorkflow(GUID id)
Returns the workflow for the given workflow id.
|
Workflow |
getWorkflow(java.lang.String name)
Returns the workflow for the given name.
|
java.util.Set<GUID> |
getWorkflowIDs()
Return a mapping of all contained workflows, with their internal ID pointing to their name.
|
java.util.List<java.lang.String> |
getWorkflowNames()
Return a list of workflow names of this instance.
|
java.util.List<Workflow> |
getWorkflows()
Returns all workflows contained in this list.
|
void |
update(Workflow updateWorkflow)
Updates a stored workflow with the new version provided by the caller.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public Workflow add(Workflow workflow) throws CumulusException
workflow
- the workflow to addCumulusException
- in case of an errorpublic void update(Workflow updateWorkflow)
updateWorkflow
- workflow to updatejava.lang.IllegalArgumentException
- if the given workflow has not yet been added to the catalogpublic void delete(Workflow workflow) throws CumulusException
workflow
- the workflow to deleteCumulusException
- in case of an errorpublic java.util.List<java.lang.String> getWorkflowNames()
String
public java.util.Set<GUID> getWorkflowIDs()
public Workflow getWorkflow(java.lang.String name)
name
- the name of the workflow to returnpublic Workflow getWorkflow(GUID id)
id
- the workflow id of the workflow to returnpublic java.util.List<Workflow> getWorkflows()
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.