Class ESIOperationWorkCenterRenderer

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

public class ESIOperationWorkCenterRenderer extends BasicESIRenderer
Renders com.ptc.windchill.mpml.processplan.operation.MPMOperationToWorkCenterLink objects.

Supported API: true

Extendable: true
  • Method Details

    • getTargets

      protected Collection<ESITargetAssociation> getTargets()
      Gets the value of the attribute: targets.

      Supported API: true
      Returns:
      Collection
    • getWorkcenters

      protected Collection[] getWorkcenters()
      Gets the value of the attribute: workcenters.

      Supported API: true
      Returns:
      Collection[]
    • getRoot

      protected MPMOperation getRoot()
      Gets the value of the attribute: root.

      Supported API: true
      Returns:
      MPMOperation
    • getWcAdapter

      @Deprecated protected String getWcAdapter()
      Deprecated.
      Use BasicESIRenderer.getAdapterName() instead.

      Supported API: true
      Returns the value of the attribute adapterName. This attribute holds the name of the Windchill Adapter instance where the Query-Objects webject is to be executed.
      Returns:
      The value stored in the field adapterName.
    • buildGroups

      public void buildGroups() throws ESIRendererException
      Populates the associated VdbBuilder instance with the response data for Operation to WorkCenter Links.

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

      public void setData(MPMOperation root, Collection[] workCenterLinks, Collection<ESITargetAssociation> targetAssociations, String auth, String wcAdapter) throws WTException
      Set this renderer's member variables that are necessary for rendering operation to work center links.

      Supported API: true
      Parameters:
      root - - Object (operation) for which to process operation to work center links.
      workCenterLinks - - Array of collections of added, deleted, changed and unchanged operation to work center links.
      targetAssociations - - Collection of target associations.
      auth - - Info*Engine authentication information to use when executing a query task.
      wcAdapter - - Windchill adapter instance name to use when executing a webject.
      Throws:
      WTException - if any of the invoked methods throws this exception.
    • 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
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.
    • adjustElement

      public com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, MPMOperationToWorkCenterLink workCenterLink, MPMWorkCenterMaster workCenter, Collection targets) throws ESIRendererException
      Allow subclasses to fix the contents of an element before it's 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.
      workCenterLink - - Operation to WorkCenter link.
      workCenter - - Mater of the WorkCenter object associated with input operation to workcenter link.
      targets - - Collection of ESITarget objects.
      Returns:
      Info*Engine element containing the response data of input operation to workcenter link.
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.
    • getRenderedWorkCenters

      public Set<MPMWorkCenter> getRenderedWorkCenters()
      Returns the set MPMWorkCenters rendered.

      Supported API: true
      Returns:
      the set MPMWorkCenters rendered.