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

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.ChangeTaskAffectedItemsFormDelegate
All Implemented Interfaces:
ObjectFormProcessorDelegate

public class ChangeTaskAffectedItemsFormDelegate
extends RelatedProductDataFormDelegate

A class used for processing affected objects table from a change task wizard.

Supported API: true

Extendable: true


Method Summary
protected  Class getAssociationClass(ChangeItemIfc item)
          Returns the association class for the affected objects table.
protected  String getDefaultTableId()
          Returns the default Table ID

Supported API: true
protected  String getDelegateName()
          Gets the name of the current delegate.
protected  WTCollection getRefreshedAssociationLinks(ChangeItemIfc changeItem)
          Returns the refreshed association links for a given change item
 FormResult postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans)
          The post process method processes any affected objects of the Change Task.
protected  WTCollection processLinkAttributes(ChangeItemIfc item, WTCollection binaryLinks)
          Processes the affected activity data link for the affected objects table.
 
Methods inherited from class com.ptc.windchill.enterprise.change2.forms.delegates.RelatedProductDataFormDelegate
getItemsToStoreForAssociation
 
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 processes any affected objects of the Change Task. The super implementation is called for processing the links. Overrriding this method can be used to process customized fields upon persistence.

Supported API: true

Specified by:
postProcess in interface ObjectFormProcessorDelegate
Overrides:
postProcess in class ChangeItemFormDelegate
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 form data for each individual ObjectBean.
Returns:
A success or failure status
Throws:
WTException - thrown when form processing fails in the super class

getDelegateName

protected String getDelegateName()
Gets the name of the current delegate. By default this is the class com.ptc.windchill.enterprise.change2.forms.delegates.ChangeTaskAffectedItemsFormDelegate.

Supported API: true

Specified by:
getDelegateName in class ChangeItemFormDelegate
Returns:
The delegate name

getDefaultTableId

protected String getDefaultTableId()
Returns the default Table ID

Supported API: true

Specified by:
getDefaultTableId in class ChangeItemFormDelegate
Returns:
Default Table ID
See Also:
TABLE_ID

getAssociationClass

protected Class getAssociationClass(ChangeItemIfc item)
Returns the association class for the affected objects table. This is wt.change2.AffectedActivityData.

Supported API: true

Specified by:
getAssociationClass in class ChangeItemFormDelegate
Parameters:
item - The Change object that the changeables getting associated to.
Returns:
the associated link class for the affected objects table.
See Also:
AffectedActivityData

processLinkAttributes

protected WTCollection processLinkAttributes(ChangeItemIfc item,
                                             WTCollection binaryLinks)
                                      throws WTException
Processes the affected activity data link for the affected objects table. This implementation relies on the super class to process the common table attributes such as the comment field. This method is responsible for handling the inventory dispositions on the table. Overriding this method should call this method instance to ensure proper handling of the binary link attributes.

Overrides:
processLinkAttributes in class RelatedProductDataFormDelegate
Parameters:
item - - the item for which we want to process link attributes
binaryLinks - - the collection of link attributes

Supported API: true
Returns:
A list of AffectedActivityData objects representing the links that have been modified
Throws:
WTException - thrown when the specified disposition is not valid on the affected activity data link

getRefreshedAssociationLinks

protected WTCollection getRefreshedAssociationLinks(ChangeItemIfc changeItem)
                                             throws WTException
Returns the refreshed association links for a given change item

Parameters:
changeItem - The change item for which we want to get the refreshed links

Supported API: true
Returns:
a collection of refreshed Associations
Throws:
WTException