wt.clients.project
Class CRole

java.lang.Object
  extended bywt.clients.project.CRole

public class CRole
extends Object

A client wrapper class to handle Roles.


Field Summary
private static StringVector allDisplayRoles
           
private static Hashtable allRoles
           
 
Constructor Summary
CRole()
           
 
Method Summary
static Enumeration getAllRoleNames()
          Returns an Enumeration which contains String display names of all roles.
static String getPromoter()
          Returns the display name of the Promoter role.
static Role getRole(String role_name)
          Returns a Role based on a role name.
static String getSubmitter()
          Returns the display name of the Submitter role.
static void initialize()
          Initializes the list of all roles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allRoles

private static Hashtable allRoles

allDisplayRoles

private static StringVector allDisplayRoles
Constructor Detail

CRole

public CRole()
Method Detail

initialize

public static void initialize()
                       throws WTException
Initializes the list of all roles.

Throws:
WTException - if the list cannot be initialized

getRole

public static Role getRole(String role_name)
                    throws WTException
Returns a Role based on a role name.

Parameters:
role_name - the name of the role to find
Throws:
WTException - if the role cannot be returned

getAllRoleNames

public static Enumeration getAllRoleNames()
                                   throws WTException
Returns an Enumeration which contains String display names of all roles.

Throws:
WTException - if the list cannot be returned

getPromoter

public static String getPromoter()
Returns the display name of the Promoter role.


getSubmitter

public static String getSubmitter()
Returns the display name of the Submitter role.