wt.epm.util
Class CreateParameterMapMigrator

java.lang.Object
  extended bywt.epm.util.CreateParameterMapMigrator

public class CreateParameterMapMigrator
extends Object

Creates parameter map between PROE parameter name to Windchill Attributes. This migrator uses a properties file to create the map. The property file used is \\\codebase\\com\\ptc\\prowt\\proesvcs\\util\\iba.properties". This property file has PROE parameters and Windchill attributes as key/value pairs.

Warning:

This migrator deletes all the previous maps entries in the database and creates a new entries. It is good pratice to look at the parameter map entries in EPMParmeterMap table before you use this migrator. If you would like to retain some or all of the entries in the table, create a key/value pair corresponding to each of the entry in iba.properties.

Usage

Invocation from the command line is expected to look like:
    java wt.epm.util.CreateParameterMap [-Verbose | -Help]
 e.g.
    java wt.epm.util.CreateParameterMap -Verbose 


Supported API: false

Extendable: false

Since:
R8.0

Nested Class Summary
protected static class CreateParameterMapMigrator.ClientStreamPrinter
           
static class CreateParameterMapMigrator.Server
           
 
Field Summary
private static CreateParameterMapMigrator.ClientStreamPrinter clientStream
           
private static String SERVER_CLASS
           
private static boolean VERBOSE
           
 
Constructor Summary
CreateParameterMapMigrator()
           
 
Method Summary
static int[] addParameterMaps(Map map)
           
private static AbstractAttributeDefinition checkDefinition(String intHid)
           
private static Map loadIBAProperties()
           
static void main(String[] args)
           
private static void print(String p)
           
private static void print(String p, boolean help)
           
static void print(String message, boolean help, boolean VERBOSE)
           
private static void printFromClient(String p)
           
private static void printFromClient(String p, boolean help)
           
private static void propertiesFileHelp()
           
private static boolean runningOnServer()
           
private static String toInternalHid(String extHid)
           
private static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE

clientStream

private static CreateParameterMapMigrator.ClientStreamPrinter clientStream

SERVER_CLASS

private static final String SERVER_CLASS
Constructor Detail

CreateParameterMapMigrator

public CreateParameterMapMigrator()
Method Detail

main

public static void main(String[] args)

loadIBAProperties

private static Map loadIBAProperties()
                              throws WTException
Throws:
WTException

toInternalHid

private static String toInternalHid(String extHid)

checkDefinition

private static AbstractAttributeDefinition checkDefinition(String intHid)
                                                    throws WTException
Throws:
WTException

usage

private static void usage()

propertiesFileHelp

private static void propertiesFileHelp()

printFromClient

private static void printFromClient(String p,
                                    boolean help)

printFromClient

private static void printFromClient(String p)

runningOnServer

private static boolean runningOnServer()

addParameterMaps

public static int[] addParameterMaps(Map map)
                              throws WTException,
                                     RemoteException
Throws:
WTException
RemoteException

print

private static void print(String p)

print

private static void print(String p,
                          boolean help)

print

public static void print(String message,
                         boolean help,
                         boolean VERBOSE)