@Transactional public class InstitutionalProposalServiceImpl extends Object implements InstitutionalProposalService
| Constructor and Description |
|---|
InstitutionalProposalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
InstitutionalProposalDocument |
createAndSaveNewVersion(InstitutionalProposal currentInstitutionalProposal,
InstitutionalProposalDocument currentInstitutionalProposalDocument)
This method is to create a new version of an existing Institute Proposal
|
String |
createInstitutionalProposal(DevelopmentProposal developmentProposal,
Budget budget)
Creates a new pending Institutional Proposal based on given development proposal and budget.
|
String |
createInstitutionalProposalVersion(String proposalNumber,
DevelopmentProposal developmentProposal,
Budget budget)
Creates a new active version of the Institutional Proposal corresponding to the given proposal number,
with data copied from the given development proposal and budget.
|
List<InstitutionalProposal> |
defundInstitutionalProposals(Set<String> proposalNumbers,
String awardNumber,
Integer awardSequence)
Designate the given Proposals as no longer funded by the given Award.
|
protected void |
doBaseFieldsDataFeed(InstitutionalProposal institutionalProposal,
DevelopmentProposal developmentProposal) |
protected void |
doBudgetDataFeed(InstitutionalProposal institutionalProposal,
Budget budget) |
protected void |
doCustomAttributeDataFeed(InstitutionalProposalDocument institutionalProposalDocument,
DevelopmentProposal developmentProposal) |
List<InstitutionalProposal> |
fundInstitutionalProposals(Set<String> proposalNumbers)
Designate one or more Institutional Proposals as Funded by an Award.
|
protected InstitutionalProposalPerson |
generateInstitutionalProposalPerson(ProposalPerson pdPerson) |
protected InstitutionalProposalSpecialReview |
generateIpSpecialReview(ProposalSpecialReview dpSpecialReview) |
protected InstitutionalProposal |
getActiveInstitutionalProposal(String proposalNumber)
Queries the persistence layer to find the InstitutionalProposal record for the given proposalNumber.
|
InstitutionalProposal |
getActiveInstitutionalProposalVersion(String proposalNumber)
Return the ACTIVE version of an Institutional Proposal, if one exists.
|
List<DevelopmentProposal> |
getAllLinkedDevelopmentProposals(String proposalNumber)
Return all Development Proposals linked to any version of the institutional proposal identified by proposalNumber.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
protected Integer |
getDefaultCostShareTypeCode() |
protected Integer |
getDefaultStatusCode() |
org.kuali.rice.krad.service.DocumentService |
getDocumentService() |
InstitutionalProposal |
getInstitutionalProposal(String proposalId)
Return an Institutional Proposal, if one exists.
|
String |
getNextInstitutionalProposalNumber() |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
InstitutionalProposal |
getPendingInstitutionalProposalVersion(String proposalNumber)
Return the PENDING version of an Institutional Proposal, if one exists.
|
List<InstitutionalProposal> |
getProposalsForProposalNumber(String proposalNumber)
Get all versions of a proposal.
|
Collection<String> |
getValidFundingProposalStatusCodes()
Return a list of valid proposal status codes for award funding as defined by the 'validFundingProposalStatusCodes' parm.
|
VersioningService |
getVersioningService() |
protected Integer |
getWithdrawnStatusCode() |
protected InstitutionalProposalDocument |
mergeProposals(InstitutionalProposal institutionalProposal,
DevelopmentProposal developmentProposal,
Budget budget) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setInstitutionalProposalVersioningService(InstitutionalProposalVersioningService institutionalProposalVersioningService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService)
Set the Sequence Accessor Service.
|
void |
setVersioningService(VersioningService versioningService) |
protected void |
synchNewCustomAttributes(InstitutionalProposal newInstitutionalProposal,
InstitutionalProposal oldInstitutionalProposal)
This method is to synch custom attributes.
|
protected ArrayList<AwardFundingProposal> |
transferFundingProposals(InstitutionalProposal oldIP,
InstitutionalProposal newIP) |
protected InstitutionalProposalDocument |
versionProposal(String proposalNumber,
DevelopmentProposal developmentProposal,
Budget budget) |
public String createInstitutionalProposal(DevelopmentProposal developmentProposal, Budget budget)
createInstitutionalProposal in interface InstitutionalProposalServicedevelopmentProposal - DevelopmentProposalbudget - BudgetInstitutionalProposalService.createInstitutionalProposal(DevelopmentProposal, Budget)public String createInstitutionalProposalVersion(String proposalNumber, DevelopmentProposal developmentProposal, Budget budget)
createInstitutionalProposalVersion in interface InstitutionalProposalServiceproposalNumber - StringdevelopmentProposal - DevelopmentProposalbudget - BudgetInstitutionalProposalService.createInstitutionalProposalVersion(String, DevelopmentProposal, Budget)public InstitutionalProposal getInstitutionalProposal(String proposalId)
getInstitutionalProposal in interface InstitutionalProposalServiceproposalId - StringInstitutionalProposalService.getInstitutionalProposal(String)public InstitutionalProposal getPendingInstitutionalProposalVersion(String proposalNumber)
getPendingInstitutionalProposalVersion in interface InstitutionalProposalServiceproposalNumber - StringVersionStatuspublic InstitutionalProposal getActiveInstitutionalProposalVersion(String proposalNumber)
getActiveInstitutionalProposalVersion in interface InstitutionalProposalServiceproposalNumber - StringVersionStatuspublic List<InstitutionalProposal> fundInstitutionalProposals(Set<String> proposalNumbers)
fundInstitutionalProposals in interface InstitutionalProposalServiceproposalNumbers - The proposals to update.public List<InstitutionalProposal> defundInstitutionalProposals(Set<String> proposalNumbers, String awardNumber, Integer awardSequence)
defundInstitutionalProposals in interface InstitutionalProposalServiceproposalNumbers - The proposals to update.awardNumber - The Award that is de-funding the proposal.awardSequence - The sequence number of the Award.public List<InstitutionalProposal> getProposalsForProposalNumber(String proposalNumber)
InstitutionalProposalServicegetProposalsForProposalNumber in interface InstitutionalProposalServiceorg.kuali.kra.institutionalproposal.service.InstitutionalProposalService#getProposalForProposalNumber(java.lang.String)public List<DevelopmentProposal> getAllLinkedDevelopmentProposals(String proposalNumber)
InstitutionalProposalServicegetAllLinkedDevelopmentProposals in interface InstitutionalProposalServiceInstitutionalProposalService.getAllLinkedDevelopmentProposals(java.lang.String)public String getNextInstitutionalProposalNumber()
getNextInstitutionalProposalNumber in interface InstitutionalProposalServiceprotected InstitutionalProposal getActiveInstitutionalProposal(String proposalNumber)
proposalNumber - Stringprotected InstitutionalProposalDocument versionProposal(String proposalNumber, DevelopmentProposal developmentProposal, Budget budget) throws VersionException, org.kuali.rice.kew.api.exception.WorkflowException
VersionExceptionorg.kuali.rice.kew.api.exception.WorkflowExceptionprotected InstitutionalProposalDocument mergeProposals(InstitutionalProposal institutionalProposal, DevelopmentProposal developmentProposal, Budget budget) throws org.kuali.rice.kew.api.exception.WorkflowException
org.kuali.rice.kew.api.exception.WorkflowExceptionprotected void doBaseFieldsDataFeed(InstitutionalProposal institutionalProposal, DevelopmentProposal developmentProposal)
protected void doCustomAttributeDataFeed(InstitutionalProposalDocument institutionalProposalDocument, DevelopmentProposal developmentProposal) throws org.kuali.rice.kew.api.exception.WorkflowException
org.kuali.rice.kew.api.exception.WorkflowExceptionprotected InstitutionalProposalPerson generateInstitutionalProposalPerson(ProposalPerson pdPerson)
protected InstitutionalProposalSpecialReview generateIpSpecialReview(ProposalSpecialReview dpSpecialReview)
protected void doBudgetDataFeed(InstitutionalProposal institutionalProposal, Budget budget)
protected Integer getDefaultStatusCode()
protected Integer getWithdrawnStatusCode()
protected Integer getDefaultCostShareTypeCode()
public InstitutionalProposalDocument createAndSaveNewVersion(InstitutionalProposal currentInstitutionalProposal, InstitutionalProposalDocument currentInstitutionalProposalDocument) throws VersionException, org.kuali.rice.kew.api.exception.WorkflowException, IOException
InstitutionalProposalServicecreateAndSaveNewVersion in interface InstitutionalProposalServiceVersionExceptionorg.kuali.rice.kew.api.exception.WorkflowExceptionIOExceptionInstitutionalProposalService.createAndSaveNewVersion(org.kuali.kra.institutionalproposal.home.InstitutionalProposal, org.kuali.kra.institutionalproposal.document.InstitutionalProposalDocument)protected void synchNewCustomAttributes(InstitutionalProposal newInstitutionalProposal, InstitutionalProposal oldInstitutionalProposal)
newInstitutionalProposal - oldInstitutionalProposal - protected ArrayList<AwardFundingProposal> transferFundingProposals(InstitutionalProposal oldIP, InstitutionalProposal newIP)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public void setVersioningService(VersioningService versioningService)
public void setInstitutionalProposalVersioningService(InstitutionalProposalVersioningService institutionalProposalVersioningService)
public void setSequenceAccessorService(org.kuali.rice.krad.service.SequenceAccessorService sequenceAccessorService)
sequenceAccessorService - the Sequence Accessor Servicepublic Collection<String> getValidFundingProposalStatusCodes()
InstitutionalProposalServicegetValidFundingProposalStatusCodes in interface InstitutionalProposalServiceInstitutionalProposalService.getValidFundingProposalStatusCodes()protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public org.kuali.rice.krad.service.DocumentService getDocumentService()
public VersioningService getVersioningService()
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.