Class ESIQualityLinkRenderer

java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.pmi.ESIQualityLinkRenderer
All Implemented Interfaces:
ESIRenderer

public class ESIQualityLinkRenderer extends BasicESIRenderer
Renders the links MPMPartQualityLink, MPMProcessQualityLink and MPMOperationQualityLink

Supported API: true

Extendable: true
  • Method Details

    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Renders and populates VDB instance with Quality Links object. Delegates the work of difference management to the method buildAGroup(String, Map) to build these groups.
      Supported API: true

      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException
    • adjustElement

      public com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, ObjectToObjectLink qualityLink, MPMControlCharacteristic controlCharacteristic, Collection targets) throws ESIRendererException
      Allow subclasses to fix the contents of quality link element before it is added to the output group(s). Default behavior is to return the argument.

      Supported API: true

      Parameters:
      elem - - The element to be updated.
      group - - The logical name of the group to which the element will be added.
      qualityLink - - Quality link.
      controlCharacteristic - - Control characteristic.
      targets - - Collection of ESITarget objects.
      Returns:
      Element
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.
    • validate

      protected void validate() throws ESIRendererException
      Validates the attributes which are required for this renderer to execute properly.
      Supported API: true

      Specified by:
      validate in class BasicESIRenderer
      Throws:
      ESIRendererException
    • setData

      public void setData(Persistable root, Map[] qualityLinksToCCMaps, String auth, String wcAdapter, VdbBuilder builder) throws WTException
      Sets the state of this renderer appropriately.

      Supported API: true

      Parameters:
      root - - A persistable object whose associated Quality Links have to be rendered in to the response. This object can be a Part, process plan or operation.
      qualityLinksToCCMaps - - An array of maps whose keys are the quality links and the values are corresponding control characteristics. index 0 - added quality links, 1- deleted, 2- changed, 3- unchanged and corresponding control characteristics.
      auth - - Authentication to be used while fetching the corresponding info engine elements of the control characteristics to be rendered.
      wcAdapter - - Name of the Windchill adapter instance to use when executing a webject.
      builder - - VdbBuilder instance to be populated with the response data.
      Throws:
      WTException - if any of the invoked methods throws this exception.