com.ptc.windchill.enterprise.change2.forms.delegates
Class RelatedChangeItemFormDelegate

java.lang.Object
  extended by com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
      extended by com.ptc.windchill.enterprise.change2.forms.delegates.RelatedChangeItemFormDelegate
All Implemented Interfaces:
ObjectFormProcessorDelegate

public class RelatedChangeItemFormDelegate
extends DefaultObjectFormProcessorDelegate

This class processes any related change objects of a Change Request or a Change Notice. A Change Request can have either related Problem Reports or Variances. A Change Notice can have related Change Requests. This will modify the change Request through the wt.change2.FormalizedBy binary link relationship. The change notice will be modified through the wt.change2.AddressedBy binary link relationship.
If this Form Delegate is to be used with a table which has an table ID other than change.associatedChanges.table the table ID can be specified in the FORM data with a key of RelatedChangeItemFormDelegate.tableId

Supported API: true

Extendable: true


Method Summary
protected  com.ptc.core.ui.resources.ComponentMode getComponentMode(ObjectBean ob)
          Helper method to retrieve the component mode for the given processing session.
 FormResult postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans)
          The post process method persists any related change objects of a Change Request or a Change Notice.
 
Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
doOperation, postTransactionProcess, preProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

postProcess

public FormResult postProcess(NmCommandBean clientData,
                              List<ObjectBean> objectBeans)
                       throws WTException
The post process method persists any related change objects of a Change Request or a Change Notice. A Change Request can have either related Problem Reports or Variances. A Change Notice can have only related Change Requests.

Supported API: true

Specified by:
postProcess in interface ObjectFormProcessorDelegate
Overrides:
postProcess in class DefaultObjectFormProcessorDelegate
Parameters:
clientData - Passes in the NmCommandBean to retrieve the added and removed items from the wizard session.
objectList - Passes in the List of change items created or edited
Returns:
FormResult Return a success or failure status
Throws:
WTException

getComponentMode

protected com.ptc.core.ui.resources.ComponentMode getComponentMode(ObjectBean ob)
Helper method to retrieve the component mode for the given processing session.

Parameters:
The - current command bean.

Supported API: true
Returns:
the ComponentMode.