|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.WTPartUtilities
Field Summary | |
private static String |
EPM_APP_TYPE
|
private static boolean |
VERBOSE
|
private static String |
WORKSPACE_NEWPARTFOLDERDATA
|
Constructor Summary | |
WTPartUtilities()
|
Method Summary | |
private static void |
addPartsToFolderData(EPMWorkspace workspace,
WTPart[] parts,
String[] folderOIDs)
This method adds Part to the Vector |
static WTPart |
createNewPart(String a_PartNumber,
String a_PartName,
PartType a_PartType,
String a_folderOID,
EPMWorkspace a_CurrentWS,
WTOrganization org,
WTContainer container,
Source a_source,
QuantityUnit a_defaultUnits)
|
static WTPart |
createNewPart(String a_PartNumber,
String a_PartName,
PartType a_PartType,
String a_folderOID,
EPMWorkspace a_CurrentWS,
WTOrganization org,
WTContainer container,
Source a_source,
QuantityUnit a_defaultUnits,
boolean deferSaving)
|
static boolean |
doesPartExist(String partNumber)
|
static boolean |
doesPartExist(String partNumber,
WTContainer cnt1)
|
static String |
getBaseIconImage(WTPart part)
|
static Vector |
getFolderData(EPMWorkspace workspace)
This method returns objects containing the folder data from the workspace. |
static String[] |
getFolderDataforParts(EPMWorkspace workspace,
WTPart[] parts)
This method gets Location for Parts from the Vector |
static WTPart |
getWTPart(String number)
This convenience method finds a part based on its unique number using the latest config spec |
static WTPart |
getWTPart(String number,
ConfigSpec configSpec)
This method finds a part based on its unique number and the config spec. |
static WTPart |
getWTPart(String partNumber,
ConfigSpec configSpec,
WTContainer container,
String custClassString,
EPMDocument document,
boolean onlyInOrgOfDoc)
|
static WTPart |
getWTPartInContainers(String partNumber,
ConfigSpec configSpec,
WTContainerRef[] containersToSearchRefs,
boolean isPDMLinkContainer,
boolean isPJLContainer,
String custClassString,
EPMDocument document,
boolean onlyInOrgOfDoc)
|
private static QueryResult |
reArrangeMasters(QueryResult partMasters,
WTContainer container)
|
static void |
removePartsFromFolderData(EPMWorkspace workspace,
WTPart[] parts)
This method removes Parts from the Vector (containing objects which have been moved to itended folders) and then persists the modified Vector. |
static void |
saveFolderData(EPMWorkspace workspace,
Vector newPartFolderData)
This method saves the new part's folder information with wokspace. |
static QueryResult |
searchWTParts(String searchName,
String searchNumber,
String searchLocation,
boolean onlyLatest)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String WORKSPACE_NEWPARTFOLDERDATA
private static final String EPM_APP_TYPE
private static final boolean VERBOSE
Constructor Detail |
public WTPartUtilities()
Method Detail |
public static QueryResult searchWTParts(String searchName, String searchNumber, String searchLocation, boolean onlyLatest) throws QueryException, WTException
QueryException
WTException
public static WTPart createNewPart(String a_PartNumber, String a_PartName, PartType a_PartType, String a_folderOID, EPMWorkspace a_CurrentWS, WTOrganization org, WTContainer container, Source a_source, QuantityUnit a_defaultUnits) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static WTPart createNewPart(String a_PartNumber, String a_PartName, PartType a_PartType, String a_folderOID, EPMWorkspace a_CurrentWS, WTOrganization org, WTContainer container, Source a_source, QuantityUnit a_defaultUnits, boolean deferSaving) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static boolean doesPartExist(String partNumber) throws WTException
WTException
public static boolean doesPartExist(String partNumber, WTContainer cnt1) throws WTException
WTException
public static String getBaseIconImage(WTPart part)
public static void saveFolderData(EPMWorkspace workspace, Vector newPartFolderData) throws WTPropertyVetoException, WTException
WTException
- ,wt.util.WTPropertyVetoException
WTPropertyVetoException
public static Vector getFolderData(EPMWorkspace workspace) throws WTException
WTException
public static void removePartsFromFolderData(EPMWorkspace workspace, WTPart[] parts) throws WTException, WTPropertyVetoException
wt.util.WTException,
- wt.util.WTPropertyVetoException
WTException
WTPropertyVetoException
private static void addPartsToFolderData(EPMWorkspace workspace, WTPart[] parts, String[] folderOIDs) throws WTException, WTPropertyVetoException
WTException
- ,wt.util.WTPropertyVetoException
WTPropertyVetoException
public static String[] getFolderDataforParts(EPMWorkspace workspace, WTPart[] parts)
wt.util.WTException,
- wt.util.WTPropertyVetoExceptionpublic static WTPart getWTPart(String number) throws WTException
number
- The number of the part to be searched.
WTException
public static WTPart getWTPart(String number, ConfigSpec configSpec) throws WTException
number
- The number of the part to be searched.configSpec
- The config spec to be used for filtering the part iterations
WTException
public static WTPart getWTPartInContainers(String partNumber, ConfigSpec configSpec, WTContainerRef[] containersToSearchRefs, boolean isPDMLinkContainer, boolean isPJLContainer, String custClassString, EPMDocument document, boolean onlyInOrgOfDoc) throws WTException
WTException
public static WTPart getWTPart(String partNumber, ConfigSpec configSpec, WTContainer container, String custClassString, EPMDocument document, boolean onlyInOrgOfDoc) throws WTException
WTException
private static QueryResult reArrangeMasters(QueryResult partMasters, WTContainer container)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |