wt.inf.library
Class LoadLibrary

java.lang.Object
  extended bywt.inf.library.LoadLibrary

public class LoadLibrary
extends Object

Creates and persists library objects based on input from an XML load file. The following are examples of what is needed in the load file.

<csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate">
 <csvname>library template name</csvname>
 <csvenabled>false</csvenabled>
 <csvxmlPath>name of the XML file of the template</csvxmlPath>
 <csvcontainerClassName>wt.inf.library.WTLibrary</csvcontainerClassName>
 <csvparentContainerPath>container path</csvparentContainerPath>
 <csvdescription>library template name</csvdescription>
</csvCreateContainerTemplate>
 
<csvLibraryContainer handler="wt.inf.library.LoadLibrary.createLibraryContainer">
 <csvname>library name</csvname>
 <csvdescription>library description</csvdescription>
 <csvcontainerTemplate>library template name</csvcontainerTemplate>
</csvLibraryContainer>

These entries are loaded by running:

windchill wt.load.LoadFromFile -u user name -p password -d fileName -CONT_PATH \"/wt.inf.container.OrgContainer=organization name\"

Supported API: true

Extendable: false

See Also:
StandardLoadService, LoadContainerTemplate

Field Summary
private static String RESOURCE
           
static boolean VERBOSE
          Flag to control vervbose debugging output during part loading.
 
Constructor Summary
LoadLibrary()
           
 
Method Summary
static boolean createLibraryContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
          Deprecated.  
private static String getValue(String name, Hashtable nv, Hashtable cmd_line, boolean required)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

public static final boolean VERBOSE
Flag to control vervbose debugging output during part loading. This constant is controlled via wt.properties file entry
wt.inf.library.load.verbose

The default value is false.


RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

LoadLibrary

public LoadLibrary()
Method Detail

getValue

private static String getValue(String name,
                               Hashtable nv,
                               Hashtable cmd_line,
                               boolean required)
                        throws WTException
Throws:
WTException

createLibraryContainer

public static boolean createLibraryContainer(Hashtable nv,
                                             Hashtable cmd_line,
                                             Vector return_objects)
Deprecated.  

Processed the desired action and then updates the state so that the desired response page can be generated.

Use the addToResponse methods to pass back messages on the status/results of the action.

Supported API: false

Throws:
Exception