Package org.kuali.coeus.propdev.api.core
Interface SubmissionInfoService
-
public interface SubmissionInfoService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFederalId(String proposalNumber)This method retrieves the federal id.StringgetGgTrackingIdFromProposal(Long proposalId)Retrieves the grants.gov tracking id from an app submission.LonggetProposalContinuedFromVersionProposalId(String continuedFromProposalNumber)Gets the institutional proposal id from the continued from institutional proposal.StringgetProposalContinuedFromVersionSponsorProposalNumber(String continuedFromProposalNumber)Gets the sponsor proposal number from the continued from institutional proposal.StringgetProposalCurrentAwardSponsorAwardNumber(String currentAwardNumber)Gets the sponsor award number from a current award matching the currentAwardNumber.
-
-
-
Method Detail
-
getFederalId
String getFederalId(String proposalNumber)
This method retrieves the federal id. Bases on certain conditions the federal id can come from a variety of places. The logic is as follows: If the proposal type is a Renewal, Revision, or Continuation and the DevelopmentProposal contains a non-blank sponsor proposal number then that is the federal id. If the proposal type is a Renewal, Revision, or Continuation and the DevelopmentProposal contains a blank sponsor proposal number and an award exists and the system is configured to get the federal id from the award and the contains a non-blank sponsor award number then that is the federal id . If the proposal type is a Renewal, Revision, or Continuation under any other conditions than what is listed above the federal id is null If the proposal type is a Resubmission and the DevelopmentProposal contains a non-blank sponsor proposal number then that is the federal id. If the proposal type is a Resubmission and the DevelopmentProposal contains a blank sponsor proposal number and an institutional proposal and the institutional proposal contains a non-blank sponsor proposal number then that is the federal id. If the proposal type is a Resubmission and the DevelopmentProposal contains a NSF sponsor then the federal id is null.- Parameters:
proposalNumber- the proposal number. cannot be blank.- Returns:
- the federal id or null
- Throws:
IllegalArgumentException- if the proposal number is blank
-
getGgTrackingIdFromProposal
String getGgTrackingIdFromProposal(Long proposalId)
Retrieves the grants.gov tracking id from an app submission. The app submission is retrieves from the development proposal object that is associated with an institutional proposal. The institutional proposal is retrieved from the passed in proposalId.- Parameters:
proposalId- the institutional proposal's id. cannot be null- Returns:
- grants.gov tracking id or null
- Throws:
IllegalArgumentException- if the proposalId is null
-
getProposalCurrentAwardSponsorAwardNumber
String getProposalCurrentAwardSponsorAwardNumber(String currentAwardNumber)
Gets the sponsor award number from a current award matching the currentAwardNumber.- Parameters:
currentAwardNumber- the current award number. cannot be blank.- Returns:
- sponsor award number or null
- Throws:
IllegalArgumentException- if the currentAwardNumber is blank
-
getProposalContinuedFromVersionSponsorProposalNumber
String getProposalContinuedFromVersionSponsorProposalNumber(String continuedFromProposalNumber)
Gets the sponsor proposal number from the continued from institutional proposal.- Parameters:
continuedFromProposalNumber- the continued from proposal number. cannot be blank.- Returns:
- sponsor proposal number or null
- Throws:
IllegalArgumentException- if the continuedFromProposalNumber is blank
-
getProposalContinuedFromVersionProposalId
Long getProposalContinuedFromVersionProposalId(String continuedFromProposalNumber)
Gets the institutional proposal id from the continued from institutional proposal.- Parameters:
continuedFromProposalNumber- the continued from proposal number. cannot be blank.- Returns:
- institutional proposal id or null
- Throws:
IllegalArgumentException- if the continuedFromProposalNumber is blank
-
-