Class DefaultDispositionHandler

java.lang.Object
com.ptc.windchill.enterprise.change2.handler.DefaultDispositionHandler
All Implemented Interfaces:
DispositionHandler, Serializable

public class DefaultDispositionHandler extends Object implements Serializable, DispositionHandler
Default implementation of the DispositionHandler interface for use within the change wizards.

The default supported disposition component ids are:
Component Id Attribute Name
onOrderDisposition theOnOrderDisposition
inventoryDisposition theInventoryDisposition
finishDisposition theFinishDisposition


Supported API: true

Extendable: true
See Also:
  • Constructor Details

    • DefaultDispositionHandler

      public DefaultDispositionHandler()
      Default constructor for the default disposition handler.

      Supported API: true
  • Method Details

    • getDispositionValue

      public InventoryDisposition getDispositionValue(String componentId, BinaryLink link)
      The default implementation is to handle getting the "theInventoryDisposition", "theOnOrderDisposition" and "theFinishDisposition" attribute value on the AffectedActivityData. This method will need to be overridden in order to get a soft attributes or attributes of a soft type of the link.

      Supported API: true
      Specified by:
      getDispositionValue in interface DispositionHandler
      Parameters:
      componentId - The component id for the disposition attribute name.
      link -
      Returns:
      the inventory disposition value
    • setDispositionValue

      public boolean setDispositionValue(String componentId, BinaryLink link, InventoryDisposition disposition) throws WTException
      The default implementation is to handle setting the "theInventoryDisposition", "theOnOrderDisposition" and "theFinishDisposition" attribute value on the AffectedActivityData. This method will need to be overridden in order to get a soft attributes or attributes of a soft type of the link.

      Supported API: true
      Specified by:
      setDispositionValue in interface DispositionHandler
      Parameters:
      componentId - The component id for the disposition attribute name.
      link -
      disposition -
      Returns:
      True if the link is updated with a new disposition attribute value.
      Throws:
      WTException
    • getDefaultInventoryDisposition

      public InventoryDisposition getDefaultInventoryDisposition(ChangeLinkAttributeBean linkBean, String component_id)
      Gets the default disposition value to display for the given component id.

      Supported API: true

      Supported API: true
      Specified by:
      getDefaultInventoryDisposition in interface DispositionHandler
      Parameters:
      linkBean -
      component_id - The component id for the disposition attribute name.
      Returns:
      the default disposition value to display
    • getInventoryDispositionSet

      public ArrayList<InventoryDisposition> getInventoryDispositionSet(ChangeLinkAttributeBean linkBean, String component_id)
      Gets the set of inventory disposition values to display for the given component id.

      Supported API: true

      Supported API: true
      Specified by:
      getInventoryDispositionSet in interface DispositionHandler
      Parameters:
      linkBean -
      component_id - The component id for the disposition attribute name.
      Returns:
      the set of inventory disposition values to display
    • getAttributeIdFromColumnId

      public String getAttributeIdFromColumnId(String columnId)
      Get a disposition database attribute id from its corresponding UI column id.

      Supported API: true