Class ChangeLinkAttributeProcessor

java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.ChangeLinkAttributeProcessor
All Implemented Interfaces:
ObjectFormProcessor

public class ChangeLinkAttributeProcessor extends DefaultObjectFormProcessor
Processes the selected values from the link attribute picker and generates java script to update the selected objects in the table.

Supported API: true

Extendable: true
  • Method Details

    • doOperation

      public FormResult doOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException
      Given a command bean gets the selected dispositions and the selected objects. Then generates javascript to update the disposition values of the select objects.

      Supported API: true
      Specified by:
      doOperation in interface ObjectFormProcessor
      Overrides:
      doOperation in class DefaultObjectFormProcessor
      Parameters:
      clientData - - Contains all the request form data and other wizard context information. Input.
      objectBeans - - Contain the form data for each target object of the wizard. One bean per object. Input.
      Returns:
      FormResult - the result of this method
      Throws:
      WTException
    • getJavascript

      protected String getJavascript(NmCommandBean clientData) throws WTException
      Given the client data generates the java script to process the selected values. The default generated java script is to call "ptcChgLAH.processSelection(dispositions, dispositionObjs)".

      Supported API: true
      Parameters:
      clientData -
      Returns:
      java script string
      Throws:
      WTException
    • getSelectedDispostionValues

      protected String getSelectedDispostionValues(NmCommandBean cb)
      Generates a json array of json objects that contain the name of the disposition and the selected value.

      Supported API: true
      Parameters:
      cb -
      Returns:
      json string
    • getDispositionSelectedObjects

      protected String getDispositionSelectedObjects(NmCommandBean cb) throws WTException
      Generates a json array of selected oids.

      Supported API: true
      Parameters:
      cb -
      Returns:
      json string
      Throws:
      WTException
    • getSelectedValues

      protected String getSelectedValues(Map<?,?> inputMap, NmCommandBean cb)
      Generates a json array of json objects that contain the key and the value for each item in the given inputMap.

      Supported API: true
      Parameters:
      inputMap -
      cb - form data
      Returns:
      json string
    • getObjectArray

      protected String getObjectArray(WTList list) throws WTException
      Generates a json array of selected oids from the given list.

      Supported API: true
      Parameters:
      list -
      Returns:
      json string
      Throws:
      WTException