Class ESIPlantLocalizationLinkRenderer

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

public class ESIPlantLocalizationLinkRenderer extends BasicESIRenderer
Renders the output of MPMPlantLocalizationLink (i.e. <PlantLocalizationLink> </PlantLocalizationLink>) in ESI Response.

Supported API: true

Extendable: true
  • Method Details

    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Renders MPMPlantLocalizationLink objects that are associated with the input operation as added objects always. Invokes the API getMPMPlantLocalizationLinks() to fetch localization links and corresponding work centers.

      Supported API: true
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException
      See Also:
    • adjustElement

      protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String groupName, MPMPlantLocalizationLink link, MPMOperation operation, MPMWorkCenter workCenter, Collection<ESITarget> targets)
      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.
      groupName - - The logical name of the group to which the element will be added.
      link - - Link between operation master and work center's iteration.
      operation - - operation whose master is RoleB for the input plant localization link.
      workCenter - - Work center which is RoleA for the input link.
      targets - - Collection targets.
      Returns:
      Updated element.
    • 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(MPMOperation operation, Collection<ESITargetAssociation> targetAssocs, String auth, String wcAdapter) throws ESIRendererException
      Set this renderer's member variables that are necessary for rendering plant localization links i.e. MPMPlantLocalizationLink.

      Supported API: true
      Parameters:
      operation - - Operation whose localization links need to be rendered.
      targetAssocs - - Collection of target assignments with the input operation.
      auth - - Info*Engine authentication information to be used when invoking a query task.
      wcAdapter - - Windchill adapter instance name to be used when executing a info*engine webject.
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.