com.ptc.windchill.enterprise.change2.forms.processors
Class EditChangeNoticeFormProcessor

java.lang.Object
  extended by com.ptc.core.components.forms.DefaultObjectFormProcessor
      extended by com.ptc.core.components.forms.EditObjectFormProcessor
          extended by com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
              extended by com.ptc.windchill.enterprise.change2.forms.processors.EditChangeNoticeFormProcessor
All Implemented Interfaces:
ObjectFormProcessor

public class EditChangeNoticeFormProcessor
extends EditChangeItemFormProcessor

Processor class that performs database operations on Change Notice objects. This class is used for saving the data in the edit Change Notice wizards. This class is designed to handle existing wt.change2.WTChangeOrder2 or any sub-types.

Supported API: true

Extendable: true


Method Summary
protected  LocalizableMessage getProcessorErrorMessage()
          The purpose of this method is to handle error messaging that is unique to the change notices.
 FormResult preProcess(NmCommandBean clientData, List<ObjectBean> objectBeanList)
          Gets and initailizes the Change Notice from the wizard form data by calling super.
protected  WTList saveChangeItem(WTList changeItems)
          The purpose of this method is to handle persistance for Change Notices.
 
Methods inherited from class com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
doOperation, postProcess, setResultNextAction
 
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

getProcessorErrorMessage

protected LocalizableMessage getProcessorErrorMessage()
The purpose of this method is to handle error messaging that is unique to the change notices.

Supported API: true

Specified by:
getProcessorErrorMessage in class EditChangeItemFormProcessor
Returns:
Generic message for form processing error

saveChangeItem

protected WTList saveChangeItem(WTList changeItems)
                         throws WTException
The purpose of this method is to handle persistance for Change Notices. Each Change Notice is saved one at a time calling the change service saveChangeOrder. The order of the list of Change Notices needs to be maintained and return in the same order.

Supported API: true

Specified by:
saveChangeItem in class EditChangeItemFormProcessor
Parameters:
changeItems - The list of change notices to be persisted.
Returns:
The list of change notices that have been persisted.
Throws:
WTException - is thrown if saving the change notices fail.
See Also:
wt.change2.ChangeService2#saveChangeOrder(wt.change2.ChangeOrderIfc)}

preProcess

public FormResult preProcess(NmCommandBean clientData,
                             List<ObjectBean> objectBeanList)
                      throws WTException
Gets and initailizes the Change Notice from the wizard form data by calling super. This method then checks to see in the change notice complexity field has been set and sets it on the new initialized change notice.

Supported API: true

Specified by:
preProcess in interface ObjectFormProcessor
Overrides:
preProcess in class EditChangeItemFormProcessor
Parameters:
clientData - 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.
Returns:
A form result that indicates if the operation was succesful or not.
Throws:
WTException - is thrown if initailizing the change object fails
See Also:
EditChangeItemFormProcessor#preProcess(NmCommandBean, List)}