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

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

public class AffectedEndItemsFormDelegate
extends RelatedProductDataFormDelegate

A class for subprocessors that perform a database operation on one or more objects. Typically used for the processing of a wizard.

Supported API: true

Extendable: true


Method Summary
protected  Class getAssociationClass(ChangeItemIfc item)
          Will retrive the correct association class name from the given change item object.
protected  String getDefaultTableId()
          Will retrieve the default table ID for the Affected End-Items table.
protected  String getDelegateName()
          Will retrieve the default delegate name for the Affected End-Items table.
protected  Vector getItemsToStoreForAssociation(List list)
          Retrieve the items which are to be stored for association.
protected  WTCollection getRefreshedAssociationLinks(ChangeItemIfc changeItem)
          Will retrieve the refreshed associations from the datastore.
 FormResult postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans)
          The post process method persists any Affected End-Items for a Change Request, Problem Reports or Variance.
 
Methods inherited from class com.ptc.windchill.enterprise.change2.forms.delegates.RelatedProductDataFormDelegate
processLinkAttributes
 
Methods inherited from class com.ptc.windchill.enterprise.change2.forms.delegates.ChangeItemFormDelegate
getComponentMode, getReferenceValueFromMap, getReferenceValueFromMap, getTableId
 
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 Affected End-Items for a Change Request, Problem Reports or Variance.

Supported API: true

Specified by:
postProcess in interface ObjectFormProcessorDelegate
Overrides:
postProcess in class ChangeItemFormDelegate
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

getItemsToStoreForAssociation

protected Vector getItemsToStoreForAssociation(List list)
                                        throws WTException
Retrieve the items which are to be stored for association.

Supported API: true

Overrides:
getItemsToStoreForAssociation in class RelatedProductDataFormDelegate
Parameters:
list - The set of items currently scheduled to be stored.
Returns:
The collection of related end-items
Throws:
WTException

getDelegateName

protected String getDelegateName()
Will retrieve the default delegate name for the Affected End-Items table.

Supported API: true

Specified by:
getDelegateName in class ChangeItemFormDelegate
Returns:
the table id.
See Also:
com.ptc.windchill.enterprise.change2.forms.ChangeItemFormDelegate.getDelegateName()

getDefaultTableId

protected String getDefaultTableId()
Will retrieve the default table ID for the Affected End-Items table.

Supported API: true

Specified by:
getDefaultTableId in class ChangeItemFormDelegate
Returns:
the table id.
See Also:
com.ptc.windchill.enterprise.change2.forms.ChangeItemFormDelegate.getDefaultTableId()

getAssociationClass

protected Class getAssociationClass(ChangeItemIfc item)
Will retrive the correct association class name from the given change item object.

Supported API: true

Specified by:
getAssociationClass in class ChangeItemFormDelegate
Parameters:
item - The change item to evaluate.
Returns:
the class representing the association.

getRefreshedAssociationLinks

protected WTCollection getRefreshedAssociationLinks(ChangeItemIfc changeItem)
                                             throws WTException
Will retrieve the refreshed associations from the datastore.

Supported API: true

Parameters:
changeItem - The change item to refresh.
Returns:
the refreshed association.
Throws:
WTException
See Also:
com.ptc.windchill.enterprise.change2.forms.ChangeItemFormDelegate.getRefreshedAssociationLinks()