Class ChangeLinkAttributeBean

java.lang.Object
com.ptc.windchill.enterprise.change2.beans.ChangeLinkAttributeBean
All Implemented Interfaces:
Serializable

public class ChangeLinkAttributeBean extends Object implements Serializable
The 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 Details

    • init

      public void init(ModelContext mc)
      Initiates the form data and component mode from the model context.

      Supported API: true
      Parameters:
      mc -
    • getDispositionItems

      public WTList 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

      public WTList 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

      public ComponentMode getMode()
      Return the component mode. The form data must be initialized prior to making this call.

      Supported API: true
      Returns:
      component mode
    • setFormData

      public void setFormData(FormDataHolder data)
      Will set the form data in the Disposition Bean.

      Supported API: true
      Parameters:
      data - The form data to initilize the bean to.
    • getFormData

      public FormDataHolder getFormData()
      Retrieve the current form data.

      Supported API: true
      Returns:
      FormDataHolder Will return the stored FormDataHolder in the bean.
    • getDispositionHandler

      public DispositionHandler getDispositionHandler(String componentId)
      Given the component id return the corresponding DispositionHandler. 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

      public ChangeIntentHandler getChangeIntentHandler(String componentId)
      Given the component id return the corresponding ChangeIntentHandler. 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

      public ModelContext getModelContext()
      Returns the model context if it is stored on the bean if not return null.

      Supported API: true
      Returns:
      model context
    • getDefaultTransition

      @Deprecated public Transition getDefaultTransition(Object datum) throws WTException
      Deprecated.
      Use ChangeLinkAttributeBean.getDefaultTransition(WTChangeActivity2 changeActivity, Changeable2 changeable) instead
      The 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

      public Transition toTransition(String transitionString) throws WTException
      The user selected transition for a given resulting object.

      Supported API: true
      Throws:
      WTException
    • toImpactIntent

      public ImpactIntentType toImpactIntent(String impactStr) throws WTException
      The user selected intent for a given resulting object.

      Supported API: true
      Throws:
      WTException
    • getSelectedImpactIntentString

      public String getSelectedImpactIntentString(Object datum) throws WTException
      The user selected impact intent string for a given resulting object.

      Supported API: true
      Throws:
      WTException
    • getSelectedTransitionString

      public String getSelectedTransitionString(Object datum) throws WTException
      The user selected transition string for a given resulting object.

      Supported API: true
      Throws:
      WTException
    • getTransitions

      public List<Transition> getTransitions(WTReference ref)
      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

      public List<ImpactIntentType> getImpactIntentTypes(WTReference ref)
      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

      public Map<WTReference,List<Transition>> getTransitionMap()
      The map of resulting objects to transitions.

      Supported API: true
      Returns:
      the the map of resulting objects to transitions
    • getImpactIntentMap

      public Map<WTReference,List<ImpactIntentType>> getImpactIntentMap()
      The map of resulting objects to impact intents.

      Supported API: true
      Returns:
      the the map of resulting objects to impact intents