Class ESIProcessPlanLocalizationLinkRenderer

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

public class ESIProcessPlanLocalizationLinkRenderer extends BasicESIRenderer
Renders the output of MPMProcessPlanLocalizationLink (i.e. <ProcessPlanLocalizationLink> </ProcessPlanLocalizationLink>) in ESI Response.

Supported API: true

Extendable: true
  • Method Details

    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Renders MPMProcessPlanLocalizationLink objects that are associated with the input process plan as added objects always. Invokes the API getMPMProcessPlanLocalizationLinks() 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, MPMProcessPlanLocalizationLink link, MPMProcessPlan processPlan, 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 process plan master and work center's iteration.
      processPlan - - process plan whose master is RoleB for the input process plan 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(MPMProcessPlan processPlan, Collection<ESITargetAssociation> targetAssocs, String auth, String wcAdapter) throws ESIRendererException
      Set this renderer's member variables that are necessary for rendering process plan localization links i.e. MPMProcessPlanLocalizationLink.

      Supported API: true
      Parameters:
      processPlan - - Process plan whose localization links need to be rendered.
      targetAssocs - - Collection of target assignments with the input process plan.
      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.
    • validateProcessPlanLocalizationLinkAssociation

      protected void validateProcessPlanLocalizationLinkAssociation(Map<MPMProcessPlanLocalizationLink,MPMWorkCenter> localizationLinkToWCMap) throws ESIRendererException
      Validates process plan localization link association. Override this API to have custom logic for validation or to ignore validation.

      Supported API: true
      Parameters:
      localizationLinkToWCMap - - A Map containing MPMProcessPlanLocalizationLink as a key and corresponding MPMWorkCenter object as the value.
      Throws:
      ESIRendererException - - When validation fails.