com.ptc.windchill.uwgm.common.pdm
Class MasterUtilities

java.lang.Object
  extended bycom.ptc.windchill.uwgm.common.pdm.MasterUtilities

public class MasterUtilities
extends Object

misc utilities related to WTPart and EPMDocument masters


Field Summary
private static Log log
          logging
 
Constructor Summary
MasterUtilities()
           
 
Method Summary
static WTValuedMap convertIterationsToMasters(WTValuedMap docToPartsMap)
          Converts input map of [EPMDocument, WTPart] to [EPMDocumentMaster, WTPartMaster]
static WTCollection getEpmMastersByCADNames(String[] cadNames)
          Retrieve EPMDocumentMaster objects with given CAD Names.
private  WTKeyedMap getRevisionsForEpmMasters(WTCollection masters)
          Retrieve all existing revisionsv for a given list of EPMDocumentMasters
 WTKeyedMap getRevisionsForMasters(WTCollection masters)
          From EPMDocument and WTPart tables, retrieve all existing revisions for a given list of Master objects
private  WTKeyedMap getRevisionsForPartMasters(WTCollection masters)
          Retrieve all existing revisions for a given list of WTPartMaster IDs
static WTCollection selectIterationsByMasters(WTCollection iterations, WTCollection masters)
          selects Iterated (WTParts and EPMDocuments) with Masters from masters collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log
logging

Constructor Detail

MasterUtilities

public MasterUtilities()
Method Detail

selectIterationsByMasters

public static WTCollection selectIterationsByMasters(WTCollection iterations,
                                                     WTCollection masters)
                                              throws WTException
selects Iterated (WTParts and EPMDocuments) with Masters from masters collection

Parameters:
iterations - WTCollection (Iterated)
masters - WTCollection (Mastered)
Returns:
WTCollection (Iterated)
Throws:
WTException

convertIterationsToMasters

public static WTValuedMap convertIterationsToMasters(WTValuedMap docToPartsMap)
                                              throws WTException
Converts input map of [EPMDocument, WTPart] to [EPMDocumentMaster, WTPartMaster]

Parameters:
docToPartsMap - WTValuedMap of EPMDocuments v/s their auto-associated WTParts
Returns:
WTValuedMap [EPMDocumentMaster, WTPartMaster]
Throws:
WTException

getEpmMastersByCADNames

public static WTCollection getEpmMastersByCADNames(String[] cadNames)
                                            throws WTException
Retrieve EPMDocumentMaster objects with given CAD Names.

Parameters:
cadNames - String[] CAD Names
Returns:
WTCollection of EPMDocumentMasters, non-modifiable
Throws:
WTException

getRevisionsForMasters

public WTKeyedMap getRevisionsForMasters(WTCollection masters)
From EPMDocument and WTPart tables, retrieve all existing revisions for a given list of Master objects

Returns:
WTKeyedMap [Master OID] -> [Set of Strings: VersionInfo.VersionID]

getRevisionsForEpmMasters

private WTKeyedMap getRevisionsForEpmMasters(WTCollection masters)
Retrieve all existing revisionsv for a given list of EPMDocumentMasters

Returns:
WTKeyedMap [Master OID] -> [Set of Strings: VersionInfo.VersionID]

getRevisionsForPartMasters

private WTKeyedMap getRevisionsForPartMasters(WTCollection masters)
Retrieve all existing revisions for a given list of WTPartMaster IDs

Returns:
WTKeyedMap [Master OID] -> [Set of Strings: VersionInfo.VersionID]