Class RoleImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.RoleImpl
-
- All Implemented Interfaces:
Serializable
,Role
public class RoleImpl extends Object implements Role, Serializable
Class implementing the representation of the <role> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoleImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLabel(ContextualDesignation label)
Add a labelString
getDescription(String role, String language)
Get description in specific language for the given roleContextualDesignations
getDescriptions()
Get all the descriptionsString
getLabel(String role, String language)
Get label in specific language for the given roleContextualDesignations
getLabels()
Get all the labelsString
getName()
Get the name of the Rolevoid
setName(String name)
Set the name of the Role
-
-
-
Method Detail
-
getName
public String getName()
Get the name of the Role
-
setName
public void setName(String name)
Description copied from interface:Role
Set the name of the Role
-
getLabels
public ContextualDesignations getLabels()
Description copied from interface:Role
Get all the labels
-
getLabel
public String getLabel(String role, String language)
Description copied from interface:Role
Get label in specific language for the given role- Specified by:
getLabel
in interfaceRole
- Parameters:
role
- role for which the label islanguage
- label's language- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
addLabel
public void addLabel(ContextualDesignation label)
Description copied from interface:Role
Add a label
-
getDescriptions
public ContextualDesignations getDescriptions()
Description copied from interface:Role
Get all the descriptions- Specified by:
getDescriptions
in interfaceRole
- Returns:
- an object containing the collection of the descriptions
-
getDescription
public String getDescription(String role, String language)
Description copied from interface:Role
Get description in specific language for the given role- Specified by:
getDescription
in interfaceRole
- Parameters:
role
- role for which the description islanguage
- description's language- Returns:
- wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
-
-