public class WorkflowList extends ListPackManager implements ItemManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
Item |
copy(java.lang.String newID,
Item src,
boolean copyDisplayNames,
boolean copyDescriptions)
Duplicates the given workflow with the specified UID.
|
Workflow |
copy(java.lang.String newName,
Workflow copySource)
Duplicates the given workflow and stores the result under the specified name.
|
Workflow |
copy(java.lang.String newName,
Workflow copySource,
boolean copyDisplayNames,
boolean copyDescriptions)
Duplicates the given workflow and stores the result under the specified name.
|
void |
delete(Item item)
Deletes the given item.
|
void |
delete(Workflow workflow)
Deletes the given workflow.
|
Item |
getItem(java.lang.String id)
Returns the item with the specified UID.
|
java.util.Collection<java.lang.String> |
getItemIDs()
Returns the list of item UIDs that are available by this manager instance.
|
int |
getItemType()
Returns the item type for the items of this manager.
|
java.lang.String |
getPath()
Returns the path for this item manager instance.
|
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.
|
Workflow |
importSet(JPack data,
SetImportDuplicatesMode duplicatesMode)
Imports the given exported workflow data into a new workflow.
|
void |
rename(java.lang.String newID,
Item item,
boolean keepDisplayNames,
boolean keepDescriptions)
Renames the given item to the new UID.
|
void |
rename(java.lang.String newName,
Workflow workflow)
Renames the given workflow to the new specified name.
|
void |
rename(java.lang.String newName,
Workflow workflow,
boolean keepDisplayNames,
boolean keepDescriptions)
Renames the given workflow to the new specified name.
|
void |
setAsDefault(Item item)
Sets the given item to be the default item.
|
void |
setAsDefault(Workflow newDefault)
Sets the given workflow as the default workflow.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public Workflow copy(java.lang.String newName, Workflow copySource) throws CumulusException, javax.naming.InvalidNameException
newName
- the name of the new setcopySource
- the source set to copyCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid or already used namepublic Workflow copy(java.lang.String newName, Workflow copySource, boolean copyDisplayNames, boolean copyDescriptions) throws CumulusException, javax.naming.InvalidNameException
newName
- the name of the new workflowcopySource
- the source set to copycopyDisplayNames
- true if display names should be copied as wellcopyDescriptions
- true if descriptions should be copied as wellCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid or already used namepublic Workflow importSet(JPack data, SetImportDuplicatesMode duplicatesMode) throws CumulusException, PermissionDeniedException
data
- workflow that had been exported using Workflow.exportSet()
beforeduplicatesMode
- mode to handle duplicate setsPermissionDeniedException
- if you are not cumulus adminCumulusException
- in case of an server errorWorkflow.exportSet()
public void setAsDefault(Workflow newDefault)
newDefault
- the new default workflowpublic void rename(java.lang.String newName, Workflow workflow) throws CumulusException, javax.naming.InvalidNameException
newName
- the new name for the setworkflow
- the workflow to renameCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid namepublic void rename(java.lang.String newName, Workflow workflow, boolean keepDisplayNames, boolean keepDescriptions) throws CumulusException, javax.naming.InvalidNameException
newName
- the new name for the setworkflow
- the set to renamekeepDisplayNames
- true if display names should be keptkeepDescriptions
- true if descriptions should be keptCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid namepublic 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()
public Item copy(java.lang.String newID, Item src, boolean copyDisplayNames, boolean copyDescriptions) throws javax.naming.InvalidNameException, CumulusException
copy
in interface ItemManager
newID
- the UID of the new itemsrc
- the item to copycopyDisplayNames
- true if display names should be copied as wellcopyDescriptions
- true if descriptions should be copied as welljavax.naming.InvalidNameException
- if the name is already in use or invalid for another reasonCumulusException
- in case of an errorpublic void delete(Item item) throws CumulusException
delete
in interface ItemManager
item
- the item to deleteCumulusException
- in case of an errorpublic Item getItem(java.lang.String id)
getItem
in interface ItemManager
id
- the items UID to getpublic java.util.Collection<java.lang.String> getItemIDs()
getItemIDs
in interface ItemManager
public void rename(java.lang.String newID, Item item, boolean keepDisplayNames, boolean keepDescriptions) throws javax.naming.InvalidNameException, CumulusException
rename
in interface ItemManager
newID
- the new item UIDitem
- the item to renamekeepDisplayNames
- true if display names should be keptkeepDescriptions
- true if descriptions should be keptjavax.naming.InvalidNameException
- in case of an invalid nameCumulusException
- in case of another errorpublic void setAsDefault(Item item)
setAsDefault
in interface ItemManager
item
- the item to be the defaultpublic java.lang.String getPath()
ItemManager
getPath
in interface ItemManager
public int getItemType()
ItemManager
getItemType
in interface ItemManager
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.