com.silverpeas.workflow.engine.model
Class DataFolderImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.model.DataFolderImpl
All Implemented Interfaces:
DataFolder, Serializable

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
DataFolderImpl()
          Constructor
 
Method Summary
 void addItem(Item item)
          Add an item to the collection
 Item createItem()
          Create an Item
 Item getItem(String strRoleName)
          Get item contained in the DataFolder by role name
 Item[] getItems()
          Get the items
 Iterator<Item> iterateItem()
          Iterate through the Item objects
 void removeItem(String strItemName)
          Remove an item from the collection
 RecordTemplate toRecordTemplate(String role, String lang, boolean readonly)
          Converts this object in a RecordTemplate object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFolderImpl

public DataFolderImpl()
Constructor

Method Detail

getItems

public Item[] getItems()
Get the items

Specified by:
getItems in interface DataFolder
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 interface DataFolder
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 interface DataFolder
Parameters:
item - to be added

createItem

public Item createItem()
Description copied from interface: DataFolder
Create an Item

Specified by:
createItem in interface DataFolder
Returns:
an object implementing Item

iterateItem

public Iterator<Item> iterateItem()
Description copied from interface: DataFolder
Iterate through the Item objects

Specified by:
iterateItem in interface DataFolder
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 interface DataFolder
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 interface DataFolder
Parameters:
readonly -
Returns:
the resulting RecordTemplate
Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.