com.ptc.windchill.cadx.saveas
Class SaveAsUtils

java.lang.Object
  extended bycom.ptc.windchill.cadx.saveas.SaveAsUtils

public class SaveAsUtils
extends Object



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
static String docFolderKey
           
static Comparator DOCNUMBER_VERSION_COMPARATOR
           
static String docPrefixSuffixSectionName
           
static String partFolderKey
           
private static String RESOURCE
           
static String saveasIniFile
           
static String spaceAfterPrefix
           
static String spaceBeforeSuffix
           
static String wtpartPrefixSuffixSectionName
           
 
Constructor Summary
SaveAsUtils()
           
 
Method Summary
static Object[] addAsStoredBaseLines(EPMDocument selObj, Locale locale)
           
static boolean checkContainerAcess(Object obj)
           
static EPMWorkspace createADummyWorkspace(EPMDocConfigSpec epmDocCS, WTPartConfigSpec wtPartCS)
           
private static HashMap createDependentHashMap(Object[] input)
           
static void deleteDummyWorkspace(EPMWorkspace dummyWs)
           
static List dependencyAndRulesList(Vector saveAsVec, Vector rulesVec)
           
private static List filterDuplicateDrawings(HashMap map, List targetObjects)
           
static void filterDuplicates(Vector saveAsVec, Vector rulesVec)
           
static String generateCADNameFromNumber(EPMDocument orig, String value)
           
static void getAllInstances(List arrayObjects, ConfigSpec docConfigSpec, ConfigSpec partConfigSpec, boolean isPartCentric, Vector finalVecForSaveAs, Vector inclusionCriteriaVec, String forWhichObject)
           
static List[] getAllInstances(List input, List allDependents, EPMDocConfigSpec docCS, String forWhichObject, Vector finalVecForSaveAs, Vector inclusionCriteriaVec)
           
static String getIconString(WTObject obj, String codeBase)
           
static String getLocation(String key)
           
static String getNewValue(HashMap hm, String docPartPrefix, String prefixKey, String suffixKey, String orgVal)
           
static Object[] getRelatedDrawings(List input, List associated, String forWhichObject, List depsList, List drawings, Vector finalVecForSaveAs, Vector inclusionCriteriaVec, boolean partCentricProcessing, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec, HashMap map)
           
static void getRelatedDrawings(Object[] input, String[] forWhichObjArr, List associated, List depsList, List drawings, Vector finalVecForSaveAs, Vector inclusionCriteriaVec, boolean partCentricProcessing, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec)
           
static EPMDocument getSeedObject(Mastered masterObj, EPMDocConfigSpec docConfigSpec, Iterated ctxObj)
           
static Vector getSelectedExistingObjList(SaveAsFormProcessor safp)
           
static String getSelectedProperty(Properties prop, String propName, String defVal)
           
static void ignoreCheckedOutDependents(Vector allDependents, Vector incCriteriaVec, Locale locale)
           
static HashMap initializePrefixSuffix()
           
static void logMessageAboutIgnoredObjects(String msgId, Vector ignoredObjects, Locale locale)
           
static String processNbsp(int startOrEnd, String val)
           
static void renderDropdown(PrintWriter out, String lbl, String name, String id, Object[] optVal, Object[] optLbl, String defaultSelection, String onChangeHandler)
           
static void renderDropdown(PrintWriter out, String lbl, String name, String id, String[] optVal, String[] optLbl, String defaultSelection)
           
static void resetFormFieldAfterPicker(SaveAsFormProcessor safp)
           
static String rulesSectionUrl(SaveAsFormProcessor safp, String retUrl)
           
static String[] setNumberAndCADNameFromAutoNumbering(WTContainer container, EPMDocument original)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

saveasIniFile

public static final String saveasIniFile
See Also:
Constant Field Values

docPrefixSuffixSectionName

public static final String docPrefixSuffixSectionName
See Also:
Constant Field Values

wtpartPrefixSuffixSectionName

public static final String wtpartPrefixSuffixSectionName
See Also:
Constant Field Values

spaceAfterPrefix

public static final String spaceAfterPrefix
See Also:
Constant Field Values

spaceBeforeSuffix

public static final String spaceBeforeSuffix
See Also:
Constant Field Values

docFolderKey

public static final String docFolderKey
See Also:
Constant Field Values

partFolderKey

public static final String partFolderKey
See Also:
Constant Field Values

DOCNUMBER_VERSION_COMPARATOR

public static final Comparator DOCNUMBER_VERSION_COMPARATOR
Constructor Detail

SaveAsUtils

public SaveAsUtils()
Method Detail

resetFormFieldAfterPicker

public static void resetFormFieldAfterPicker(SaveAsFormProcessor safp)

renderDropdown

