Class DataFolderImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.DataFolderImpl
-
- All Implemented Interfaces:
Serializable
,DataFolder
public class DataFolderImpl extends Object implements DataFolder, Serializable
Class implementing the representation of the <dataFolder> and <userInfos> elements of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataFolderImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(Item item)
Add an item to the collectionItem
createItem()
Create an ItemItem
getItem(String strRoleName)
Get item contained in the DataFolder by role nameItem[]
getItems()
Get the itemsIterator<Item>
iterateItem()
Iterate through the Item objectsvoid
removeItem(String strItemName)
Remove an item from the collectionRecordTemplate
toRecordTemplate(String role, String lang, boolean readonly)
Converts this object in a RecordTemplate object
-
-
-
Method Detail
-
getItems
public Item[] getItems()
Get the items- Specified by:
getItems
in interfaceDataFolder
- Returns:
- the items as an array
-
getItem
public Item getItem(String strRoleName)
Description copied from interface:DataFolder
Get item contained in the DataFolder by role name- Specified by:
getItem
in interfaceDataFolder
- Parameters:
strRoleName
- to search with- Returns:
- an object implementing the Item interface
-
addItem
public void addItem(Item item)
Description copied from interface:DataFolder
Add an item to the collection- Specified by:
addItem
in interfaceDataFolder
- Parameters:
item
- to be added
-
createItem
public Item createItem()
Description copied from interface:DataFolder
Create an Item- Specified by:
createItem
in interfaceDataFolder
- Returns:
- an object implementing Item
-
iterateItem
public Iterator<Item> iterateItem()
Description copied from interface:DataFolder
Iterate through the Item objects- Specified by:
iterateItem
in interfaceDataFolder
- Returns:
- an iterator
-
removeItem
public void removeItem(String strItemName) throws WorkflowException
Description copied from interface:DataFolder
Remove an item from the collection- Specified by:
removeItem
in interfaceDataFolder
- Parameters:
strItemName
- the name of the item to be removed.- Throws:
WorkflowException
- when the item could not be found
-
toRecordTemplate
public RecordTemplate toRecordTemplate(String role, String lang, boolean readonly) throws WorkflowException
Converts this object in a RecordTemplate object- Specified by:
toRecordTemplate
in interfaceDataFolder
- Parameters:
readonly
-role
- the role the user plays.lang
- the ISO-631 code of the language in which is written the record.- Returns:
- the resulting RecordTemplate
- Throws:
WorkflowException
- if an error occurs while converting this data folder into aRecordTemplate
object.
-
-