Class DefaultProposedSolutionHandler

java.lang.Object
wt.change2.handler.DefaultProposedSolutionHandler
All Implemented Interfaces:
Serializable, ProposedSolutionHandler, RemoteAccess

public class DefaultProposedSolutionHandler extends Object implements ProposedSolutionHandler, RemoteAccess, Serializable
Determine for a Change Request if the Proposals and Investigations table will show up on the and if the proposed solution field will be displayed.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • isProposedSolutionEnabled

      protected boolean isProposedSolutionEnabled()
      Determines, caches and returns the value of the "wt.change2.proposedSolution.enabled" property.

      Supported API: true
      Returns:
      The value of the property.
    • displayChangeAnalysisTable

      public Boolean displayChangeAnalysisTable(ChangeRequestIfc changeRequest)
      Validate the display of the 3rd level nav Change Proposal and Change Investigation table. When the property wt.change2.proposedSolution.enabled is set to true the table will not be displayed when either of the following conditions are met.
      - There are no related Change Investigation or Change Proposals.
      - The Change Request has only one associated Change Proposal and the Change Proposal does not have any related Analysis Activities.
      Otherwise the table will be displayed. When the property wt.change2.proposedSolution.enabled is set to false the table will always be displayed.

      Supported API: true
      Specified by:
      displayChangeAnalysisTable in interface ProposedSolutionHandler
      Parameters:
      changeRequest -
      Returns:
      True is display 3rd level nav Change Proposal and Change Investigation table.
    • displayProposedSolution

      public Boolean displayProposedSolution()
      Validate the display of the Change Request proposed solution attribute that is displayed in the Change Request wizard and info page. When the wt.change2.proposedSolution.enabled property is set to true the proposed solution attribute will be displayed. When the wt.change2.proposedSolution.enabled< is set to false the proposed solution attribute is never displayed.

      Supported API: true
      Specified by:
      displayProposedSolution in interface ProposedSolutionHandler
      Returns:
      True is display Change Request Proposed solution.
    • displayProposedSolution

      @Deprecated public Boolean displayProposedSolution(ChangeRequestIfc changeRequest)
      Deprecated.
      use displayProposedSolution()
      Validate the display of the Change Request proposed solution attribute that is displayed in the Change Request wizard and info page. When the wt.change2.proposedSolution.enabled property is set to true the proposed solution attribute will be displayed. When the wt.change2.proposedSolution.enabled< is set to false the proposed solution attribute is never displayed.

      Supported API: true
      Specified by:
      displayProposedSolution in interface ProposedSolutionHandler
      Parameters:
      changeRequest -
      Returns:
      True is display Change Request Proposed solution.
    • getProposedSolution

      public ChangeProposalIfc getProposedSolution(ChangeRequestIfc changeRequest)
      Retrieve the Change Proposal for the Change Request proposed solution attribute to be displayed in the Change Request wizard and info page. Will only retrieve the related Change Proposal that is intended to be used for the proposed solution. Will return null if there is more than one Change Analysis exists for the Change Request.

      Supported API: true
      Specified by:
      getProposedSolution in interface ProposedSolutionHandler
      Parameters:
      changeRequest -
      Returns:
      The Change Proposal to be displayed as the Change Request proposed solution.
    • getChangeAnalysisCount

      protected int getChangeAnalysisCount(ChangeRequestIfc changeRequest)
      Retrieves the count of Change Investigations and Proposals related to the specified wt.change2.WTChangeRequest2.

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      the count of Change Investigations and Proposals.
    • getProposedSolutionCount

      protected int getProposedSolutionCount(ChangeRequestIfc changeRequest)
      Retrieves the count of PDMLink Change Proposals related to the specified wt.change2.WTChangeRequest2 that is to be displayed as a proposed solution. The number of Change Proposals for a proposed solution should only be one and does not have any related Analysis Activities.

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      the count of Change Proposals to be used for proposed solution.
    • getChangeProposal

      protected ChangeProposalIfc getChangeProposal(ChangeRequestIfc changeRequest)
      Retrieves the Change Proposal related to the specified wt.change2.WTChangeRequest2 that is to be displayed as a proposed solution. The Change Proposal for a proposed solution should only be one and does not have any related Analysis Activities.

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      the Change Proposal to be used for proposed solution.