|
|||||||||
| 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.CreateObjectFormProcessor
public class CreateObjectFormProcessor
A form processor that generically creates one or more
Persistables from the form data submitted in an HTML wizard and stores them in the database.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
protected Object |
createItemInstance(NmCommandBean clientData,
ObjectBean objBean,
FormResult result)
Creates an instance of the object represented by the form data in the given ObjectBean and validates the attribute values submitted for it. |
FormResult |
doOperation(NmCommandBean clientData,
List<ObjectBean> objectBeans)
Stores the object(s) contained in the "object" attribute(s) of the given ObjectBeans in the database. |
FormResult |
preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeans)
Creates one object instance for each given ObjectBean and sets their attributes. |
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 of the request form data and other wizard context information. Input.objectBeans - - The "object" attribute of these beans contain the object instances to be stored. One
bean per object. Input.
WTException
public FormResult preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeans)
throws WTException
preProcess in interface ObjectFormProcessorpreProcess in class com.ptc.core.components.forms.DefaultObjectFormProcessorclientData - Contains request form data and other context information. Input. Required.objectBeans - Contain the form data for each object to be created. 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
protected Object createItemInstance(NmCommandBean clientData,
ObjectBean objBean,
FormResult result)
throws WTException
clientData - Contains form data and other context information. Input.objBean - - Contains the form data for one object to be created. On exit, the
"object" attribute of the bean will be set to the created object instance.
Input and output.result - The return status of the method. Output, but must be instantiated on entry.
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 FormResult to which the action info should be added. Input and output. Required.clientData - - Contains all the form data and other wizard context information. Input. Required.objectBeans - - Contain the object(s) that were created (if successful).
One bean per object. Input. Required.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||