de.danet.an.workflow.api
Class Participant.ParticipantType

java.lang.Object
  extended byde.danet.an.workflow.api.Participant.ParticipantType
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Participant

public static final class Participant.ParticipantType
extends java.lang.Object
implements java.io.Serializable

This class defines the participant type for a participant.

See Also:
Serialized Form

Field Summary
static Participant.ParticipantType HUMAN
          HUMAN ParticipantType.
static Participant.ParticipantType ORGANIZATIONAL_UNIT
          ORGANIZATIONAL_UNIT ParticipantType.
static Participant.ParticipantType RESOURCE
          RESOURCE ParticipantType.
static Participant.ParticipantType RESOURCE_SET
          RESOURCE_SET ParticipantType.
static Participant.ParticipantType ROLE
          ROLE ParticipantType.
static Participant.ParticipantType SYSTEM
          SYSTEM ParticipantType.
 
Method Summary
static Participant.ParticipantType fromString(java.lang.String text)
          Get a participant type by name.
 boolean isHuman()
          Checks if the type is "HUMAN".
 boolean isOrganizationUnit()
          Checks if the type is "ORGANIZATIONAL_UNIT".
 boolean isResource()
          Checks if the type is "RESOURCE".
 boolean isResourceSet()
          Checks if the type is "RESOURCE_SET".
 boolean isRole()
          Checks if the type is "ROLE".
 boolean isSystem()
          Checks if the type is "SYSTEM".
 java.lang.String toString()
          Returns the type as text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_SET

public static final Participant.ParticipantType RESOURCE_SET
RESOURCE_SET ParticipantType.


RESOURCE

public static final Participant.ParticipantType RESOURCE
RESOURCE ParticipantType.


ROLE

public static final Participant.ParticipantType ROLE
ROLE ParticipantType.


ORGANIZATIONAL_UNIT

public static final Participant.ParticipantType ORGANIZATIONAL_UNIT
ORGANIZATIONAL_UNIT ParticipantType.


HUMAN

public static final Participant.ParticipantType HUMAN
HUMAN ParticipantType.


SYSTEM

public static final Participant.ParticipantType SYSTEM
SYSTEM ParticipantType.

Method Detail

fromString

public static Participant.ParticipantType fromString(java.lang.String text)
                                              throws java.lang.IllegalArgumentException
Get a participant type by name.

Parameters:
text - participant type name to search
Returns:
participant type object
Throws:
java.lang.IllegalArgumentException - if text is not a valid participant type name.

toString

public final java.lang.String toString()
Returns the type as text.

Returns:
type as text

isResourceSet

public final boolean isResourceSet()
Checks if the type is "RESOURCE_SET".

Returns:
true if the type is "RESOURCE_SET".

isResource

public final boolean isResource()
Checks if the type is "RESOURCE".

Returns:
true if the type is "RESOURCE".

isRole

public final boolean isRole()
Checks if the type is "ROLE".

Returns:
true if the type is "ROLE".

isOrganizationUnit

public final boolean isOrganizationUnit()
Checks if the type is "ORGANIZATIONAL_UNIT".

Returns:
true if the type is "ORGANIZATIONAL_UNIT".

isHuman

public final boolean isHuman()
Checks if the type is "HUMAN".

Returns:
true if the type is "HUMAN".

isSystem

public final boolean isSystem()
Checks if the type is "SYSTEM".

Returns:
true if the type is "SYSTEM".