Class 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 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:
      postProcess in interface ObjectFormProcessorDelegate
      Overrides:
      postProcess in class ChangeItemFormDelegate
      Parameters:
      clientData -
      objectBeans -
      Returns:
      FormResult with status set to FormProcessingStatus.SUCCESS
      Throws:
      WTException
    • 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.
    • 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:
    • 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:
      processLinkAttributes in class RelatedProductDataFormDelegate
      Parameters:
      item - The change item
      binaryLinks - The collection of current binary links.
      Returns:
      A collection of just the "changed" binary links that are processed.
      Throws:
      WTException
    • getRefreshedAssociationLinks

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

      Supported API: true
      Specified by:
      getRefreshedAssociationLinks in class ChangeItemFormDelegate
      Parameters:
      changeItem - The change item for which we want to get the refreshed links
      Returns:
      a collection of refreshed Associations
      Throws:
      WTException