Class ESIStandardCCUsageToEPMDDLinkRenderer

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

public class ESIStandardCCUsageToEPMDDLinkRenderer extends BasicESIRenderer


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
      WTException
    • adjustElement

      public com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, ObjectToObjectLink sccResourceLink, EPMDocument resourceMaster, 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(ObjectToObjectLink link, Collection<MPMStandardCCUsageToEPMDDLink>[] sccUsageToEPMDDLinks, 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.
    • getSccToResourceLinks

      protected Collection<MPMStandardCCUsageToEPMDDLink>[] getSccToResourceLinks()
      Gets the value of the attribute: components.

      Supported API: true
      Returns:
      Collection[]
    • getRenderedDocuments

      public Set<EPMDocument> getRenderedDocuments()
      Returns the set MPMWorkCenters rendered.

      Supported API: true
      Returns:
      the set MPMWorkCenters rendered.