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

public class StandardPartDocService extends StandardManager implements PartDocService, Serializable
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 Details

    • getAssociatedReferenceDocuments

      public WTKeyedMap getAssociatedReferenceDocuments(WTCollection parts) throws WTException
      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:
      getAssociatedReferenceDocuments in interface PartDocService
      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

      public WTKeyedMap getAssociatedCADDocuments(WTCollection parts) throws WTException
      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:
      getAssociatedCADDocuments in interface PartDocService
      Parameters:
      parts -
      Returns:
      WTKeyedMap
      Throws:
      WTException
    • getAssociatedDescribeDocuments

      public WTCollection getAssociatedDescribeDocuments(WTProductInstance2 partInstance) throws WTException
      Returns a collection of WTDocuments associated as describe documents to the specified part instance.

      Supported API: true
      Specified by:
      getAssociatedDescribeDocuments in interface PartDocService
      Parameters:
      partInstance -
      Returns:
      WTCollection
      Throws:
      WTException
    • getAssociatedReferenceDocuments

      public WTCollection getAssociatedReferenceDocuments(WTProductInstance2 partInstance) throws WTException
      Returns a collection of WTDocumentMasters associated as reference documents to the specified part instance.

      Supported API: true
      Specified by:
      getAssociatedReferenceDocuments in interface PartDocService
      Parameters:
      partInstance -
      Returns:
      WTCollection
      Throws:
      WTException