public class ProposalDevelopmentServiceImpl extends Object implements ProposalDevelopmentService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
ProposalDevelopmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ProposalSite |
createProposalSite(String organizationId,
int siteNumber)
Constructs a ProposalSite; initializes the organization, and locationName fields, and sets the default district if there is
one defined for the Organization.
|
void |
deleteProposal(ProposalDevelopmentDocument proposalDocument)
Deletes the proposal and any budgets associated with this document and then cancels document
|
protected void |
deleteProposalBudget(String budgetDocumentNumber,
ProposalDevelopmentDocument parentDocument) |
Object |
getBudgetFieldValueFromDBColumnName(String documentNumber,
String dbColumnName) |
BudgetService |
getBudgetService()
Retrieve injected
singleton |
protected BudgetVersionOverview |
getBudgetVersionOverview(String documentNumber) |
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Accessor for
|
List<CoPiInfoDO> |
getCoPiPiInfo(DevelopmentProposal proposal) |
List<CostShareInfoDO> |
getCostShareInfo(Budget budget) |
String |
getDataOverrideLookupDisplayDisplayValue(String lookupClassName,
String value,
String displayAttributeName) |
String |
getDataOverrideLookupDisplayReturnValue(String lookupClassName) |
List<Unit> |
getDefaultModifyProposalUnitsForUser(String userId)
This method returns a Map of Units for which the user represented by the userId passed in has the role Proposal Aggregator
|
protected org.kuali.rice.krad.service.DocumentService |
getDocumentService() |
Budget |
getFinalBudget(DevelopmentProposal proposal) |
InstitutionalProposal |
getInstitutionalProposal(String devProposalNumber)
Return the institutional proposal linked to the development proposal.
|
KraPersistenceStructureService |
getKraPersistenceStructureService() |
protected String |
getLookupDisplayValue(String lookupClassName,
String value,
String displayAttributeName) |
protected int |
getNextSiteNumber(ProposalDevelopmentDocument proposalDevelopmentDocument) |
protected String |
getPropertyValue(org.kuali.rice.krad.bo.BusinessObject businessObject,
String fieldName) |
InstitutionalProposal |
getProposalContinuedFromVersion(ProposalDevelopmentDocument proposal) |
Award |
getProposalCurrentAwardVersion(ProposalDevelopmentDocument proposal) |
Object |
getProposalFieldValueFromDBColumnName(String proposalNumber,
String dbColumnName) |
protected ProposalOverview |
getProposalOverview(String proposalNumber) |
protected Collection<Unit> |
getUnitsWithNumbers(String... unitNumbers)
Gets units for the given names.
|
void |
initializeProposalSiteNumbers(ProposalDevelopmentDocument proposalDevelopmentDocument)
This method initializes the siteNumber property on proposal sites that don't have it set yet.
|
void |
initializeUnitOrganizationLocation(ProposalDevelopmentDocument proposalDevelopmentDocument)
This method gets called from the "save" action.
|
boolean |
isGrantsGovEnabledForProposal(DevelopmentProposal devProposal)
For the proposal, based on the hierarchy status and sponsor code is grants gov enabled
|
boolean |
isGrantsGovEnabledOnSponsorChange(String proposalNumber,
String sponsorCode)
On a sponsor change, will grants gov be enabled after the change
|
protected String |
populateBudgetEditableFieldMetaData(String documentNumber,
String editableFieldDBColumn) |
String |
populateBudgetEditableFieldMetaDataForAjaxCall(String proposalNumber,
String documentNumber,
String editableFieldDBColumn) |
protected String |
populateProposalEditableFieldMetaData(String proposalNumber,
String editableFieldDBColumn) |
String |
populateProposalEditableFieldMetaDataForAjaxCall(String proposalNumber,
String editableFieldDBColumn) |
void |
setBudgetService(BudgetService budgetService)
Inject
singleton |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService bos)
Accessor for
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setKraPersistenceStructureService(KraPersistenceStructureService kraPersistenceStructureService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the ParameterService.
|
void |
setUnitAuthorizationService(UnitAuthorizationService unitAuthService)
Set the Unit Authorization Service.
|
void |
setVersionHistoryService(VersionHistoryService versionHistoryService) |
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - the parameter service.public void initializeUnitOrganizationLocation(ProposalDevelopmentDocument proposalDevelopmentDocument)
initializeUnitOrganizationLocation in interface ProposalDevelopmentServiceproposalDevelopmentDocument - protected ProposalSite createProposalSite(String organizationId, int siteNumber)
organizationId - protected int getNextSiteNumber(ProposalDevelopmentDocument proposalDevelopmentDocument)
public void initializeProposalSiteNumbers(ProposalDevelopmentDocument proposalDevelopmentDocument)
ProposalDevelopmentServiceinitializeProposalSiteNumbers in interface ProposalDevelopmentServicepublic List<Unit> getDefaultModifyProposalUnitsForUser(String userId)
ProposalDevelopmentServicegetDefaultModifyProposalUnitsForUser in interface ProposalDevelopmentServiceuserId - unique identifer representing the user whose units will be returnedprotected Collection<Unit> getUnitsWithNumbers(String... unitNumbers)
unitNumbers - varargs representation of unitNumber arraypublic void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService bos)
BusinessObjectServicebos - BusinessObjectServicepublic org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
BusinessObjectServicepublic void setUnitAuthorizationService(UnitAuthorizationService unitAuthService)
unitAuthService - public String populateProposalEditableFieldMetaDataForAjaxCall(String proposalNumber, String editableFieldDBColumn)
populateProposalEditableFieldMetaDataForAjaxCall in interface ProposalDevelopmentServicepublic String populateBudgetEditableFieldMetaDataForAjaxCall(String proposalNumber, String documentNumber, String editableFieldDBColumn)
populateBudgetEditableFieldMetaDataForAjaxCall in interface ProposalDevelopmentServiceprotected ProposalOverview getProposalOverview(String proposalNumber)
protected BudgetVersionOverview getBudgetVersionOverview(String documentNumber)
protected String getLookupDisplayValue(String lookupClassName, String value, String displayAttributeName)
public String getDataOverrideLookupDisplayReturnValue(String lookupClassName)
getDataOverrideLookupDisplayReturnValue in interface ProposalDevelopmentServicepublic String getDataOverrideLookupDisplayDisplayValue(String lookupClassName, String value, String displayAttributeName)
getDataOverrideLookupDisplayDisplayValue in interface ProposalDevelopmentServiceprotected String getPropertyValue(org.kuali.rice.krad.bo.BusinessObject businessObject, String fieldName)
public Object getProposalFieldValueFromDBColumnName(String proposalNumber, String dbColumnName)
getProposalFieldValueFromDBColumnName in interface ProposalDevelopmentServicepublic Object getBudgetFieldValueFromDBColumnName(String documentNumber, String dbColumnName)
getBudgetFieldValueFromDBColumnName in interface ProposalDevelopmentServiceprotected String populateProposalEditableFieldMetaData(String proposalNumber, String editableFieldDBColumn)
public Award getProposalCurrentAwardVersion(ProposalDevelopmentDocument proposal)
getProposalCurrentAwardVersion in interface ProposalDevelopmentServicepublic InstitutionalProposal getProposalContinuedFromVersion(ProposalDevelopmentDocument proposal)
getProposalContinuedFromVersion in interface ProposalDevelopmentServicepublic KraPersistenceStructureService getKraPersistenceStructureService()
public void setKraPersistenceStructureService(KraPersistenceStructureService kraPersistenceStructureService)
public BudgetService getBudgetService()
BudgetService singletonpublic void setBudgetService(BudgetService budgetService)
BudgetService singletonpublic void setVersionHistoryService(VersionHistoryService versionHistoryService)
public boolean isGrantsGovEnabledForProposal(DevelopmentProposal devProposal)
ProposalDevelopmentServiceisGrantsGovEnabledForProposal in interface ProposalDevelopmentServicepublic boolean isGrantsGovEnabledOnSponsorChange(String proposalNumber, String sponsorCode)
ProposalDevelopmentServiceisGrantsGovEnabledOnSponsorChange in interface ProposalDevelopmentServicepublic void deleteProposal(ProposalDevelopmentDocument proposalDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
ProposalDevelopmentServicedeleteProposal in interface ProposalDevelopmentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionProposalDevelopmentService.deleteProposal(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)protected void deleteProposalBudget(String budgetDocumentNumber, ProposalDevelopmentDocument parentDocument)
protected org.kuali.rice.krad.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public Budget getFinalBudget(DevelopmentProposal proposal)
getFinalBudget in interface ProposalDevelopmentServicepublic List<CoPiInfoDO> getCoPiPiInfo(DevelopmentProposal proposal)
getCoPiPiInfo in interface ProposalDevelopmentServicepublic List<CostShareInfoDO> getCostShareInfo(Budget budget)
getCostShareInfo in interface ProposalDevelopmentServicepublic InstitutionalProposal getInstitutionalProposal(String devProposalNumber)
getInstitutionalProposal in interface ProposalDevelopmentServiceproposalDevelopmentDocument - instProposalNumber - Copyright © 2013 The Kuali Foundation. All Rights Reserved.