|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.lifecycle.LoadLifeCycle
This class is used by wt.load.StandardLoadService to create and persist life cycle objects based on input from a comma seperated value file. (ie. predefined_lifecycle.csv)
Included are methods which are referenced in the StandardLoadService map file (ie. csvmapfile.txt) and called by StandardLoadService. The method wt.load.StandardLoadService.load reads records from the life cycle .csv file and passes the fields in a hashtable to the methods defined in this class. These methods then create and persist the appropriate life cycle objects.
Supported API: false
StandardLoadService
Field Summary | |
private static String |
CACHE_ADHOCACL
|
private static String |
CACHE_CRITERIA
|
private static String |
CACHE_CURRENTPROJECT
|
private static String |
CACHE_CURRENTPT
|
private static String |
CACHE_LCT
|
private static String |
CACHE_PHASES
|
private static String |
CACHE_PREVPT
|
private static String |
CACHE_SUCCESSORTABLE
|
private static WTContainerRef |
containerContext
|
private static String |
FOLDER_SEPARATOR
|
private static boolean |
ITERATION
|
private static ResourceBundle |
rb
|
private static String |
RESOURCE
|
private static String |
SYSTEM_CABINET
|
private static boolean |
VERBOSE
|
private static Vector |
windchillClasses
|
Constructor Summary | |
LoadLifeCycle()
|
Method Summary | |
private static boolean |
contextCurrent(LifeCycleTemplate template,
WTContainerRef context)
|
static boolean |
createCriterion(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Persists a Criterion object using data from the lifecycle.csv input file. |
static boolean |
createLifeCycleTemplate(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Creates and persists a LifeCycleTemplate object. |
static boolean |
createLifeCycleTemplate(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects,
WTContainerRef context)
Creates and persists a LifeCycleTemplate object. |
static boolean |
createLifeCycleTemplateEnd(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
|
static boolean |
createPhaseSuccessionBegin(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Creates and persists a PhaseSuccession object. |
static boolean |
createPhaseTemplateBegin(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Creates and persists a PhaseTemplate object. |
static boolean |
createPhaseTemplateEnd(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Performs activities to finish the creation of a new PhaseTemplate. |
static boolean |
createWTAclEntry(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Adds an adhoc access control entry to the cached AdHocAclSpec (CACHE_ADHOCACL). |
private static LifeCycleTemplateMaster |
findTemplateMasterByName(String name,
WTContainerRef context,
boolean onlyEnabled)
|
static boolean |
getBooleanValue(Hashtable fileFields,
Hashtable cmd_line,
String fieldName,
boolean nullValueOk,
boolean defaultValue)
Obtains a boolean value from the input file. |
private static Folder |
getFolder(WTContainerRef context,
String strValue)
|
private static String |
getFolderPath(WTContainer context,
String folder_name)
|
private static Role |
getRole(String roleString)
|
static Role |
getRoleValue(Hashtable fileFields,
Hashtable cmd_line,
String fieldName,
boolean nullValueOk,
boolean nullRoleOk)
Obtains a string from the input file which represents a Role. |
static String |
getStringValue(Hashtable fileFields,
Hashtable cmd_line,
String fieldName,
boolean nullValueOk)
Obtains string value from input file. |
protected static void |
printException(String methodName,
Exception e)
Helper method to print stack trace of exception to Method Server log. |
private static boolean |
validateSupportedClass(String a_classname)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String CACHE_LCT
private static String CACHE_CRITERIA
private static String CACHE_PREVPT
private static String CACHE_CURRENTPT
private static String CACHE_CURRENTPROJECT
private static String CACHE_ADHOCACL
private static String CACHE_SUCCESSORTABLE
private static String CACHE_PHASES
private static String FOLDER_SEPARATOR
private static String RESOURCE
private static WTContainerRef containerContext
private static final boolean VERBOSE
private static final boolean ITERATION
private static final ResourceBundle rb
private static final String SYSTEM_CABINET
private static Vector windchillClasses
Constructor Detail |
public LoadLifeCycle()
Method Detail |
public static String getStringValue(Hashtable fileFields, Hashtable cmd_line, String fieldName, boolean nullValueOk) throws LifeCycleException
fileFields
- hashtable containing the values read from the input filefieldName
- name of the input fieldnullValueOk
- true if a null value for the parameter is acceptable, false otherwise
LifeCycleException
- if a null value is not acceptable and was discoveredwt.load.StandardLoadService.load
public static Role getRoleValue(Hashtable fileFields, Hashtable cmd_line, String fieldName, boolean nullValueOk, boolean nullRoleOk) throws LifeCycleException
fileFields
- Hashtable containing the values read in from the input file.fieldName
- Name of the input fieldnullValueOk
- true if a null value from input file is acceptable, false otherwisenullRoleOk
- true if it is ok for the role to be nonexistent, false otherwise
LifeCycleException
- if a null value is not acceptable and was discoveredwt.load.StandardLoadService.load
public static boolean getBooleanValue(Hashtable fileFields, Hashtable cmd_line, String fieldName, boolean nullValueOk, boolean defaultValue) throws LifeCycleException
fileFields
- Hashtable containing the values read in from the input file.fieldName
- Name of the input fieldnullValueOk
- true if a null input value is okdefaultValue
- value returned if nullValueOk is true and there is no value assigned in the input file
LifeCycleException
- if a null value is not acceptable and was discoveredwt.load.StandardLoadService.load
public static boolean createLifeCycleTemplate(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
public static boolean createLifeCycleTemplate(Hashtable fileFields, Hashtable cmd_line, Vector return_objects, WTContainerRef context)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
public static boolean createLifeCycleTemplateEnd(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
public static boolean createCriterion(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 createPhaseTemplateBegin(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createPhaseTemplateEnd(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
,
createPhaseTemplateBegin
,
createPhaseTemplateEnd
public static boolean createPhaseSuccessionBegin(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
,
createPhaseSuccessionBegin
public static boolean createWTAclEntry(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
fileFields
- Hashtable containing the values read in from the input file.
wt.load.StandardLoadService.load
protected static void printException(String methodName, Exception e)
methodName
- Name of the calling method.private static boolean validateSupportedClass(String a_classname) throws WTException
WTException
private static Folder getFolder(WTContainerRef context, String strValue) throws IllegalArgumentException
IllegalArgumentException
private static String getFolderPath(WTContainer context, String folder_name) throws WTException
WTException
private static boolean contextCurrent(LifeCycleTemplate template, WTContainerRef context)
private static Role getRole(String roleString) throws WTInvalidParameterException
WTInvalidParameterException
private static LifeCycleTemplateMaster findTemplateMasterByName(String name, WTContainerRef context, boolean onlyEnabled) throws LifeCycleException
LifeCycleException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |