com.silverpeas.workflow.engine.model
Class PresentationImpl

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

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
PresentationImpl()
          Constructor
 
Method Summary
 void addColumns(Columns columns)
          Add an column to the collection
 void addTitle(ContextualDesignation title)
          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 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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationImpl

public PresentationImpl()
Constructor

Method Detail

getTitles

public ContextualDesignations getTitles()
Description copied from interface: Presentation
Get all the titles

Specified by:
getTitles in interface Presentation
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 interface Presentation
Parameters:
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.

addTitle

public void addTitle(ContextualDesignation title)
Description copied from interface: Presentation
Add a title Method needed primarily by Castor

Specified by:
addTitle in interface Presentation

iterateTitle

public Iterator<ContextualDesignation> iterateTitle()
Description copied from interface: Presentation
Iterate through the titles

Specified by:
iterateTitle in interface Presentation
Returns:
an iterator

createDesignation

public ContextualDesignation createDesignation()
Description copied from interface: Presentation
Create an object implementing ContextualDesignation Method needed primarily by Castor

Specified by:
createDesignation in interface Presentation

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 interface Presentation
Parameters:
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 interface Presentation
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 interface Presentation
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 interface Presentation

iterateColumns

public Iterator<Columns> iterateColumns()
Description copied from interface: Presentation
Iterate through the Column objects

Specified by:
iterateColumns in interface Presentation
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 interface Presentation
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.