Package wt.change2.handler
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
Supported API: true
Extendable: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondisplayChangeAnalysisTable(ChangeRequestIfc changeRequest) Validate the display of the 3rd level nav Change Proposal and Change Investigation table.Validate the display of the Change Request proposed solution attribute that is displayed in the Change Request wizard and info page.displayProposedSolution(ChangeRequestIfc changeRequest) Deprecated.use displayProposedSolution()protected intgetChangeAnalysisCount(ChangeRequestIfc changeRequest) Retrieves the count of Change Investigations and Proposals related to the specifiedwt.change2.WTChangeRequest2.protected ChangeProposalIfcgetChangeProposal(ChangeRequestIfc changeRequest) Retrieves the Change Proposal related to the specifiedwt.change2.WTChangeRequest2that is to be displayed as a proposed solution.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.protected intgetProposedSolutionCount(ChangeRequestIfc changeRequest) Retrieves the count of PDMLink Change Proposals related to the specifiedwt.change2.WTChangeRequest2that is to be displayed as a proposed solution.protected booleanDetermines, caches and returns the value of the "wt.change2.proposedSolution.enabled" property.
-
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
Validate the display of the 3rd level nav Change Proposal and Change Investigation table. When the propertywt.change2.proposedSolution.enabledis 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 propertywt.change2.proposedSolution.enabledis set to false the table will always be displayed.
Supported API: true- Specified by:
displayChangeAnalysisTablein interfaceProposedSolutionHandler- Parameters:
changeRequest-- Returns:
- True is display 3rd level nav Change Proposal and Change Investigation table.
-
displayProposedSolution
Validate the display of the Change Request proposed solution attribute that is displayed in the Change Request wizard and info page. When thewt.change2.proposedSolution.enabledproperty is set to true the proposed solution attribute will be displayed. When thewt.change2.proposedSolution.enabled<is set to false the proposed solution attribute is never displayed.
Supported API: true- Specified by:
displayProposedSolutionin interfaceProposedSolutionHandler- Returns:
- True is display Change Request Proposed solution.
-
displayProposedSolution
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 thewt.change2.proposedSolution.enabledproperty is set to true the proposed solution attribute will be displayed. When thewt.change2.proposedSolution.enabled<is set to false the proposed solution attribute is never displayed.
Supported API: true- Specified by:
displayProposedSolutionin interfaceProposedSolutionHandler- Parameters:
changeRequest-- Returns:
- True is display Change Request Proposed solution.
-
getProposedSolution
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:
getProposedSolutionin interfaceProposedSolutionHandler- Parameters:
changeRequest-- Returns:
- The Change Proposal to be displayed as the Change Request proposed solution.
-
getChangeAnalysisCount
Retrieves the count of Change Investigations and Proposals related to the specifiedwt.change2.WTChangeRequest2.
Supported API: true- Parameters:
changeRequest-- Returns:
- the count of Change Investigations and Proposals.
-
getProposedSolutionCount
Retrieves the count of PDMLink Change Proposals related to the specifiedwt.change2.WTChangeRequest2that 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
Retrieves the Change Proposal related to the specifiedwt.change2.WTChangeRequest2that 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.
-