com.ptc.netmarkets.nmixb
Class LoaderHelper

java.lang.Object
  extended bycom.ptc.netmarkets.nmixb.LoaderHelper

public class LoaderHelper
extends Object

Temporary fix to ease the task of import/export of Viewables for PJL 6.2


Nested Class Summary
static class LoaderHelper.Server
           
 
Field Summary
private static boolean SERVER
           
private static String SERVER_CLASS
           
 
Constructor Summary
LoaderHelper()
           
 
Method Summary
 void load()
           
static void main(String[] args)
           
static void storeData(File inDir, Persistable p, Boolean republishable, String repName, String repDesc, Boolean repDefault, Boolean createThumbnail, Boolean storeEDZ, ArrayList results)
          Loads Viewable data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_CLASS

private static final String SERVER_CLASS

SERVER

private static final boolean SERVER
Constructor Detail

LoaderHelper

public LoaderHelper()
Method Detail

main

public static void main(String[] args)

load

public void load()

storeData

public static void storeData(File inDir,
                             Persistable p,
                             Boolean republishable,
                             String repName,
                             String repDesc,
                             Boolean repDefault,
                             Boolean createThumbnail,
                             Boolean storeEDZ,
                             ArrayList results)
Loads Viewable data. This method doesn't return anything but will add the created representable to the results argument. inDir - input directory with converted data. Should contain only 1 ed file p - the WTPart or EPMDocument to store data against. If the data is to be republishable then this should be the EPMDcouemnt that the data can be republished from republishable - flag to indicate if the data can be republished from the the given persistable. eg. can not if a zip file of CAD data is stored repName - representation name, eg ."default" repDesc - representation description repDefault - flag if this representation should be the default. If first representation will always be the default. createThumbnail - flag if thumbnail required. System config will determine if a thumbnail is actually created. storeEDZ - flag if an EDZ file is required in the Representation. System config will determine if one is actually created. results - A vector to store results in. This method will populate this vector with a representable.