Class FormsImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.FormsImpl
-
- All Implemented Interfaces:
Serializable
,Forms
public class FormsImpl extends Object implements Serializable, Forms
Class implementing the representation of the <forms> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormsImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addForm(Form form)
Add an form to the collectionForm
createForm()
Create an FormForm
getForm(String name)
Get the form definition with given name.Form
getForm(String name, String role)
Get the form definition with given name for the given role, will return the form dedicated to that role or, if the former has not been found, a generic form with this nameIterator<Form>
iterateForm()
Iterate through the Form objectsvoid
removeForm(String strName, String strRole)
Remove the form identified by name and role
-
-
-
Method Detail
-
addForm
public void addForm(Form form)
Description copied from interface:Forms
Add an form to the collection
-
createForm
public Form createForm()
Description copied from interface:Forms
Create an Form- Specified by:
createForm
in interfaceForms
- Returns:
- an object implementing Form
-
getForm
public Form getForm(String name)
Description copied from interface:Forms
Get the form definition with given name. Works fine for forms other than 'presentationForm', since they have unique names.
-
getForm
public Form getForm(String name, String role)
Description copied from interface:Forms
Get the form definition with given name for the given role, will return the form dedicated to that role or, if the former has not been found, a generic form with this name
-
iterateForm
public Iterator<Form> iterateForm()
Description copied from interface:Forms
Iterate through the Form objects- Specified by:
iterateForm
in interfaceForms
- Returns:
- an iterator
-
removeForm
public void removeForm(String strName, String strRole) throws WorkflowException
Description copied from interface:Forms
Remove the form identified by name and role- Specified by:
removeForm
in interfaceForms
- Parameters:
strName
- the form namestrRole
- the name of the role, may benull
- Throws:
WorkflowException
- if the role cannot be found
-
-