Package wt.part
Interface WTPartService
- All Known Implementing Classes:
StandardWTPartService
This service interface defines the API for managing
Supported API: true
Extendable: false
WTParts,
WTPartMasters, WTPartConfigSpecs and hierarchies of these
parts. There is no API for managing Part, PartMaster
and PartVersion so if you implement your own parts that
implement these interfaces but are not subclassed from WTPart,
WTPartMaster and WTPartConfigSpec, then you
will also need to create your own service to manage them.
- Cookie: None
- Helper:
WTPartHelperhas no helper methods - Service implementation:
StandardWTPartServicehas listeners - ServiceEvent: None
- ServiceException:
PartException
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignView(WTPart part, String a_view) Assign view to the specified part.wt.part.CreateUsesOccurrencesResultcreateUsesOccurrences(WTCollection usageLinks) Create uses occurrences for the supplied usage links.wt.part.CreateUsesOccurrencesResultcreateUsesOccurrences(WTPart seedPart, NavigationCriteria navigationCriteria) Create uses occurrences for the part structures rooted at the seedParts.Return a WTSet of the part objects passed in that play the used-by role in a WTPartUsageLink; that is, this method returns those parts that use other parts.Returns the WTPartConfigSpec for the current principal.getAlternateForWTPartMasters(WTPartMaster partMaster) Retrieves the alternates for the given part master.getAlternatesWTPartMasters(WTPartMaster partMaster) Retrieves the alternates related to the given part master.Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by.getDescribedByDocuments(WTPart part, boolean onlyOtherSides) Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by.Return a QueryResult of WTDocuments that the given WTPart is being described by.getDescribedByWTDocuments(WTPart part, boolean onlyOtherSides) Return a QueryResult of WTDocuments that the given WTPart is being described by.getDescribesWTParts(WTDocument document) Return a QueryResult of WTParts that the given WTDocument describes.getDescribesWTParts(WTDocument document, boolean onlyOtherSides) Return a QueryResult of WTParts that the given WTDocument describes.getExportDate(WTPart part, PartExportTarget target) Get the date when this part iteration was exported to another system - for example, an ERP system.voidgetMultilevelBomCompare(Object part1, ConfigSpec spec1, Object part2, ConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) Deprecated.voidgetMultilevelBomCompare(WTPartMaster part1, WTPartConfigSpec spec1, WTPartMaster part2, WTPartConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) Deprecated.voidgetMultilevelBomCompare(WTPartMaster part1, ConfigSpec spec1, WTPartMaster part2, ConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) Deprecated.voidgetMultilevelWhereUsed(WTPart part, WTPartConfigSpec spec, wt.visitor.Navigator navigator, MultilevelWhereUsedVisitor visitor) Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions.voidgetMultilevelWhereUsed(WTPart part, wt.visitor.Navigator navigator, MultilevelWhereUsedVisitor visitor) Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions.getPartUsesOccurrence(PartPathOccurrence usedByPathOccurrence, WTProductConfiguration configuration) Returns thePartUsesOccurrenceassociated with the givenPartPathOccurrencefor the as used in the givenWTProductConfiguration.Deprecated.Use getAssociatedReferenceDocuments(WTCollection parts) from wt.part.PartDocService instead.getSubstituteForWTPartUsageLinks(WTPartMaster partMaster) Navigates WTPartSubstituteLinks along the SubstituteFor role.getSubstitutesWTPartMasters(WTPartUsageLink usageLink) Retrieves the substitutes related to the given part master.getUsedByWTParts(WTPartMaster partMaster) Navigates the WTPartUsageLink along the usedBy role, returning a QueryResult of WTParts.getUsedByWTParts(WTPartMaster partMaster, boolean includeTerminalVersions) Navigates the WTPartUsageLink along the usedBy role, returning a QueryResult of WTParts.getUsesWTPartMasters(WTPart part) Navigates the WTPartUsageLink along the uses role, returning a QueryResult of WTPartUsageLinks.Persistable[][][]getUsesWTParts(WTList parts, NavigationCriteria navigationCriteria) Navigates from manyused-byparts to theirusespart masters and applies aNavigationCriteriato select the iterations of the uses parts.Persistable[][][]getUsesWTParts(WTList parts, ConfigSpec configSpec) Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts.getUsesWTParts(WTPart part, NavigationCriteria navCriteria) Deprecated.getUsesWTParts(WTPart part, ConfigSpec configSpec) Applies the configSpec to the result of navigating the WTPartUsageLink along the uses role; returns a QueryResult of Persistable[], in which the WTPartUsageLinks are at the 0th position and the corresponding iterations (or master if there is no corresponding iteration) in the 1th position.getUsesWTPartsWithAllOccurrences(WTPart part, NavigationCriteria navCriteria) Deprecated.getUsesWTPartsWithAllOccurrences(WTPart part, NavigationCriteria navCriteria, PartPathOccurrence subPathOccurrence) Deprecated.getUsesWTPartsWithAllOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) getUsesWTPartsWithAllOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) Deprecated.getUsesWTPartsWithAllOccurrences(WTPart part, ConfigSpec configSpec) Deprecated.getUsesWTPartsWithAllOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) Deprecated.Persistable[][][]getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, NavigationCriteria navCriteria) Navigates from manyused-byparts to theirusespart masters and applies aNavigationCriteriato select the iterations of the uses parts.Persistable[][][]getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductConfiguration productConfiguration) Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts.Persistable[][][]getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductInstance2 productInstance) Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts.Persistable[][][]getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, ConfigSpec configSpec) Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts.getUsesWTPartsWithOccurrences(WTPart part, NavigationCriteria navCriteria) Deprecated.getUsesWTPartsWithOccurrences(WTPart part, NavigationCriteria navCriteria, PartPathOccurrence subPathOccurrence) Deprecated.getUsesWTPartsWithOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) getUsesWTPartsWithOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) Deprecated.getUsesWTPartsWithOccurrences(WTPart part, ConfigSpec configSpec) Deprecated.getUsesWTPartsWithOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) Deprecated.booleanisAnAlternateOf(WTPartMaster partMasterA, WTPartMaster partMasterB) Determines if part master A is an alternate of part master B
Supported API: truebooleanisASubstituteOf(WTPartMaster partMasterA, WTPart parentPart, WTPart childPart) Determines if partMasterA is a substitute of partB
Supported API: truebooleanisViewUpdateable(WTPartMaster partMaster, View oldView, View newView) Check if view is assignable for give WTPartMaster
Supported API: truelatestExport(WTPartMaster master, PartExportTarget target) Returns the most recently iteration of a part master that was exported to another system - for example, an ERP System.Publish the IBA values on the given part to the part master.saveWTPartConfigSpec(WTPartConfigSpec a_PartConfigSpec) Saves the WTPartConfigSpec for the current principal.setExportDate(WTPart part, PartExportTarget target, Timestamp timestamp) Set the date that this part iteration was exported to another system - for example, an ERP system.
-
Method Details
-
publish
Publish the IBA values on the given part to the part master.
Supported API: true- Parameters:
part-- Returns:
- WTPartMaster
- Throws:
WTException
-
getUsesWTParts
Applies the configSpec to the result of navigating the WTPartUsageLink along the uses role; returns a QueryResult of Persistable[], in which the WTPartUsageLinks are at the 0th position and the corresponding iterations (or master if there is no corresponding iteration) in the 1th position. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.configSpec- The ConfigSpec to use to specify the iterations for the masters used.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getUsesWTParts
Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts. Returns a three dimensional array of Persistable where the first dimension is corresponds the the used-by parts passed in. The second dimension corresponds to the part usage links from the used-by part. The third dimension is two elements long where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster if the config spec did not select an iteration of the uses part. This API does not support filtering.
Supported API: true- Parameters:
parts- Ordered list ofused-byparts.configSpec- The config spec to use to select theusespart iterations.- Returns:
- Persistable[][][]
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, ConfigSpec configSpec) throws WTException Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts. Also includes uses and path occurrences along with path occurrence data. The parameterspartsandpathOccurrencesare parallel lists where the part and its corresponding path occurrence are at the same index in the two lists. If a part does not have a path occurrence, then its path occurrence should be null in the list of path occurrences. This method returns a three dimensional array of Persistable where the first dimension is corresponds the the used-by parts passed in. The second dimension corresponds to the part usage links from the used-by part. The third dimension is two elements long where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster if the config spec did not select an iteration of the uses part. This API does not support filtering.
Supported API: true- Parameters:
parts- Ordered list ofused-byparts.pathOccurrences- Ordered list of path occurrences whose order corresponds to the order of the parts.configSpec- The config spec to use to select the uses part iterations.- Returns:
- Persistable[][][]
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductConfiguration productConfiguration) throws WTException Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts. Also includes uses and path occurrences along with path occurrence data. The parameterspartsandpathOccurrencesare parallel lists where the part and its corresponding path occurrence are at the same index in the two lists. If a part does not have a path occurrence, then its path occurrence should be null in the list of path occurrences. This method returns a three dimensional array of Persistable where the first dimension is corresponds the the used-by parts passed in. The second dimension corresponds to the part usage links from the used-by part. The third dimension is two elements long where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster if the config spec did not select an iteration of the uses part. This API does not support filtering.
Supported API: true- Parameters:
parts- Ordered list ofused-byparts.pathOccurrences- Ordered list of path occurrences whose order corresponds to the order of the parts.productConfiguration- The product configuration being navigated. This is used as the config spec and to get the path occurrence data.- Returns:
- Persistable[][][]
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductInstance2 productInstance) throws WTException Navigates from manyused-byparts to theirusespart masters and applies aConfigSpecto select the iterations of the uses parts. Also includes uses and path occurrences along with path occurrence data. The parameterspartsandpathOccurrencesare parallel lists where the part and its corresponding path occurrence are at the same index in the two lists. If a part does not have a path occurrence, then its path occurrence should be null in the list of path occurrences. This method returns a three dimensional array of Persistable where the first dimension is corresponds the the used-by parts passed in. The second dimension corresponds to the part usage links from the used-by part. The third dimension is two elements long where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster if the config spec did not select an iteration of the uses part. This API does not support filtering.
Supported API: true- Parameters:
parts- Ordered list ofused-byparts.pathOccurrences- Ordered list of path occurrences whose order corresponds to the order of the parts.productInstance- The product instance being navigated. This is used as the config spec and to get the path occurrence data.- Returns:
- Persistable[][][]
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
Deprecated.This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.configSpec- The ConfigSpec to use to filter the iterations for the masters used.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
QueryResult getUsesWTPartsWithOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) throws WTException Deprecated.This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.configSpec- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
QueryResult getUsesWTPartsWithOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) throws WTException This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.productConfiguration- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithOccurrences
QueryResult getUsesWTPartsWithOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) throws WTException Deprecated.This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.productInstance- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithAllOccurrences
Deprecated.This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTPart(orWTPartMasterif there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.configSpec- The ConfigSpec to use to select the iterations for the masters used.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithAllOccurrences
QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) throws WTException Deprecated.This method applies theConfigSpecto the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTPart(orWTPartMasterif there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.configSpec- The ConfigSpec to use to select the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithAllOccurrences
QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) throws WTException This method applies theConfigSpecfrom the product configuration to the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.productConfiguration- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
getUsesWTPartsWithAllOccurrences
QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) throws WTException Deprecated.This method applies theConfigSpecfrom the product instance to the result of navigating theWTPartUsageLinkalong the uses role; returns aQueryResultofPersistable[], in which theWTPartUsageLinks are at position 0 (and their occurrenceVector is populated with occurrences), the correspondingWTParts (orWTPartMasters if there is no corresponding part) in position 1. This API does not support filtering.
Supported API: true- Parameters:
part- The WTPart to navigate.productInstance- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence- APartPathOccurrencethat is used to find the relevantPathOccurrenceobjects that should be returned.- Returns:
- QueryResult
- Throws:
WTException
-
createUsesOccurrences
wt.part.CreateUsesOccurrencesResult createUsesOccurrences(WTCollection usageLinks) throws WTException Create uses occurrences for the supplied usage links. The number of occurrences created for a given usage link is the the same as the quantity specified in the usage link.
Note that the occurrences are persisted in the database in batches. The API does not create a transaction to avoid the possibility of database running out of transaction space (because this API may create very large number of objects). Since no transaction is used, in a rare case (very unlikely), the API may end up persisting a few batches and then fail while persisting a later batch.
- Filter out the usage links for which the unit is not each
- Filter out the usage links for which the user does not have modify access for the role A part
- Filter out the usage links that are already built (use cadSynchnonized attribute on link)
- Filter out the usage links for which at least one persisted occurrence exists in the system
- Create occurrences for the rest of the usage links. The newly created occurrences will have no name,
no reference designator, build status will be To Be Built, quantity of 1, location is set to 0 for all coordinates
Supported API: true- Parameters:
usageLinks-- Returns:
- Throws:
WTException
-
getUsesWTPartMasters
Navigates the WTPartUsageLink along the uses role, returning a QueryResult of WTPartUsageLinks.
Supported API: true- Parameters:
part- The part to navigate.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
filterPartsWithChildren
Return a WTSet of the part objects passed in that play the used-by role in a WTPartUsageLink; that is, this method returns those parts that use other parts.
Supported API: true- Parameters:
parts- The colllection of WTParts to check which ones use other parts.- Returns:
- WTSet
- Throws:
WTException
-
getPartUsesOccurrence
PartUsesOccurrence getPartUsesOccurrence(PartPathOccurrence usedByPathOccurrence, WTProductConfiguration configuration) throws WTException Returns thePartUsesOccurrenceassociated with the givenPartPathOccurrencefor the as used in the givenWTProductConfiguration.
Supported API: true- Parameters:
usedByPathOccurrence-configuration-- Returns:
- PartUsesOccurrence
- Throws:
WTException
-
getUsedByWTParts
Navigates the WTPartUsageLink along the usedBy role, returning a QueryResult of WTParts. Note that only the latest iteration for any of the part versions is returned.
Supported API: true- Parameters:
partMaster- The part master to navigate to find those parts that use it.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getUsedByWTParts
QueryResult getUsedByWTParts(WTPartMaster partMaster, boolean includeTerminalVersions) throws WTException Navigates the WTPartUsageLink along the usedBy role, returning a QueryResult of WTParts. Note that only the latest iteration for any of the part versions is returned.
Supported API: true- Parameters:
partMaster- The part master to navigate to find those parts that use it.includeTerminalVersions- Whether or not to include terminal versions in the result.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getReferencesWTDocumentMasters
Deprecated.Use getAssociatedReferenceDocuments(WTCollection parts) from wt.part.PartDocService instead.Returns the WTDocumentMasters that are referenced by this WTPart.
Supported API: true- Parameters:
part- The part to get the referenced documents for.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribedByDocuments
Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by.
Supported API: true- Parameters:
part-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribedByDocuments
Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by. If the onlyOtherSides parameter is false, the QueryResult includes a set of WTPart DescribeLinks that have references to the Documents.
Supported API: true- Parameters:
part-onlyOtherSides-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribedByWTDocuments
Return a QueryResult of WTDocuments that the given WTPart is being described by.
Supported API: true- Parameters:
part-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribedByWTDocuments
Return a QueryResult of WTDocuments that the given WTPart is being described by. If the onlyOtherSides parameter is false, the QueryResult includes a set of WTPart DescribeLinks that have references to the WTDocuments.
Supported API: true- Parameters:
part-onlyOtherSides-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribesWTParts
Return a QueryResult of WTParts that the given WTDocument describes.
Supported API: true- Parameters:
document-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getDescribesWTParts
Return a QueryResult of WTParts that the given WTDocument describes. If the onlyOtherSides parameter is false, the QueryResult includes a set of WTPartDescribeLinks that have references to the WTParts.
Supported API: true- Parameters:
document-onlyOtherSides-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getAlternatesWTPartMasters
Retrieves the alternates related to the given part master.
Supported API: true- Parameters:
partMaster-- Returns:
- QueryResult of alternate WTPartMasters
- Throws:
WTException- See Also:
-
getAlternateForWTPartMasters
Retrieves the alternates for the given part master.
Supported API: true- Parameters:
partMaster-- Returns:
- QueryResult of WTPartMasters for which partMaster is an alternate
- Throws:
WTException- See Also:
-
isAnAlternateOf
Determines if part master A is an alternate of part master B
Supported API: true- Parameters:
partMasterA-partMasterB-- Returns:
- true if part master A is an alternate of part master B; false otherwise
- Throws:
WTException
-
getSubstitutesWTPartMasters
Retrieves the substitutes related to the given part master.
Supported API: true- Parameters:
usageLink- WTPartUsageLink for which substitutes are desired- Returns:
- QueryResult of substitute WTPartMasters
- Throws:
WTException- See Also:
-
getSubstituteForWTPartUsageLinks
Navigates WTPartSubstituteLinks along the SubstituteFor role.
Supported API: true- Parameters:
partMaster-- Returns:
- QueryResult of WTPartUsageLinks for which partMaster is a substitute part
- Throws:
WTException- See Also:
-
isASubstituteOf
boolean isASubstituteOf(WTPartMaster partMasterA, WTPart parentPart, WTPart childPart) throws WTException Determines if partMasterA is a substitute of partB
Supported API: true- Parameters:
partMasterA- WTPartMaster which would be a substitute PartparentPart- RoleA of link for which Substitute will be fetched.childPart- RoleB of link for which Substitute will be fetched.- Returns:
- true if part master A is a substitute of part B; false otherwise
- Throws:
WTException- See Also:
-
findWTPartConfigSpec
Returns the WTPartConfigSpec for the current principal. If one does not exist, a null value is returned.
Supported API: true- Returns:
- WTPartConfigSpec
- Throws:
WTException
-
saveWTPartConfigSpec
Saves the WTPartConfigSpec for the current principal. If one already exists, it is modified by applying the current values. If the supplied value is null and the current principal has a stored config spec, it is deleted.
Supported API: true- Parameters:
a_PartConfigSpec- The WTPartConfigSpec to save.- Returns:
- WTPartConfigSpec
- Throws:
WTException
-
setExportDate
Timestamp setExportDate(WTPart part, PartExportTarget target, Timestamp timestamp) throws WTException Set the date that this part iteration was exported to another system - for example, an ERP system. It returns the updated WTPart.
Supported API: true- Parameters:
part- The part iteration being exported to another system.target- The name of the target where the part was exported.timestamp- A timestamp specifying when the part was exported to another system. If null, the export date is set to the current time and date.- Returns:
- Timestamp
- Throws:
WTException
-
getExportDate
Get the date when this part iteration was exported to another system - for example, an ERP system. Returns null if version had never been exported to the given system.
Supported API: true- Parameters:
part- The part iteration that was exported to another system.target- The name of the target where the part had been exported.- Returns:
- Timestamp
- Throws:
WTException
-
latestExport
Returns the most recently iteration of a part master that was exported to another system - for example, an ERP System. Returns null if no iterations were ever exported to the given system.
Supported API: true- Parameters:
master- The part master.target- The name of the target where the part had been exported.- Returns:
- WTPart
- Throws:
WTException
-
getMultilevelBomCompare
void getMultilevelBomCompare(WTPartMaster part1, WTPartConfigSpec spec1, WTPartMaster part2, WTPartConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException Deprecated.Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. The comparison will only go maxDepth levels deep. The result is a string of XML showing the differences and any product structure needed to show where the differences occurred. This method delegates much of its responsibility. For customization this method uses a MultilevelBomCompareVisitor.
Supported API: true- Parameters:
part1- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1- The config spec being used to navigate the part structure of part1.part2- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2- The config spec being used to navigate the part structure of part2.maxDepth- The maximum number of levels down in the part structure to navigate as the comparison is done.aVisitor- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors.MultilevelBomCompareVisitoris the reference implementation supplied out-of-the-box.- Throws:
WTExceptionSAXException- See Also:
-
getMultilevelBomCompare
void getMultilevelBomCompare(WTPartMaster part1, ConfigSpec spec1, WTPartMaster part2, ConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException Deprecated.Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. The comparison will only go maxDepth levels deep. The result is a string of XML showing the differences and any product structure needed to show where the differences occurred. This method delegates much of its responsibility. For customization this method uses aMultilevelBomCompareVisitor.
Supported API: true- Parameters:
part1- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1- The config spec being used to navigate the part structure of part1.part2- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2- The config spec being used to navigate the part structure of part2.maxDepth- The maximum number of levels down in the part structure to navigate as the comparison is done.aVisitor- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors.MultilevelBomCompareVisitoris the reference implementation supplied out-of-the-box.- Throws:
WTExceptionSAXException
-
assignView
Assign view to the specified part. Check part iteration and verion if view can be updatable.
Supported API: true- Parameters:
part-a_view-- Throws:
WTExceptionSAXException
-
isViewUpdateable
Check if view is assignable for give WTPartMaster
Supported API: true- Parameters:
partMaster-oldView-newView-- Returns:
- boolean
- Throws:
WTException
-
getMultilevelBomCompare
void getMultilevelBomCompare(Object part1, ConfigSpec spec1, Object part2, ConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException Deprecated.Recursively compares parts used by part1 and part2 using configSpec1 and configSpec2 to select the part versions. The comparison will only go maxDepth levels deep. The result is a string of XML showing the differences and any product structure needed to show where the differences occurred. This method delegates much of its responsibility. For customization this method uses aMultilevelBomCompareVisitor.
Supported API: true- Parameters:
part1- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1- The config spec being used to navigate the part structure of part1.part2- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2- The config spec being used to navigate the part structure of part2.maxDepth- The maximum number of levels down in the part structure to navigate as the comparison is done.aVisitor- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors.MultilevelBomCompareVisitoris the reference implementation supplied out-of-the-box.- Throws:
WTExceptionSAXException
-