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

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

public class AffectedDataFormDelegate
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)
          

Supported API: true
protected  String getDefaultTableId()
          Will retrieve the default table ID for the Affected Data table.
protected  String getDelegateName()
          Will retrieve the default delegate name for the Affected Data table.
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 items of a Change Request, Problem Reports or Variances.
protected  WTCollection processLinkAttributes(ChangeItemIfc item, WTCollection binaryLinks)
          

Supported API: true
 
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 persists any Affected items of a Change Request, Problem Reports or Variances.

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

getDelegateName

protected String getDelegateName()
Will retrieve the default delegate name for the Affected Data 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 Data 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)


Supported API: true

Specified by:
getAssociationClass in class ChangeItemFormDelegate
Parameters:
item - The Change object that the changeables getting associated to.
Returns:
The associated class for the given Change Object.

processLinkAttributes

protected WTCollection processLinkAttributes(ChangeItemIfc item,
                                             WTCollection binaryLinks)
                                      throws WTException


Supported API: true

Overrides:
processLinkAttributes in class RelatedProductDataFormDelegate
Parameters:
item - The item to process
binaryLinks - The current binary link objects
Returns:
The collection of modified binarylinks.
Throws:
WTException

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()