Class PresentationImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.PresentationImpl
-
- All Implemented Interfaces:
Serializable
,Presentation
public class PresentationImpl extends Object implements Presentation, Serializable
Class implementing the representation of the <presentation> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PresentationImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumns(Columns columns)
Add an column to the collectionColumns
createColumns()
Create an Columnvoid
deleteColumns(String strRoleName)
Delete the Columns object with the given nameColumn[]
getColumns(String strRoleName)
Get the contents of the Columns object with the given role name, or of the 'Columns' for the default role if nothing for the specified role can be found.Columns
getColumnsByRole(String strRoleName)
Get the Columns object referenced by the given role nameString
getTitle(String role, String language)
Get title in specific language for the given roleContextualDesignations
getTitles()
Get all the titlesIterator<Columns>
iterateColumns()
Iterate through the Column objects
-
-
-
Method Detail
-
getTitles
public ContextualDesignations getTitles()
Description copied from interface:Presentation
Get all the titles- Specified by:
getTitles
in interfacePresentation
- Returns:
- an object containing the collection of the titles
-
getTitle
public String getTitle(String role, String language)
Description copied from interface:Presentation
Get title in specific language for the given role- Specified by:
getTitle
in interfacePresentation
- Parameters:
role
- role for which the title islanguage
- title's language- Returns:
- wanted title as a String object. If title is not found, search title with given role and default language, if not found again, return the default title in given language, if not found again, return the default title in default language, if not found again, return empty string.
-
getColumns
public Column[] getColumns(String strRoleName)
Get the contents of the Columns object with the given role name, or of the 'Columns' for the default role if nothing for the specified role can be found.- Specified by:
getColumns
in interfacePresentation
- Parameters:
strRoleName
- the name of the role- Returns:
- the contents of 'Columns' as an array of 'Column'
-
getColumnsByRole
public Columns getColumnsByRole(String strRoleName)
Description copied from interface:Presentation
Get the Columns object referenced by the given role name- Specified by:
getColumnsByRole
in interfacePresentation
- Parameters:
strRoleName
- the name of the Columns object- Returns:
- a Columns implementation
-
createColumns
public Columns createColumns()
Description copied from interface:Presentation
Create an Column- Specified by:
createColumns
in interfacePresentation
- Returns:
- an object implementing Column
-
addColumns
public void addColumns(Columns columns)
Description copied from interface:Presentation
Add an column to the collection- Specified by:
addColumns
in interfacePresentation
- Parameters:
columns
- to be added
-
iterateColumns
public Iterator<Columns> iterateColumns()
Description copied from interface:Presentation
Iterate through the Column objects- Specified by:
iterateColumns
in interfacePresentation
- Returns:
- an iterator
-
deleteColumns
public void deleteColumns(String strRoleName) throws WorkflowException
Description copied from interface:Presentation
Delete the Columns object with the given name- Specified by:
deleteColumns
in interfacePresentation
- Parameters:
strRoleName
- the name of the Columns object (a role name)- Throws:
WorkflowException
- when the Columns for the given name have not been found.
-
-