Package com.ptc.windchill.esi.forms
Class CreateDistributionTargetFormProcessor
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.core.components.forms.CreateObjectFormProcessor
com.ptc.windchill.esi.forms.CreateDistributionTargetFormProcessor
- All Implemented Interfaces:
ObjectFormProcessor
Create Distribution Target Wizard Form Processor. Processes Wizard data and creates the ESITarget object.
Supported API: true
Extendable: true
Since:
Windchill 10.0
Supported API: true
Extendable: true
Since:
Windchill 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) Fetches the object from the only ObjectBean element in the input list and checks its type.Methods inherited from class com.ptc.core.components.forms.CreateObjectFormProcessor
createItemInstance, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, preProcessMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, mergeIntermediateResult, postProcess, postTransactionProcess, processDelegates, setResultNextAction
-
Method Details
-
doOperation
public FormResult doOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException Fetches the object from the only ObjectBean element in the input list and checks its type. If the object is of type ESITarget, the method validates the associated ESI response meta information file (provided the target is active), fetches the processor for the target and saves the target to the database. Performs the relevant pre and post-processing activities before and after saving the target respectively, by invoking certain APIs on the processor. The method does nothing if the input list is empty, or the object in the ObjectBean is of type other than ESITarget.
Supported API: true- Specified by:
doOperationin interfaceObjectFormProcessor- Overrides:
doOperationin classCreateObjectFormProcessor- Parameters:
clientData- - Contains all of the request form data and other wizard context information.objectBeans- - List of ObjectBean elements, each of which holds the object instance to be stored. This method expects the list to contain a single element.- Returns:
- - A FormResult object, with the appropriate status of the operation performed.
- Throws:
WTException- , if any of the invoked methods throws this exception.
-