|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.project.LoadProject
This class is used by wt.load.StandardLoadService to create objects
for classes in the wt.project
package.
Supported API: false
StandardLoadService
Field Summary | |
private static String |
CACHE_CURRENTPROJECT
|
private static String |
CACHE_CURRENTPT
|
private static String |
PROJECT_FOLDER
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
LoadProject()
|
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 |
createProjectBegin(Hashtable attributes,
Hashtable cmdLineArgs,
Vector return_objects)
Create and persist an empty Project (no participants). |
static boolean |
createProjectEnd(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Repersist a project with all the participants specified. |
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 Project (CACHE_CURRENTPROJECT) if there is no CACHE_CURRENTPT). |
private static boolean |
getBoolean(String name,
Hashtable attributes,
Hashtable cmdLineArgs,
int required,
boolean defaultValue)
|
private static Folder |
getFolder(String folderLocation,
Hashtable attributes,
Hashtable cmdLineArgs,
int required)
|
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 |
private static final boolean VERBOSE
private static final String PROJECT_FOLDER
private static final String RESOURCE
private static String CACHE_CURRENTPROJECT
private static String CACHE_CURRENTPT
Constructor Detail |
public LoadProject()
Method Detail |
public static boolean createProjectBegin(Hashtable attributes, Hashtable cmdLineArgs, Vector return_objects)
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createProjectEnd(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read from the input file.
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createIndirectRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
StandardLoadService
cache. This role holder is eventually added
to the appropriate life cycle phase template by the createPhaseTemplateEnd
method.
fileFields
- Hashtable containing the values read from the input file.
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createActorRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
StandardLoadService
cache. This role holder is eventually added
to the appropriate life cycle phase template by the createPhaseTemplateEnd
method.
fileFields
- Hashtable containing the values read from the input file.
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createRoleHolder(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
,
wt.lifecycle.WTRoleHolder.addPrincipal
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
private static String getString(String name, Hashtable attributes, Hashtable cmdLineArgs, int required) throws IllegalArgumentException
IllegalArgumentException
private static Folder getFolder(String folderLocation, Hashtable attributes, Hashtable cmdLineArgs, int required) throws IllegalArgumentException
IllegalArgumentException
private static boolean getBoolean(String name, Hashtable attributes, Hashtable cmdLineArgs, int required, boolean defaultValue) throws IllegalArgumentException
IllegalArgumentException
protected static void printException(String methodName, Exception e)
methodName
- Name of the calling method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |