Class PromotionNameAttributePopulator
java.lang.Object
com.ptc.core.components.forms.DefaultAttributePopulator
com.ptc.windchill.enterprise.maturity.forms.populators.PromotionNameAttributePopulator
- All Implemented Interfaces:
com.ptc.core.components.forms.AttributePopulator,Externalizable,Serializable
public class PromotionNameAttributePopulator
extends DefaultAttributePopulator
implements Serializable
Will prepoluate the promotion request name in the promotion request wizard with a generated name from the first
selected promotable object. The generated name with consist of 4 parts the Promotable object name, number, version
and current date. The following is an example of a generated Promotion Request name of Part - WCDS000452,
01-32000.asm, A.1 (Design):
To turn off prepolutation of the promotion request name the "wt.maturity.automaticNameGeneration.disabled" property can be set to true.
Supported API: true
Extendable: false
-
01-32000.asm, WCDS000452, A.1, 2013-05-15
To turn off prepolutation of the promotion request name the "wt.maturity.automaticNameGeneration.disabled" property can be set to true.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
EXTERNALIZATION_VERSION_UID -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGenerates the name of the Promotion Request from the selected Promotable object.protected StringReturns the name of the selected Promotable object.protected StringReturns the number of the selected Promotable object.protected StringgetVersion(Object obj) Returns the version of the selected Promotable object.Will prepoluate the promotion request name in the promotion request wizard with a generated name from the first selected promotable object.Methods inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
attemptToSetAttrValueFromFormData, getAllValueChangedAttributes, getAttrValueFromFormData, getContainerRef, isContainerOverridable, readExternal, setAttributeState, setAttributeValues, writeExternal
-
Method Details
-
prePopulateAttributeDisplayValues
Will prepoluate the promotion request name in the promotion request wizard with a generated name from the first selected promotable object.
Supported API: true- Specified by:
prePopulateAttributeDisplayValuesin interfacecom.ptc.core.components.forms.AttributePopulator- Overrides:
prePopulateAttributeDisplayValuesin classDefaultAttributePopulator- Parameters:
ti- Promotion request type instance.cb- The current command bean.- Returns:
- the modified type instance.
-
calculateNameAttribute
Generates the name of the Promotion Request from the selected Promotable object. The generated name with consist of 4 parts the Promotable object name, number, version and current date.
Supported API: true- Parameters:
obj- The selected Promotable object- Returns:
- the name of the Promotion Notice
-
getNumber
Returns the number of the selected Promotable object.
Supported API: true- Parameters:
obj- The selected Promotable object- Returns:
- Number of the selected Promotable object.
-
getName
Returns the name of the selected Promotable object.
Supported API: true- Parameters:
obj- The selected Promotable object- Returns:
- Name of the selected Promotable object.
- Throws:
WTException
-
getVersion
Returns the version of the selected Promotable object. Returns an empty string, if the passed object is null or it's identifier is null or it's iteration identifier is null.
Supported API: true- Parameters:
ver- The selected Promotable object- Returns:
- The version of the selected Promotable object.
-