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

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.EditProblemReportFormProcessor
All Implemented Interfaces:
ObjectFormProcessor

public class EditProblemReportFormProcessor
extends EditChangeItemFormProcessor

Processor class that performs database operations on Problem Report objects. This class is used for saving the data in the edit Problem Report wizards. This class is designed to handle existing wt.change2.WTChangeIssue 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 problem reports.
protected  WTList saveChangeItem(WTList changeItems)
          The purpose of this method is to handle persistance for problem reports.
 
Methods inherited from class com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
doOperation, postProcess, preProcess, 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 problem reports.

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 problem reports. Each Problem Report is saved one at a time calling the change service saveChangeIssue method. The order of the list of problem reports needs to be maintained and return in the same order.

Supported API: true

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