|
|||||||||
| 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.EditObjectFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
public abstract class EditChangeItemFormProcessor
A class for handling general change management edit wizard processing. This class implements
the preProcess, doOperation, postProcess methods in order to process a transaction for different
change object wizards such as Problem Reports, Variances, Change Requests, Change Notices, and
Change Tasks.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
FormResult |
doOperation(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
Saves the change object that was initialized in the preProcess() method which stored in each ObjectBean
that is in the passed in object bean list. |
protected abstract LocalizableMessage |
getProcessorErrorMessage()
Required when extending EditChangeItemFormProcessor. |
FormResult |
postProcess(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
Post Process using the wizard form data per ObjectBean in the object bean list checks to
see if the if the user chose to submit now. |
FormResult |
preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
Gets and initailizes the change object from the wizard form data. |
protected abstract WTList |
saveChangeItem(WTList changeItems)
Required when extending EditChangeItemFormProcessor. |
FormResult |
setResultNextAction(FormResult result,
NmCommandBean clientData,
List<ObjectBean> objectBeans)
If the Check In button was clicked and processing was successful, returns javascript to open a check in dialog window. |
| Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor |
|---|
continueProcessing, getDelegates, mergeIntermediateResult, postTransactionProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public FormResult preProcess(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
throws WTException
ObjectBean list.
This method then checks to see if the name field for the change object has been modified and stores
the value in a renameNameList.
preProcess in interface ObjectFormProcessorpreProcess in class com.ptc.core.components.forms.EditObjectFormProcessorclientData - The original wizard form data. This in general should not be used to get wizard form
data. The wizard form data should be retrieved from each ObjectBean in the
ObjectBean list that is passed in.objectBeans - The List of object beans that have been initialized with the appropriate wizard from data for
each individual ObjectBean.
WTException - is thrown if initailizing the change object failsEditObjectFormProcessor#preProcess(NmCommandBean, List)}
public FormResult doOperation(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
throws WTException
ObjectBean
that is in the passed in object bean list.
doOperation in interface ObjectFormProcessordoOperation in class com.ptc.core.components.forms.EditObjectFormProcessorclientData - The original wizard form data. This in general should not be used to get wizard form
data. The wizard form data should be retrieved from each ObjectBean in the
ObjectBean list that is passed in.objectBeans - The List of object beans that have the appropriate wizard from data for each individual
ObjectBean and the initialized object for each ObjectBean from the
previous call to the preProcess method.
WTExceptionEditObjectFormProcessor#doOperation(NmCommandBean, List)}
public FormResult postProcess(NmCommandBean clientData,
List<ObjectBean> objectBeanList)
throws WTException
ObjectBean in the object bean list checks to
see if the if the user chose to submit now.
postProcess in interface ObjectFormProcessorpostProcess in class com.ptc.core.components.forms.DefaultObjectFormProcessorclientData - The original wizard form data. This in general should not be used to get wizard form
data. The wizard form data should be retrieved from each ObjectBean in the
ObjectBean list that is passed in.objectBeans - The List of object beans that have been saved with the appropriate wizard from data for
each individual ObjectBean.
WTException
public FormResult setResultNextAction(FormResult result,
NmCommandBean clientData,
List<ObjectBean> objectBeans)
throws WTException
setResultNextAction in interface ObjectFormProcessorsetResultNextAction in class com.ptc.core.components.forms.EditObjectFormProcessorclientData - The original wizard form data. This in general should not be used to get wizard form
data. The wizard form data should be retrieved from each ObjectBean in the
ObjectBean list that is passed in.objectBeans - The current List of object beans.result - - The FormResult to which the action info should be added. Input and output. Required.
WTExceptionprotected abstract LocalizableMessage getProcessorErrorMessage()
private static final String RESOURCE = "com.ptc.windchill.enterprise.change2.change2ClientResource";
private static final LocalizableMessage ECN_ERROR_MSG = new WTMessage(RESOURCE, change2ClientResource.EDITCHANGENOTICE_PROCESSING_ERROR, null);
protected abstract WTList saveChangeItem(WTList changeItems)
throws WTException
changeItems - The list of change objects to be persisted.
WTException - is thrown if saving the change object fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||