Class DispositionDataUtility
java.lang.Object
com.ptc.core.components.factory.AbstractDataUtility
com.ptc.windchill.enterprise.change2.dataUtilities.ChangeLinkAttributeDataUtility
com.ptc.windchill.enterprise.change2.dataUtilities.DispositionDataUtility
- All Implemented Interfaces:
DataUtility
This class is used to process the change disposition link attributes used by
the various change clients and set disposition picker. This includes the
Inventory Disposition attributes.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.windchill.enterprise.change2.dataUtilities.ChangeLinkAttributeDataUtility
ChangeLinkAttributeDataUtility.LinkType -
Field Summary
Fields inherited from class com.ptc.windchill.enterprise.change2.dataUtilities.ChangeLinkAttributeDataUtility
referenceLinkMap -
Method Summary
Modifier and TypeMethodDescriptiongetDataValue(String component_id, Object datum, ModelContext mc) When called within the context of the set disposition picker the disposition component is generated with the component id of the disposition type name.protected Map<WTReference, BinaryLink> processExistingLinks(NmOid oid, String component_id) Method to retrieve the binary link the given NmOid and the inventory disposition component id returns a map of persisted binary links and the role A references.Methods inherited from class com.ptc.windchill.enterprise.change2.dataUtilities.ChangeLinkAttributeDataUtility
getApprovedQuantityTextBox, getGUIComponentId, getLabel, getLinkClass, getMaxLength, getResultingChangeable, getTextDisplayComponent, initializeDescriptor, processExistingLinks, retrieveValue, setEventListener, setNumericEventListenerMethods inherited from class com.ptc.core.components.factory.AbstractDataUtility
getComponentBasedLabel, getIntrospectionBasedLabel, getLabel, getLabelKey, getMainClassName, getModelAttributes, getPropertyDisplayName, getSoftLabel, getToolTip, resolveJCAObject
-
Method Details
-
getDataValue
When called within the context of the set disposition picker the disposition component is generated with the component id of the disposition type name. When the context is not within the set disposition picker theChangeLinkAttributeDataUtility.getDataValue(String, Object, ModelContext)is called.
Supported API: true- Specified by:
getDataValuein interfaceDataUtility- Overrides:
getDataValuein classChangeLinkAttributeDataUtility- Parameters:
component_id- One of the supported component_idsdatum- The object to use as the referencemc- The current model context- Returns:
- An object that can be sent to a view for rendering
- Throws:
WTException- If a problem occurs while extracting the data
-
processExistingLinks
protected Map<WTReference,BinaryLink> processExistingLinks(NmOid oid, String component_id) throws WTException Method to retrieve the binary link the given NmOid and the inventory disposition component id returns a map of persisted binary links and the role A references.
Supported API: true- Overrides:
processExistingLinksin classChangeLinkAttributeDataUtility- Parameters:
oid- Context objectcomponent_id- The id of the column/attribute.- Returns:
- a map of reference and corresponding binary links
- Throws:
WTException
-