public static void renderDropdown(PrintWriter out,
                                  String lbl,
                                  String name,
                                  String id,
                                  Object[] optVal,
                                  Object[] optLbl,
                                  String defaultSelection,
                                  String onChangeHandler)

renderDropdown

public static void renderDropdown(PrintWriter out,
                                  String lbl,
                                  String name,
                                  String id,
                                  String[] optVal,
                                  String[] optLbl,
                                  String defaultSelection)

getSelectedExistingObjList

public static Vector getSelectedExistingObjList(SaveAsFormProcessor safp)

rulesSectionUrl

public static String rulesSectionUrl(SaveAsFormProcessor safp,
                                     String retUrl)
                              throws WTException
Throws:
WTException

getIconString

public static String getIconString(WTObject obj,
                                   String codeBase)
                            throws WTException,
                                   PropertyVetoException,
                                   InvocationTargetException,
                                   IllegalAccessException
Throws:
WTException
PropertyVetoException
InvocationTargetException
IllegalAccessException

initializePrefixSuffix

public static HashMap initializePrefixSuffix()

getNewValue

public static String getNewValue(HashMap hm,
                                 String docPartPrefix,
                                 String prefixKey,
                                 String suffixKey,
                                 String orgVal)

createADummyWorkspace

public static EPMWorkspace createADummyWorkspace(EPMDocConfigSpec epmDocCS,
                                                 WTPartConfigSpec wtPartCS)

deleteDummyWorkspace

public static void deleteDummyWorkspace(EPMWorkspace dummyWs)

getSelectedProperty

public static String getSelectedProperty(Properties prop,
                                         String propName,
                                         String defVal)

processNbsp

public static String processNbsp(int startOrEnd,
                                 String val)

getRelatedDrawings

public static void getRelatedDrawings(Object[] input,
                                      String[] forWhichObjArr,
                                      List associated,
                                      List depsList,
                                      List drawings,
                                      Vector finalVecForSaveAs,
                                      Vector inclusionCriteriaVec,
                                      boolean partCentricProcessing,
                                      EPMDocConfigSpec docConfigSpec,
                                      WTPartConfigSpec partConfigSpec)
                               throws WTException
Throws:
WTException

getRelatedDrawings

public static Object[] getRelatedDrawings(List input,
                                          List associated,
                                          String forWhichObject,
                                          List depsList,
                                          List drawings,
                                          Vector finalVecForSaveAs,
                                          Vector inclusionCriteriaVec,
                                          boolean partCentricProcessing,
                                          EPMDocConfigSpec docConfigSpec,
                                          WTPartConfigSpec partConfigSpec,
                                          HashMap map)
                                   throws WTException
Throws:
WTException

getAllInstances

public static List[] getAllInstances(List input,
                                     List allDependents,
                                     EPMDocConfigSpec docCS,
                                     String forWhichObject,
                                     Vector finalVecForSaveAs,
                                     Vector inclusionCriteriaVec)
                              throws WTException
Throws:
WTException

dependencyAndRulesList

public static List dependencyAndRulesList(Vector saveAsVec,
                                          Vector rulesVec)

getLocation

public static String getLocation(String key)

getAllInstances

public static void getAllInstances(List arrayObjects,
                                   ConfigSpec docConfigSpec,
                                   ConfigSpec partConfigSpec,
                                   boolean isPartCentric,
                                   Vector finalVecForSaveAs,
                                   Vector inclusionCriteriaVec,
                                   String forWhichObject)
                            throws WTException
Throws:
WTException

logMessageAboutIgnoredObjects

public static void logMessageAboutIgnoredObjects(String msgId,
                                                 Vector ignoredObjects,
                                                 Locale locale)

ignoreCheckedOutDependents

public static void ignoreCheckedOutDependents(Vector allDependents,
                                              Vector incCriteriaVec,
                                              Locale locale)

createDependentHashMap

private static HashMap createDependentHashMap(Object[] input)

filterDuplicateDrawings

private static List filterDuplicateDrawings(HashMap map,
                                            List targetObjects)

setNumberAndCADNameFromAutoNumbering

public static String[] setNumberAndCADNameFromAutoNumbering(WTContainer container,
                                                            EPMDocument original)
                                                     throws WTException
Throws:
WTException

generateCADNameFromNumber

public static String generateCADNameFromNumber(EPMDocument orig,
                                               String value)

checkContainerAcess

public static boolean checkContainerAcess(Object obj)

addAsStoredBaseLines

public static Object[] addAsStoredBaseLines(EPMDocument selObj,
                                            Locale locale)

getSeedObject

public static EPMDocument getSeedObject(Mastered masterObj,
                                        EPMDocConfigSpec docConfigSpec,
                                        Iterated ctxObj)
                                 throws WTException
Throws:
WTException

filterDuplicates

public static void filterDuplicates(Vector saveAsVec,
                                    Vector rulesVec)