com.silverpeas.workflow.engine.model
Class ParticipantsImpl

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

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
ParticipantsImpl()
          Constructor
 
Method Summary
 void addParticipant(Participant participant)
          Add an participant to the collection
 Participant createParticipant()
          Create an Participant
 Participant getParticipant(String name)
          Get the participant with given name
 Participant[] getParticipants()
          Returns all the Participant elements as an array
 Iterator<Participant> iterateParticipant()
          Iterate through the Participant objects
 void removeParticipant(String strParticipantName)
          Remove an participant from the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticipantsImpl

public ParticipantsImpl()
Constructor

Method Detail

addParticipant

public void addParticipant(Participant participant)
Description copied from interface: Participants
Add an participant to the collection

Specified by:
addParticipant in interface Participants
Parameters:
participant - to be added

createParticipant

public Participant createParticipant()
Description copied from interface: Participants
Create an Participant

Specified by:
createParticipant in interface Participants
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 interface Participants
Returns:

getParticipant

public Participant getParticipant(String name)
Get the participant with given name

Specified by:
getParticipant in interface Participants
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 interface Participants
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 interface Participants
Parameters:
strParticipantName - the name of the participant to be removed.
Throws:
WorkflowException - when the participant could not be deleted.


Copyright © 2016 Silverpeas. All Rights Reserved.