Package wt.part
Class StandardPartDocService
java.lang.Object
wt.services.StandardManager
wt.part.StandardPartDocService
- All Implemented Interfaces:
Serializable,wt.fc._NetFactor,NetFactor,PartDocService,wt.services.Manager
This is a standard implementation of PartDocService, and provides APIs that allow creating, deleting or fetching part
to document associations of different kinds. See the API documentation for more information.
Use the newStandardPartDocService static factory method(s), not the StandardPartDocService
constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: true
Extendable: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionTakes a collection of WTParts and returns a map where the keyset is a collection of the parts passed into the method.getAssociatedDescribeDocuments(WTProductInstance2 partInstance) Returns a collection ofWTDocuments associated as describe documents to the specified part instance.Takes in a collection of WTParts and returns a Map, where the keyset is a collection of the parts passed into the method.getAssociatedReferenceDocuments(WTProductInstance2 partInstance) Returns a collection ofWTDocumentMasters associated as reference documents to the specified part instance.Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType, initialize, performShutdownProcess
-
Method Details
-
getAssociatedReferenceDocuments
Takes in a collection of WTParts and returns a Map, where the keyset is a collection of the parts passed into the method. The values in the Map are WTCollections that contain the associated DocumentVersion (reference document) objects. If a part that is passed in does not have any associated reference documents, it will not be in the returned Map.
Supported API: true- Specified by:
getAssociatedReferenceDocumentsin interfacePartDocService- Parameters:
parts- - A WTCollection of input parts for which to fetch the associated reference documents.- Returns:
- WTKeyedMap - Each key in this Map will be a part that figures in the input collection; each value will be a WTCollection of reference documents associated to the given part.
- Throws:
WTException
-
getAssociatedCADDocuments
Takes a collection of WTParts and returns a map where the keyset is a collection of the parts passed into the method. The values in the map are WTCollections that contain DocumentVersion objects. If a part passed in does not have any associated documents, it will not be in the returned map.
Supported API: true- Specified by:
getAssociatedCADDocumentsin interfacePartDocService- Parameters:
parts-- Returns:
- WTKeyedMap
- Throws:
WTException
-
getAssociatedDescribeDocuments
public WTCollection getAssociatedDescribeDocuments(WTProductInstance2 partInstance) throws WTException Returns a collection ofWTDocuments associated as describe documents to the specified part instance.
Supported API: true- Specified by:
getAssociatedDescribeDocumentsin interfacePartDocService- Parameters:
partInstance-- Returns:
- WTCollection
- Throws:
WTException
-
getAssociatedReferenceDocuments
public WTCollection getAssociatedReferenceDocuments(WTProductInstance2 partInstance) throws WTException Returns a collection ofWTDocumentMasters associated as reference documents to the specified part instance.
Supported API: true- Specified by:
getAssociatedReferenceDocumentsin interfacePartDocService- Parameters:
partInstance-- Returns:
- WTCollection
- Throws:
WTException
-