Package org.kuali.coeus.propdev.api.core
Interface SubmissionInfoService
public interface SubmissionInfoService
-
Method Summary
Modifier and TypeMethodDescriptiongetFederalId(String proposalNumber) This method retrieves the federal id.getGgTrackingIdFromProposal(Long proposalId) Retrieves the grants.gov tracking id from an app submission.getProposalContinuedFromVersionProposalId(String continuedFromProposalNumber) Gets the institutional proposal id from the continued from institutional proposal.getProposalContinuedFromVersionSponsorProposalNumber(String continuedFromProposalNumber) Gets the sponsor proposal number from the continued from institutional proposal.getProposalCurrentAwardSponsorAwardNumber(String currentAwardNumber) Gets the sponsor award number from a current award matching the currentAwardNumber.
-
Method Details
-
getFederalId
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
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
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
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
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
-