wt.csm.navigation
Class ClassificationNodeLoader

java.lang.Object
  extended bywt.csm.navigation.ClassificationNodeLoader

public class ClassificationNodeLoader
extends Object


Field Summary
private static String CLASSIFICATION_STRUCTURE
           
static char CSV_DELIMITER
           
static char CSV_DELIMITER_SUB
           
private static String DESCRIPTION
           
private static String IMAGE_DIR
           
private static String IMAGE_HOLDER
           
private static String INTERNAL_ID
           
private static String NODE_NAME
           
private static String PARENT_NODE
           
private static String REFERENCE_DEF_VIEW
           
private static String SERVICE_NAME
           
private static boolean VERBOSE
           
 
Constructor Summary
ClassificationNodeLoader()
           
 
Method Summary
static boolean addToClassificationStructCache(ClassificationStructDefaultView csdv)
           
static boolean addToReferenceDefViewCache(ReferenceDefView referenceDefView)
           
static boolean beginCreateClassNode(Hashtable nv, Hashtable cmd_line, Vector return_objects)
           
static String convertCSVDelimiter(String toBeReplaced)
          The CSV file is using ',' as the delimiter.
static AttributeDefDefaultView convertRefNodeViewToRefDefDefaultView(AttributeDefNodeView referenceDefNodeView)
           
static boolean endCreateClassNode(Hashtable nv, Hashtable cmd_line, Vector return_objects)
           
static ClassificationNodeDefaultView findParentClassificationNode(String parentPath, ClassificationStructDefaultView csdv)
           
static ClassificationStructDefaultView getCachedClassificationStructDefaultView()
           
static Object getCachedObject(String key)
           
static String getCachedString(String key)
           
static ClassificationStructDefaultView getClassificationStructDefaultView(String primaryClassName, AttributeDefDefaultView referenceDefView)
           
static String getDefinitionPath(String parentID)
          Pass parent path(s) from root to the new node's parent, return the definition path (NOT Include Organizer path) back.
static ClassificationStructDefaultView getFromClassificationStructCache(String primaryClassName, AttributeDefDefaultView referenceDefView)
           
static ReferenceDefView getFromReferenceDefViewCache(String refDefName)
           
static boolean getImageRootDirectory(Hashtable nv, Hashtable cmd_line, Vector return_objects)
           
static ReferenceDefView getReferenceDefView(String refDefName)
           
static void printAbstractValueViewUnitDefView(AttributeContainer container, String message)
           
static void printAttributeContainer(AttributeContainer container)
           
private static ClassificationStructDefaultView saveClassificationStructureToDB(ClassificationStructDefaultView csdv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

private static final String SERVICE_NAME
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

CSV_DELIMITER

public static final char CSV_DELIMITER
See Also:
Constant Field Values

CSV_DELIMITER_SUB

public static final char CSV_DELIMITER_SUB
See Also:
Constant Field Values

CLASSIFICATION_STRUCTURE

private static String CLASSIFICATION_STRUCTURE

NODE_NAME

private static String NODE_NAME

PARENT_NODE

private static String PARENT_NODE

DESCRIPTION

private static String DESCRIPTION

IMAGE_DIR

private static String IMAGE_DIR

IMAGE_HOLDER

private static String IMAGE_HOLDER

REFERENCE_DEF_VIEW

private static String REFERENCE_DEF_VIEW

INTERNAL_ID

private static String INTERNAL_ID
Constructor Detail

ClassificationNodeLoader

public ClassificationNodeLoader()
Method Detail

getImageRootDirectory

public static boolean getImageRootDirectory(Hashtable nv,
                                            Hashtable cmd_line,
                                            Vector return_objects)

beginCreateClassNode

public static boolean beginCreateClassNode(Hashtable nv,
                                           Hashtable cmd_line,
                                           Vector return_objects)

findParentClassificationNode

public static ClassificationNodeDefaultView findParentClassificationNode(String parentPath,
                                                                         ClassificationStructDefaultView csdv)

endCreateClassNode

public static boolean endCreateClassNode(Hashtable nv,
                                         Hashtable cmd_line,
                                         Vector return_objects)

getCachedClassificationStructDefaultView

public static ClassificationStructDefaultView getCachedClassificationStructDefaultView()

getCachedObject

public static Object getCachedObject(String key)

getCachedString

public static String getCachedString(String key)

saveClassificationStructureToDB

private static ClassificationStructDefaultView saveClassificationStructureToDB(ClassificationStructDefaultView csdv)

convertRefNodeViewToRefDefDefaultView

public static AttributeDefDefaultView convertRefNodeViewToRefDefDefaultView(AttributeDefNodeView referenceDefNodeView)

getClassificationStructDefaultView

public static ClassificationStructDefaultView getClassificationStructDefaultView(String primaryClassName,
                                                                                 AttributeDefDefaultView referenceDefView)

printAbstractValueViewUnitDefView

public static void printAbstractValueViewUnitDefView(AttributeContainer container,
                                                     String message)

printAttributeContainer

public static void printAttributeContainer(AttributeContainer container)

convertCSVDelimiter

public static String convertCSVDelimiter(String toBeReplaced)
The CSV file is using ',' as the delimiter. However, sometimes you need ',' in the string. Therefore, we convert ',' to a CSV_DELIMITER_SUB in the csv file. Then convert CSV_DELIMITER_SUB back to a ',' after retrieved it from csv file.

Returns:
a new string with newChar that just been replaced.

getDefinitionPath

public static String getDefinitionPath(String parentID)
Pass parent path(s) from root to the new node's parent, return the definition path (NOT Include Organizer path) back.

Returns:
String: the definition path -- exclude any Organizer path.

getFromClassificationStructCache

public static ClassificationStructDefaultView getFromClassificationStructCache(String primaryClassName,
                                                                               AttributeDefDefaultView referenceDefView)

addToClassificationStructCache

public static boolean addToClassificationStructCache(ClassificationStructDefaultView csdv)

getReferenceDefView

public static ReferenceDefView getReferenceDefView(String refDefName)

getFromReferenceDefViewCache

public static ReferenceDefView getFromReferenceDefViewCache(String refDefName)

addToReferenceDefViewCache

public static boolean addToReferenceDefViewCache(ReferenceDefView referenceDefView)