wt.team
Class LoadTeam

java.lang.Object
  extended bywt.team.LoadTeam

public class LoadTeam
extends Object

This class is used by wt.load.StandardLoadService to create objects for classes in the wt.team package.



Supported API: false

See Also:
StandardLoadService

Field Summary
private static String CACHE_CURRENTPT
           
private static String CACHE_CURRENTTEAM
           
private static String CACHE_CURRENTTEAMTEMPLATE
           
private static WTContainerRef containerContext
           
private static String FOLDER_SEPARATOR
           
private static ResourceBundle rb
           
private static String RESOURCE
           
private static String SYSTEM_CABINET
           
private static boolean VERBOSE
           
 
Constructor Summary
LoadTeam()
           
 
Method Summary
static boolean createActorRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
          Builds a hash table of role to actor role mappings, and stores the hash table to the StandardLoadService cache.
static boolean createIndirectRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
          Builds a hash table of role to role mappings, and stores the hash table to the StandardLoadService cache.
static boolean createRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
          Adds a "role to principal" mapping to the cached CURRENT PhaseTemplate object (CACHE_CURRENTPT) OR to the cached CURRENT TEAMTEMPLATE (CACHE_CURRENTTEAMTEMPLATE) if there is no CACHE_CURRENTPT).
static boolean createTeamBegin(Hashtable attributes, Hashtable cmdLineArgs, Vector return_objects)
          Create and persist an empty Team (no participants).
static boolean createTeamBegin(Hashtable attributes, Hashtable cmdLineArgs, Vector return_objects, WTContainerRef context)
          Create and persist an empty Team (no participants).
