Class ChangeLinkAttributeBean
java.lang.Object
com.ptc.windchill.enterprise.change2.beans.ChangeLinkAttributeBean
- All Implemented Interfaces:
Serializable
The
Supported API: true
Extendable: true
ChangeLinkAttributeBean is used to process the selected items for use in the affected object tables
and the set disposition client. To create the ChangeLinkAttributeBean use the
ChangeLinkAttributeHelper.getChangeLinkAttributeBean(). By using the
ChangeLinkAttributeHelper.getChangeLinkAttributeBean() method to get the bean will improve the efficiency for
rendering, validating and processing change attribute links within a request.
Supported API: true
Extendable: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetChangeIntentHandler(String componentId) Given the component id return the correspondingChangeIntentHandler.Retrieves the list of change intent items in the bean.getDefaultTransition(Object datum) Deprecated.Use ChangeLinkAttributeBean.getDefaultTransition(WTChangeActivity2 changeActivity, Changeable2 changeable) insteadgetDefaultTransition(WTChangeActivity2 changeActivity, Changeable2 changeable) Gets the default transition from mapping rules.getDispositionHandler(String componentId) Given the component id return the correspondingDispositionHandler.Retrieves the list of disposition items in the bean.Retrieve the current form data.The map of resulting objects to impact intents.The list of impact intent type for a given resulting object reference.getMode()Return the component mode.Returns the model context if it is stored on the bean if not return null.The user selected impact intent string for a given resulting object.The user selected transition string for a given resulting object.The map of resulting objects to transitions.The list of transitions for a given resulting object reference.voidinit(ModelContext mc) Initiates the form data and component mode from the model context.booleanUsed to determine if the context is within the set change intent.booleanUsed to determine if the context is within the set disposition picker.voidsetFormData(FormDataHolder data) Will set the form data in the Disposition Bean.toImpactIntent(String impactStr) The user selected intent for a given resulting object.toTransition(String transitionString) The user selected transition for a given resulting object.
-
Method Details
-
init
Initiates the form data and component mode from the model context.
Supported API: true- Parameters:
mc-
-
getDispositionItems
Retrieves the list of disposition items in the bean. The form data must be initialized prior to making this call.
Supported API: true- Returns:
- WTList The list of disposition items from the bean.
-
getChangeIntentItems
Retrieves the list of change intent items in the bean. The form data must be initialized prior to making this call.
Supported API: true- Returns:
- WTList The list of changeintent items from the bean.
-
getMode
Return the component mode. The form data must be initialized prior to making this call.
Supported API: true- Returns:
- component mode
-
setFormData
Will set the form data in the Disposition Bean.
Supported API: true- Parameters:
data- The form data to initilize the bean to.
-
getFormData
Retrieve the current form data.
Supported API: true- Returns:
- FormDataHolder Will return the stored FormDataHolder in the bean.
-
getDispositionHandler
Given the component id return the correspondingDispositionHandler. Initiates the disposition handler delegate the first time called for a component id and then handler is stored in the bean.
Supported API: true- Parameters:
componentId-- Returns:
- the disposition handler delegate
- See Also:
-
getChangeIntentHandler
Given the component id return the correspondingChangeIntentHandler. Initiates the change intent handler delegate the first time called for a component id and then handler is stored in the bean.
Supported API: true- Parameters:
componentId-- Returns:
- the change intent handler delegate
- See Also:
-
isSetDispositionPicker
public boolean isSetDispositionPicker()Used to determine if the context is within the set disposition picker. The form data must be initialized prior to making this call.
Supported API: true- Returns:
- True if the context is the set disposition picker.
- See Also:
-
isSetChangeIntent
public boolean isSetChangeIntent()Used to determine if the context is within the set change intent. The form data must be initialized prior to making this call.
Supported API: true- Returns:
- True if the context is the set disposition picker.
- See Also:
-
getModelContext
Returns the model context if it is stored on the bean if not return null.
Supported API: true- Returns:
- model context
-
getDefaultTransition
Deprecated.Use ChangeLinkAttributeBean.getDefaultTransition(WTChangeActivity2 changeActivity, Changeable2 changeable) insteadThe default transition will be first be the persisted value and then "Change" if the "Change" transition is one of the available transition for the resulting object. Null will be returned when no default can be determined.
Supported API: true- Throws:
WTException
-
getDefaultTransition
public Transition getDefaultTransition(WTChangeActivity2 changeActivity, Changeable2 changeable) throws WTException Gets the default transition from mapping rules. If mapping rules are not present then the enumerations default transition will be return. If enumeration also don't have default transition then null will be return as default.
Supported API: true- Throws:
WTException
-
toTransition
The user selected transition for a given resulting object.
Supported API: true- Throws:
WTException
-
toImpactIntent
The user selected intent for a given resulting object.
Supported API: true- Throws:
WTException
-
getSelectedImpactIntentString
The user selected impact intent string for a given resulting object.
Supported API: true- Throws:
WTException
-
getSelectedTransitionString
The user selected transition string for a given resulting object.
Supported API: true- Throws:
WTException
-
getTransitions
The list of transitions for a given resulting object reference.
Supported API: true- Returns:
- the list of transitions for a given resulting object reference.
-
getImpactIntentTypes
The list of impact intent type for a given resulting object reference.
Supported API: true- Returns:
- the list of impact intents for a given resulting object reference.
-
getTransitionMap
The map of resulting objects to transitions.
Supported API: true- Returns:
- the the map of resulting objects to transitions
-
getImpactIntentMap
The map of resulting objects to impact intents.
Supported API: true- Returns:
- the the map of resulting objects to impact intents
-