|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.core.components.forms.DefaultEditFormProcessor
public class DefaultEditFormProcessor
A form processor that generically updates one or more Persistables
in the database from the form data submitted in an HTML wizard.
This class should only be used for updating nonWorkable objects.
Use EditWorkableFormProcessor for Workable objects.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
FormResult |
doOperation(NmCommandBean clientData,
List<ObjectBean> objectBeans)
Updates the objects contained in the "object" attributes of the given ObjectBean(s) in the database. |
FormResult |
preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeans)
Retrieves the objects being edited from the database and updates or sets their attributes from the form data. |
FormResult |
setResultNextAction(FormResult result,
NmCommandBean clientData,
List<ObjectBean> objectBeans)
Sets the "nextAction" attribute on the given FormResult based on the processing status. |
| Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor |
|---|
continueProcessing, getDelegates, mergeIntermediateResult, postProcess, postTransactionProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public FormResult doOperation(NmCommandBean clientData,
List<ObjectBean> objectBeans)
throws WTException
doOperation in interface ObjectFormProcessordoOperation in class com.ptc.core.components.forms.DefaultObjectFormProcessorclientData - - Contains all the request form data and other wizard context information. Input. Required.objectBeans - The "object" attribute of these beans contain the object instances to be updated. One
bean per object. Input. Required.
WTException
public FormResult preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeans)
throws WTException
preProcess in interface ObjectFormProcessorpreProcess in class com.ptc.core.components.forms.DefaultObjectFormProcessorclientData - - Contains all the request form data and other wizard context information. Input. Required.objectBeans - - On input, contain the form data for each object being edited. One bean per object.
On exit, the "object" attribute of each ObjectBean is set to the
object instance created from the form data. Input and output. Required.
WTException
public FormResult setResultNextAction(FormResult result,
NmCommandBean clientData,
List<ObjectBean> objectBeans)
throws WTException
setResultNextAction in interface ObjectFormProcessorsetResultNextAction in class com.ptc.core.components.forms.DefaultObjectFormProcessorresult - - The form result to update with the next action. Input and output. Required.clientData - - Contains request form data and other wizard context information. Input. Required.objectBeans - - Contain the objects that were updated (if success). Input. Required.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||