com.ibm.itim.workflow.model
Class Participant

java.lang.Object
  |
  +--com.ibm.itim.workflow.model.Participant
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivityParticipant, ProcessParticipant

public class Participant
extends java.lang.Object
implements java.io.Serializable

This class provides information about a workflow participant.

See Also:
Serialized Form

Field Summary
static java.lang.String HUMAN
          Constant identifying the human participant type.
 
Constructor Summary
Participant()
          Default constructor.
Participant(DistinguishedName dn, java.lang.String type)
          Constructs with distinguished name and type.
Participant(DistinguishedName dn, java.lang.String id, java.lang.String type)
          Constructs with distinguished name, id, and type.
Participant(java.lang.String id, java.lang.String type)
          Constructs with distinguished name and type.
 
Method Summary
 DistinguishedName getDistinguishedName()
          Returns the distinguished name of the participant.
 java.lang.String getId()
          Returns the string identifier of the participant.
 java.lang.String getType()
          Returns the type of the participant.
 void setDistinguishedName(DistinguishedName dn)
          Changes the distinguished name of the participant.
 void setId(java.lang.String id)
          Changes the string identifier of the participant.
 void setType(java.lang.String type)
          Changes the type of the participant.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HUMAN

public static final java.lang.String HUMAN
Constant identifying the human participant type.
Constructor Detail

Participant

public Participant()
Default constructor.

Participant

public Participant(DistinguishedName dn,
                   java.lang.String type)
Constructs with distinguished name and type.
Parameters:
dn - DistinguishedName of the participant.
type - Type of the participant (i.e., HUMAN).

Participant

public Participant(DistinguishedName dn,
                   java.lang.String id,
                   java.lang.String type)
Constructs with distinguished name, id, and type.
Parameters:
dn - DistinguishedName of the participant.
id - Identifier of the participant.
type - Type of the participant (i.e., HUMAN).

Participant

public Participant(java.lang.String id,
                   java.lang.String type)
Constructs with distinguished name and type.
Parameters:
id - Identifier of the participant.
type - Type of the participant (i.e., HUMAN).
Method Detail

getDistinguishedName

public DistinguishedName getDistinguishedName()
Returns the distinguished name of the participant. This method will return null if type of participant does not require identification of an entry in the data model, such as relationship participants (i.e., TYPE_SUPERVISOR).
Returns:
DistinguishedName of the participant, null if none required.

setDistinguishedName

public void setDistinguishedName(DistinguishedName dn)
Changes the distinguished name of the participant.
Parameters:
dn - DistinguishedName of the participant.

getId

public java.lang.String getId()
Returns the string identifier of the participant.
Returns:
Identifier of the participant.

setId

public void setId(java.lang.String id)
Changes the string identifier of the participant.
Parameters:
id - Identifier of the participant.

getType

public java.lang.String getType()
Returns the type of the participant.
Returns:
Type of the participant (see constants).

setType

public void setType(java.lang.String type)
Changes the type of the participant.
Returns:
ID of the participant, null if it does not apply