static boolean createTeamEnd(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
          Repersist a team with all the participants specified.
static boolean createTeamTemplateBegin(Hashtable attributes, Hashtable cmdLineArgs, Vector return_objects)
          Create and persist an empty TeamTemplate (no participants).
static boolean createTeamTemplateBegin(Hashtable attributes, Hashtable cmdLineArgs, Vector return_objects, WTContainerRef context)
          Create and persist an empty TeamTemplate (no participants).
static boolean createTeamTemplateEnd(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
          Repersist a teamTemplate with all the participants specified.
private static boolean getBoolean(String name, Hashtable attributes, Hashtable cmdLineArgs, int required, boolean defaultValue)
           
private static AdministrativeDomain getDomain(String administrativeDomain, Hashtable attributes, Hashtable cmdLineArgs, int required, WTContainerRef context)
           
private static Folder getFolder(String folderLocation, Hashtable attributes, Hashtable cmdLineArgs, int required, WTContainerRef context)
           
private static String getString(String name, Hashtable attributes, Hashtable cmdLineArgs, int required)
           
protected static void printException(String methodName, Exception e)
          Helper method to print stack trace of exception to Method Server log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static final boolean VERBOSE

rb

private static final ResourceBundle rb

SYSTEM_CABINET

private static final String SYSTEM_CABINET

FOLDER_SEPARATOR

private static final String FOLDER_SEPARATOR

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

containerContext

private static WTContainerRef containerContext

CACHE_CURRENTTEAM

private static String CACHE_CURRENTTEAM

CACHE_CURRENTTEAMTEMPLATE

private static String CACHE_CURRENTTEAMTEMPLATE

CACHE_CURRENTPT

private static String CACHE_CURRENTPT
Constructor Detail

LoadTeam

public LoadTeam()
Method Detail

createTeamTemplateBegin

public static boolean createTeamTemplateBegin(Hashtable attributes,
                                              Hashtable cmdLineArgs,
                                              Vector return_objects)
Create and persist an empty TeamTemplate (no participants).

Returns:
true if TeamTemplate created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createTeamTemplateBegin

public static boolean createTeamTemplateBegin(Hashtable attributes,
                                              Hashtable cmdLineArgs,
                                              Vector return_objects,
                                              WTContainerRef context)
Create and persist an empty TeamTemplate (no participants).

Returns:
true if TeamTemplate created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createTeamTemplateEnd

public static boolean createTeamTemplateEnd(Hashtable fileFields,
                                            Hashtable cmd_line,
                                            Vector return_objects)
Repersist a teamTemplate with all the participants specified.

Parameters:
fileFields - Hashtable containing the values read from the input file.
Returns:
true if teamTemplate created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createTeamBegin

public static boolean createTeamBegin(Hashtable attributes,
                                      Hashtable cmdLineArgs,
                                      Vector return_objects)
Create and persist an empty Team (no participants).

Returns:
true if Team created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createTeamBegin

public static boolean createTeamBegin(Hashtable attributes,
                                      Hashtable cmdLineArgs,
                                      Vector return_objects,
                                      WTContainerRef context)
Create and persist an empty Team (no participants).

Returns:
true if Team created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createTeamEnd

public static boolean createTeamEnd(Hashtable fileFields,
                                    Hashtable cmd_line,
                                    Vector return_objects)
Repersist a team with all the participants specified.

Parameters:
fileFields - Hashtable containing the values read from the input file.
Returns:
true if teamTemplate created and persisted ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createIndirectRoleHolder

public static boolean createIndirectRoleHolder(Hashtable fileFields,
                                               Hashtable cmd_line,
                                               Vector return_objects)
Builds a hash table of role to role mappings, and stores the hash table to the StandardLoadService cache. This role holder is eventually added to the appropriate life cycle phase template by the createPhaseTemplateEnd method.

Parameters:
fileFields - Hashtable containing the values read from the input file.
Returns:
true if roleRoleMap hashtable created ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createActorRoleHolder

public static boolean createActorRoleHolder(Hashtable fileFields,
                                            Hashtable cmd_line,
                                            Vector return_objects)
Builds a hash table of role to actor role mappings, and stores the hash table to the StandardLoadService cache. This role holder is eventually added to the appropriate life cycle phase template by the createPhaseTemplateEnd method.

Parameters:
fileFields - Hashtable containing the values read from the input file.
Returns:
true if roleRoleMap hashtable created ok, false otherwise
See Also:
wt.load.StandardLoadService.load, createPhaseTemplateBegin, createPhaseTemplateEnd

createRoleHolder

public static boolean createRoleHolder(Hashtable fileFields,
                                       Hashtable cmd_line,
                                       Vector return_objects)
Adds a "role to principal" mapping to the cached CURRENT PhaseTemplate object (CACHE_CURRENTPT) OR to the cached CURRENT TEAMTEMPLATE (CACHE_CURRENTTEAMTEMPLATE) if there is no CACHE_CURRENTPT).

Parameters:
fileFields - Hashtable containing the values read in from the input file.
Returns:
true if rolePrincipalMap hashtable created ok, false otherwise
See Also:
wt.load.StandardLoadService.load, wt.lifecycle.WTRoleHolder.addPrincipal, createPhaseTemplateBegin, createPhaseTemplateEnd

getString

private static String getString(String name,
                                Hashtable attributes,
                                Hashtable cmdLineArgs,
                                int required)
                         throws IllegalArgumentException
Throws:
IllegalArgumentException

getDomain

private static AdministrativeDomain getDomain(String administrativeDomain,
                                              Hashtable attributes,
                                              Hashtable cmdLineArgs,
                                              int required,
                                              WTContainerRef context)
                                       throws IllegalArgumentException
Throws:
IllegalArgumentException

getFolder

private static Folder getFolder(String folderLocation,
                                Hashtable attributes,
                                Hashtable cmdLineArgs,
                                int required,
                                WTContainerRef context)
                         throws IllegalArgumentException
Throws:
IllegalArgumentException

getBoolean

private static boolean getBoolean(String name,
                                  Hashtable attributes,
                                  Hashtable cmdLineArgs,
                                  int required,
                                  boolean defaultValue)
                           throws IllegalArgumentException
Throws:
IllegalArgumentException

printException

protected static void printException(String methodName,
                                     Exception e)
Helper method to print stack trace of exception to Method Server log.

Parameters:
methodName - Name of the calling method.