Class ParticipantImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.ParticipantImpl
-
- All Implemented Interfaces:
Serializable,Participant
public class ParticipantImpl extends Object implements Participant, Serializable
Class implementing the representation of the <participant> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParticipantImpl()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription(String role, String language)Get description in specific language for the given roleContextualDesignationsgetDescriptions()Get all the descriptionsStringgetLabel(String role, String language)Get label in specific language for the given roleContextualDesignationsgetLabels()Get all the labelsStringgetName()Get the name of this participantStringgetResolvedState()Get the state that defined participant has resolvedvoidsetName(String name)Set the name of this participantvoidsetResolvedState(String resolvedState)Set state that defined participant has resolved resolvedState state that defined participant has resolved
-
-
-
Method Detail
-
getDescription
public String getDescription(String role, String language)
Get description in specific language for the given role- Specified by:
getDescriptionin interfaceParticipant- Parameters:
language- description's languagerole- role for which the description is- 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.
-
getDescriptions
public ContextualDesignations getDescriptions()
Description copied from interface:ParticipantGet all the descriptions- Specified by:
getDescriptionsin interfaceParticipant- Returns:
- an object containing the collection of the descriptions
-
getLabel
public String getLabel(String role, String language)
Get label in specific language for the given role- Specified by:
getLabelin interfaceParticipant- Parameters:
language- label's languagerole- role for which the label is- 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.
-
getLabels
public ContextualDesignations getLabels()
Description copied from interface:ParticipantGet all the labels- Specified by:
getLabelsin interfaceParticipant- Returns:
- an object containing the collection of the labels
-
getName
public String getName()
Get the name of this participant- Specified by:
getNamein interfaceParticipant- Returns:
- participant's name
-
getResolvedState
public String getResolvedState()
Get the state that defined participant has resolved- Specified by:
getResolvedStatein interfaceParticipant- Returns:
- state that defined participant has resolved
-
setName
public void setName(String name)
Description copied from interface:ParticipantSet the name of this participant- Specified by:
setNamein interfaceParticipant- Parameters:
name- participant's name
-
setResolvedState
public void setResolvedState(String resolvedState)
Description copied from interface:ParticipantSet state that defined participant has resolved resolvedState state that defined participant has resolved- Specified by:
setResolvedStatein interfaceParticipant
-
-