Class ParticipantsImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.ParticipantsImpl
-
- All Implemented Interfaces:
Serializable
,Participants
public class ParticipantsImpl extends Object implements Serializable, Participants
Class implementing the representation of the <participants> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParticipantsImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParticipant(Participant participant)
Add an participant to the collectionParticipant
createParticipant()
Create an ParticipantParticipant
getParticipant(String name)
Get the participant with given nameParticipant[]
getParticipants()
Returns all the Participant elements as an arrayIterator<Participant>
iterateParticipant()
Iterate through the Participant objectsvoid
removeParticipant(String strParticipantName)
Remove an participant from the collection
-
-
-
Method Detail
-
addParticipant
public void addParticipant(Participant participant)
Description copied from interface:Participants
Add an participant to the collection- Specified by:
addParticipant
in interfaceParticipants
- Parameters:
participant
- to be added
-
createParticipant
public Participant createParticipant()
Description copied from interface:Participants
Create an Participant- Specified by:
createParticipant
in interfaceParticipants
- Returns:
- an object implementing Participant
-
getParticipants
public Participant[] getParticipants()
Description copied from interface:Participants
Returns all the Participant elements as an array- Specified by:
getParticipants
in interfaceParticipants
- Returns:
- an array with the participants.
-
getParticipant
public Participant getParticipant(String name)
Get the participant with given name- Specified by:
getParticipant
in interfaceParticipants
- Parameters:
name
- participant name- Returns:
- wanted participant
-
iterateParticipant
public Iterator<Participant> iterateParticipant()
Description copied from interface:Participants
Iterate through the Participant objects- Specified by:
iterateParticipant
in interfaceParticipants
- Returns:
- an iterator
-
removeParticipant
public void removeParticipant(String strParticipantName) throws WorkflowException
Description copied from interface:Participants
Remove an participant from the collection- Specified by:
removeParticipant
in interfaceParticipants
- Parameters:
strParticipantName
- the name of the participant to be removed.- Throws:
WorkflowException
- when the participant could not be deleted.
-
-