com.silverpeas.workflow.api.model
Interface Presentation

All Known Implementing Classes:
PresentationImpl

public interface Presentation

Interface describing a representation of the <presentation> element of a Process Model.


Method Summary
 void addColumns(Columns columns)
          Add an column to the collection
 void addTitle(ContextualDesignation description)
          Add a title Method needed primarily by Castor
 Columns createColumns()
          Create an Column
 ContextualDesignation createDesignation()
          Create an object implementing ContextualDesignation Method needed primarily by Castor
 void deleteColumns(String strRoleName)
          Delete the Columns object with the given name
 Column[] getColumns(String roleName)
          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 name
 String getTitle(String role, String language)
          Get title in specific language for the given role
 ContextualDesignations getTitles()
          Get all the titles
 Iterator<Columns> iterateColumns()
          Iterate through the Column objects
 Iterator<ContextualDesignation> iterateTitle()
          Iterate through the titles
 

Method Detail

getTitle

String getTitle(String role,
                String language)
Get title in specific language for the given role

Parameters:
lang - title's language
role - role for which the title is
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.

getTitles

ContextualDesignations getTitles()
Get all the titles

Returns:
an object containing the collection of the titles

iterateTitle

Iterator<ContextualDesignation> iterateTitle()
Iterate through the titles

Returns:
an iterator

addTitle

void addTitle(ContextualDesignation description)
Add a title Method needed primarily by Castor


createDesignation

ContextualDesignation createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor


getColumns

Column[] getColumns(String roleName)
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.

Parameters:
the - name of the role
Returns:
the contents of 'Columns' as an array of 'Column'

getColumnsByRole

Columns getColumnsByRole(String strRoleName)
Get the Columns object referenced by the given role name

Parameters:
strRoleName - the name of the Columns object
Returns:
a Columns implementation

iterateColumns

Iterator<Columns> iterateColumns()
Iterate through the Column objects

Returns:
an iterator

addColumns

void addColumns(Columns columns)
Add an column to the collection

Parameters:
column - to be added

createColumns

Columns createColumns()
Create an Column

Returns:
an object implementing Column

deleteColumns

void deleteColumns(String strRoleName)
                   throws WorkflowException
Delete the Columns object with the given name

Parameters:
strRoleName - the name of the Columns object (a role name)
Throws:
WorkflowException - when the Columns for the given name have not been found.


Copyright © 2016 Silverpeas. All Rights Reserved.