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 String
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 this participantString
getResolvedState()
Get the state that defined participant has resolvedvoid
setName(String name)
Set the name of this participantvoid
setResolvedState(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:
getDescription
in 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:Participant
Get all the descriptions- Specified by:
getDescriptions
in 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:
getLabel
in 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:Participant
Get all the labels- Specified by:
getLabels
in interfaceParticipant
- Returns:
- an object containing the collection of the labels
-
getName
public String getName()
Get the name of this participant- Specified by:
getName
in interfaceParticipant
- Returns:
- participant's name
-
getResolvedState
public String getResolvedState()
Get the state that defined participant has resolved- Specified by:
getResolvedState
in interfaceParticipant
- Returns:
- state that defined participant has resolved
-
setName
public void setName(String name)
Description copied from interface:Participant
Set the name of this participant- Specified by:
setName
in interfaceParticipant
- Parameters:
name
- participant's name
-
setResolvedState
public void setResolvedState(String resolvedState)
Description copied from interface:Participant
Set state that defined participant has resolved resolvedState state that defined participant has resolved- Specified by:
setResolvedState
in interfaceParticipant
-
-