Class DefaultDispositionHandler
java.lang.Object
com.ptc.windchill.enterprise.change2.handler.DefaultDispositionHandler
- All Implemented Interfaces:
DispositionHandler,Serializable
Default implementation of the
The default supported disposition component ids are:
Supported API: true
Extendable: true
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 Summary
ConstructorsConstructorDescriptionDefault constructor for the default disposition handler. -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeIdFromColumnId(String columnId) Get a disposition database attribute id from its corresponding UI column id.getDefaultInventoryDisposition(ChangeLinkAttributeBean linkBean, String component_id) Gets the default disposition value to display for the given component id.getDispositionValue(String componentId, BinaryLink link) The default implementation is to handle getting the "theInventoryDisposition", "theOnOrderDisposition" and "theFinishDisposition" attribute value on theAffectedActivityData.getInventoryDispositionSet(ChangeLinkAttributeBean linkBean, String component_id) Gets the set of inventory disposition values to display for the given component id.booleansetDispositionValue(String componentId, BinaryLink link, InventoryDisposition disposition) The default implementation is to handle setting the "theInventoryDisposition", "theOnOrderDisposition" and "theFinishDisposition" attribute value on theAffectedActivityData.
-
Constructor Details
-
DefaultDispositionHandler
public DefaultDispositionHandler()Default constructor for the default disposition handler.
Supported API: true
-
-
Method Details
-
getDispositionValue
The default implementation is to handle getting the "theInventoryDisposition", "theOnOrderDisposition" and "theFinishDisposition" attribute value on theAffectedActivityData. 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:
getDispositionValuein interfaceDispositionHandler- 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 theAffectedActivityData. 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:
setDispositionValuein interfaceDispositionHandler- 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:
getDefaultInventoryDispositionin interfaceDispositionHandler- 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:
getInventoryDispositionSetin interfaceDispositionHandler- Parameters:
linkBean-component_id- The component id for the disposition attribute name.- Returns:
- the set of inventory disposition values to display
-
getAttributeIdFromColumnId
Get a disposition database attribute id from its corresponding UI column id.
Supported API: true
-