Class ChangeTaskAffectedItemsFormDelegate
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
com.ptc.windchill.enterprise.change2.forms.delegates.ChangeItemFormDelegate
com.ptc.windchill.enterprise.change2.forms.delegates.RelatedProductDataFormDelegate
com.ptc.windchill.enterprise.change2.forms.delegates.ChangeTaskAffectedItemsFormDelegate
- All Implemented Interfaces:
ObjectFormProcessorDelegate
A class used for processing affected objects table from a change task wizard.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?> Returns the association class for the affected objects table.protected StringGets the name of the current delegate.protected WTCollectiongetRefreshedAssociationLinks(ChangeItemIfc changeItem) Returns the refreshed association links for a given change item
Supported API: truepostProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) The post process method processes any affected objects of the Change Task.protected WTCollectionprocessLinkAttributes(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
getItemsToStoreForAssociationMethods inherited from class com.ptc.windchill.enterprise.change2.forms.delegates.ChangeItemFormDelegate
getAddedItems, getComponentMode, getObjectBean, getReferenceValueFromMap, getReferenceValueFromMap, getRemovedItems, getTableId, handleFormResultException, initialize, processAssociations, removeAssociations, setAddedItems, setRemovedItems, storeAssociationsMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
doOperation, postTransactionProcess, preProcess, setValue, setValueInTypeInstance, setValueInTypeInstance
-
Method Details
-
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:
postProcessin interfaceObjectFormProcessorDelegate- Overrides:
postProcessin classChangeItemFormDelegate- Parameters:
clientData-objectBeans-- Returns:
- FormResult with status set to FormProcessingStatus.SUCCESS
- Throws:
WTException
-
getDelegateName
Gets the name of the current delegate. By default this is the classcom.ptc.windchill.enterprise.change2.forms.delegates.ChangeTaskAffectedItemsFormDelegate.
Supported API: true- Specified by:
getDelegateNamein classChangeItemFormDelegate- Returns:
- the delegate name.
-
getAssociationClass
Returns the association class for the affected objects table. This iswt.change2.AffectedActivityData.
Supported API: true- Specified by:
getAssociationClassin classChangeItemFormDelegate- Parameters:
item- The Change object that the changeables getting associated to.- Returns:
- the associated link class for the affected objects table.
- See Also:
-
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.
Supported API: true- Overrides:
processLinkAttributesin classRelatedProductDataFormDelegate- Parameters:
item- The change itembinaryLinks- The collection of current binary links.- Returns:
- A collection of just the "changed" binary links that are processed.
- Throws:
WTException
-
getRefreshedAssociationLinks
Returns the refreshed association links for a given change item
Supported API: true- Specified by:
getRefreshedAssociationLinksin classChangeItemFormDelegate- Parameters:
changeItem- The change item for which we want to get the refreshed links- Returns:
- a collection of refreshed Associations
- Throws:
WTException
-