Class ESIOperationToPartLinkNewRenderer

java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.processplan.operation.ESIOperationToPartLinkNewRenderer
All Implemented Interfaces:
ESIRenderer

public class ESIOperationToPartLinkNewRenderer extends BasicESIRenderer
This class renders the output of MPMOperationToPartLink (i.e. <OprBomAllocatedPart> </OprBomAllocatedPart>) in ESI response. This is new renderer for MPMOperationToPartLink

Supported API: true

Extendable: true
  • Method Details

    • buildGroups

      public void buildGroups() throws ESIRendererException
      Populates the associated VdbBuilder instance with the response data for operation to part Links. It creates a collection of all the added, changed and unchanged links which is further processed by the ESIOperationRenderer.
      • Calls adjustObjectID().
      • Calls adjustTargets().


      Supported API: true
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.
    • adjustElement

      protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, MPMOperationToPartLink operationToPartLink, Collection<ESITarget> targets) throws ESIRendererException
      Allows subclasses to fix the contents of the input I*E Element before it is added to the output group(s). Default behavior is to return the input Element itself.

      Supported API: true
      Parameters:
      elem - - Input I*E Element to be updated.
      group - - Logical name of the group to which the Element will be added.
      operationToPartLink - - Operation to part link that is represented by the input Element.
      targets - - Collection of ESITarget objects.
      Returns:
      Updated Element.
      Throws:
      ESIRendererException
    • validate

      protected void validate() throws ESIRendererException
      Force all subclasses to implement the method. The concrete method is expected to examine the attributes of the object and throw an exception if they are not set properly.

      Supported API: true
      Specified by:
      validate in class BasicESIRenderer
    • setData

      public void setData(Collection<ESITargetAssociation> tgtAssociations, Collection<MPMOperationToPartLink>[] operationToPartLinks, Map<MPMOperationToPartLink,com.ptc.windchill.esi.mpml.OperationToPartLinkInfo> linkToInfo, String auth, String apadter) throws WTException
      Set data mention in argument on the renderer before it is called.

      Supported API: true
      Parameters:
      tgtAssociations - Collection of ESITargetAssociation
      operationToPartLinks - Collection array[4] of MPMOperationToPartLink
      linkToInfo - Map of MPMOperationToPartLink vs OperationToPartLinkInfo
      auth - Authentication
      apadter - Adapter
      Throws:
      WTException