Class ChangeRequestAttributePopulator
java.lang.Object
com.ptc.core.components.forms.DefaultAttributePopulator
com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
com.ptc.windchill.enterprise.change2.forms.populators.ChangeRequestAttributePopulator
- All Implemented Interfaces:
com.ptc.core.components.forms.AttributePopulator,Externalizable,Serializable
public class ChangeRequestAttributePopulator
extends com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
Deprecated.
use FlexibleChangeRequestAttributePopulator
Pre-populate the TypeInstance of the Change Request based on the launching variance or problem report. If the
launching point object is not a variance or problem report, this method will return the unmodified TypeInstance. If
the launch point object is of a correct type, this code will only modify the TypeInstance if the Propagation
Component is enabled (through preferences)
If additional fields are desired, the
Supported API: true
Extendable: true
If additional fields are desired, the
getAttributeList() and processAttribute() methods
should be overloaded and provided with the additional implementation.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
EXTERNALIZATION_VERSION_UID -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Populates the problem report or variance list of attributes to be propagated to the change request. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAttribute(ChangeItem changeItem, String key, TypeInstance ti, AttributeTypeIdentifier ati, NmCommandBean cb) Deprecated.Method responsible for processing the specified attribute against the current variance and problem report and storing this attribute value in the TypeInstance.voidsetAttributeList(List<String> atts) Deprecated.Set the attribute list to process.Methods inherited from class com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
doPropagation, getChangeObjectTemplate, getContainerRef, getFolderFromLaunchContext, getSystemCabinet, getTemplateAttributeValue, isTemplateSelected, isValidContainer, prePopulateAttributeDisplayValues, propagateAttributes, propagateAttributesFromObject, propagateTemplateAttributes, renderHTMLContent, setAttribute, setAttributeMethods inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
attemptToSetAttrValueFromFormData, getAllValueChangedAttributes, getAttrValueFromFormData, getContainerRef, isContainerOverridable, readExternal, setAttributeState, setAttributeValues, writeExternal
-
Constructor Details
-
ChangeRequestAttributePopulator
public ChangeRequestAttributePopulator()Deprecated.Populates the problem report or variance list of attributes to be propagated to the change request.
Supported API: true
-
-
Method Details
-
setAttributeList
Deprecated.Set the attribute list to process.
Supported API: true- Parameters:
atts- The attribute list to process
-
processAttribute
public void processAttribute(ChangeItem changeItem, String key, TypeInstance ti, AttributeTypeIdentifier ati, NmCommandBean cb) throws WTException Deprecated.Method responsible for processing the specified attribute against the current variance and problem report and storing this attribute value in the TypeInstance. Overriding this method in a subclass can override the attributes which are propagated. Currently the following attributes are handled:- name
- description
- needDate
- category
- priority
Supported API: true- Overrides:
processAttributein classcom.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator- Throws:
WTException
-