Class ChangeLinkAttributeProcessor
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.ChangeLinkAttributeProcessor
- All Implemented Interfaces:
ObjectFormProcessor
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
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
delegates, DO_OPERATION, overallResult, POST_PROCESS, POST_TRANSACTION_PROCESS, PRE_PROCESS -
Method Summary
Modifier and TypeMethodDescriptiondoOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) Given a command bean gets the selected dispositions and the selected objects.protected StringGenerates a json array of selected oids.protected StringgetJavascript(NmCommandBean clientData) Given the client data generates the java script to process the selected values.protected StringgetObjectArray(WTList list) Generates a json array of selected oids from the given list.protected StringGenerates a json array of json objects that contain the name of the disposition and the selected value.protected StringgetSelectedValues(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.Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, execute, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, isUseObjectReference, mergeIntermediateResult, postProcess, postTransactionProcess, preProcess, processDelegates, removeTempFiles, setDelegates, setRefreshInfo, setResultNextAction, setUseObjectReference
-
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:
doOperationin interfaceObjectFormProcessor- Overrides:
doOperationin classDefaultObjectFormProcessor- 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
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
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
Generates a json array of selected oids.
Supported API: true- Parameters:
cb-- Returns:
- json string
- Throws:
WTException
-
getSelectedValues
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
Generates a json array of selected oids from the given list.
Supported API: true- Parameters:
list-- Returns:
- json string
- Throws:
WTException
-