Package com.ptc.windchill.suma.axl
Interface AXLService
- All Known Implementing Classes:
StandardAXLService
Provides a set of client APIs.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionaddAML(AXLContext context, WTPart oemPart, VendorPart vendorPart, ManufacturerPart manufacturerPart, AXLPreference amlPreference) Adds an AML entry under the following two circumstances: When vendor part is not specified (null), creates a new AML entry with the context, oem part, and manufacturer part.addAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster, AXLPreference avlPreference) Adds an AVL by adding a vendor part to a manufacturer part.addAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster, AXLPreference avlPreference, AXLEntry sourceEntry) Adds an AVL by adding a vendor part to a manufacturer part.addAVL(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart, VendorPart vendorPart, AXLPreference avlPreference) Adds an AVL with the specified context, OEM part, and vendor part.getAML(WTPart oem_part, AXLContext context) Retrieves all AML entries for the specified OEM part under the specified sourcing context.getAVL(WTPart oem_part, AXLContext context, com.ptc.windchill.suma.part.ManufacturerPartMaster mfr_part_master) Retrieves all AVL entries for the specified OEM part , sourcing context, and manufacturer part master.getAXL(WTPart oem_part, AXLContext context) Retrieves all AML/AVL entries for the specified OEM part under the specified sourcing context.getManufacturerParts(AXLContext context, WTPart oemPart) Returns all manufacturer parts for the specified context and OEM part.getSupplierParts(AXLContext context, WTPart oemPart) Returns all supplier parts for the specified context and OEM part.getVendorParts(AXLContext context, WTPart oemPart) Returns all vendor parts for the specified context and OEM part.getVendorParts(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart) Returns all vendor parts that are related to the specified context, OEM part, and manufacturer part.getVendorParts(AXLEntry aml) Returns all vendor parts for the combination of sourcing context, oem part, and manufacturer part as defined in the AML.voidremoveAML(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart) Removes all AXL that are related to the specified OEM part, manufacturer part and context.voidremoveAML(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster) Removes all AXL that are related to the specified OEM part, manufacturer part master and context.voidremoveAVL(AXLContext context, WTPart oemPart, VendorPart vendorPart) Removes a vendor part from the AXL for the specified OEM part and context.voidremoveAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster) Removes a vendor part from the AXL for the specified OEM part and context.voidRemoves a set of AXL entries.
-
Method Details
-
addAML
AXLEntry addAML(AXLContext context, WTPart oemPart, VendorPart vendorPart, ManufacturerPart manufacturerPart, AXLPreference amlPreference) throws WTException Adds an AML entry under the following two circumstances:- When vendor part is not specified (null), creates a new AML entry with the context, oem part, and manufacturer part.
- When vendor part is specified (not null), adds manufacture part to an existing AVL entry that has the context, OEM part, and vendor part.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM partvendorPart- an optional vendor part. If the vendor part is specified, an AVL with the context, OEM part, and vendor part must exist.manufacturerPart- a manufacturer part that is being addedamlPreference- a manufacturer part preference- Throws:
WTException- If there is another entry with the context, OEM part, and manufacturer part.If the vendor part is specified but an attempt to find an existing entry with the context, OEM part, and vendor part has failed.
-
addAVL
AXLEntry addAVL(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart, VendorPart vendorPart, AXLPreference avlPreference) throws WTException Adds an AVL with the specified context, OEM part, and vendor part. The behavior of this method depends upon the optional manufacturer part argument:- When no manufacturer part is specified (null), creates a new AML with the context, OEM part, and manufacturer part.
- When a manufacturer part is specified, either creates a new AXL with the context, OEM part, manufacturer part, and vendor part or modifies an existing AML by adding the vendor part depending on whether AXLs exist with the context, OEM part, and manufacturer part.
Supported API: true- Parameters:
context- an AXLContextoemPart- an OEM partmanufacturerPart- a manufacturer part to which the vendor part is being added.vendorPart- a vendor part to be addedavlPreference- an AVL preference- Throws:
WTException- If another entry with the context, OEM part, and vendor part exists.If the optional manufacturer part is specified but an attempt to find AMLs with the context, OEM part, and manufacturer part has failed.
-
removeAML
void removeAML(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart) throws WTException Removes all AXL that are related to the specified OEM part, manufacturer part and context.
Supported API: true- Parameters:
context- an AXL context.oemPart- an OEM partmanufacturerPart- the manufacturer part being removed from AML- Throws:
WTException
-
removeAML
void removeAML(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster) throws WTException Removes all AXL that are related to the specified OEM part, manufacturer part master and context.
Supported API: true- Parameters:
context- an AXL context.oemPart- an OEM partmanufacturerPartMaster- the manufacturer part master being removed from AML- Throws:
WTException
-
removeAVL
Removes a vendor part from the AXL for the specified OEM part and context. Checks if the matching entry contains a manufacturer part. If it does, also check if this is the only entry that mathces the OEM part and the manufacturer part - if it is, update the record otherwise remove the record.
Supported API: true- Parameters:
context- an AXL context.oemPart- an OEM partvendorPart- the vendor part to be removed from AVL- Throws:
WTException
-
removeAXL
Removes a set of AXL entries. Note that the set of entries must belong to the same OEM part under the same context.
Supported API: true- Parameters:
entries- A collection of AXLEntry- Throws:
WTException
-
getAXL
Retrieves all AML/AVL entries for the specified OEM part under the specified sourcing context.
Supported API: true- Parameters:
oem_part- An OEM part. Cannot be null.context- A sourcing context. Cannot be null.- Returns:
- WTCollection
- Throws:
WTException
-
getAML
Retrieves all AML entries for the specified OEM part under the specified sourcing context. This API removes duplication - for example, if there are multiple entries for the same manufacturer part, only one entry related to that manufacturer part will be returned.
Supported API: true- Parameters:
oem_part- an OEM partcontext- a sourcing context- Returns:
- WTCollection
- Throws:
WTException
-
getAVL
WTCollection getAVL(WTPart oem_part, AXLContext context, com.ptc.windchill.suma.part.ManufacturerPartMaster mfr_part_master) throws WTException Retrieves all AVL entries for the specified OEM part , sourcing context, and manufacturer part master.
Supported API: true- Parameters:
oem_part- an OEM partcontext- a sourcing contextmfr_part_master- a manufacturer part master- Returns:
- WTCollection
- Throws:
WTException
-
getManufacturerParts
Returns all manufacturer parts for the specified context and OEM part. If context is null, returns all related manufacturer parts regardless of sourcing context.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM part- Returns:
- WTCollection a collection of manufacturer parts
- Throws:
WTException
-
getVendorParts
Returns all vendor parts for the specified context and OEM part. If context is null, returns all related vendor parts regardless of sourcing context.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM part- Returns:
- WTCollection a collection of vendor parts
- Throws:
WTException
-
getVendorParts
WTCollection getVendorParts(AXLContext context, WTPart oemPart, ManufacturerPart manufacturerPart) throws WTException Returns all vendor parts that are related to the specified context, OEM part, and manufacturer part. If context is null, returns all related vendor parts regardless of sourcing context.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM partmanufacturerPart- a manufacturer part- Returns:
- a collection of vendor parts that meet the search criteria
- Throws:
WTException
-
getVendorParts
Returns all vendor parts for the combination of sourcing context, oem part, and manufacturer part as defined in the AML.
Supported API: true- Parameters:
aml-- Returns:
- WTCollection
- Throws:
WTException
-
getSupplierParts
Returns all supplier parts for the specified context and OEM part.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM part- Returns:
- a collection of related manufacturer parts and vendor parts
- Throws:
WTException
-
addAVL
AXLEntry addAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster, AXLPreference avlPreference) throws WTException Adds an AVL by adding a vendor part to a manufacturer part. The assumption is that there are AML/AXL exist for the context, OEM part, and manufacturer part. Exception will be thrown otherwise. If the optional manufacturer part is specified, it will attempt to find existing AMLs. It there is one AML without vendor part, the AML will be updated with the vendor part and avl preference info. If there are multiple AXLs exist, a new AXL will be created. Exception will be thrown if nothing is found.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM partmanufacturerPartMaster- a manufacturer part master (optional)vendorPartMaster- a vendor part masteravlPreference- an AVL preference- Returns:
- AXLEntry
- Throws:
WTException
-
addAVL
AXLEntry addAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.ManufacturerPartMaster manufacturerPartMaster, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster, AXLPreference avlPreference, AXLEntry sourceEntry) throws WTException Adds an AVL by adding a vendor part to a manufacturer part. The assumption is that there are AML/AXL exist for the context, OEM part, and manufacturer part. Exception will be thrown otherwise. If the optional manufacturer part is specified, it will attempt to find existing AMLs. It there is one AML without vendor part, the AML will be updated with the vendor part and avl preference info. If there are multiple AXLs exist, a new AXL will be created. Exception will be thrown if nothing is found. Also, client can specify sourceAXLEntryso that the new AXLEntry will be populated with the soft attributes information from the suppliedAXLEntry.
Specifying sourceAXLEntryis useful when you want to have newly created AVL with soft attributes information from already existing AVL. e.g. Saving AVL to another context using "Save As" action.
Supported API: true- Parameters:
context- an AXL contextoemPart- an OEM partmanufacturerPartMaster- a manufacturer part master (optional)vendorPartMaster- a vendor part masteravlPreference- an AVL preferencesourceEntry- Source AXLEntry whose Soft attributes information will populated to the new AXLEntry. If null then creates brand new AXLEntry.- Returns:
- AXLEntry
- Throws:
WTException
-
removeAVL
void removeAVL(AXLContext context, WTPart oemPart, com.ptc.windchill.suma.part.VendorPartMaster vendorPartMaster) throws WTException Removes a vendor part from the AXL for the specified OEM part and context. Checks if the matching entry contains a manufacturer part. If it does, also check if this is the only entry that matches the OEM part and the manufacturer part - if it is, update the record otherwise remove the record.
Supported API: true- Parameters:
context- an AXL context.oemPart- an OEM partvendorPartMaster- the vendor part to be removed from AVL- Throws:
WTException
-