public class AwardBudgetServiceImpl extends Object implements AwardBudgetService
| Constructor and Description |
|---|
AwardBudgetServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBudgetOnSave(Budget budget)
This method will take care of summing up all line item costs or summary line items to Period totals
|
boolean |
checkForOutstandingBudgets(BudgetParentDocument parentDoc)
Checks for budgets that have not been posted, cancelled or rejected.
|
boolean |
checkRateChange(Collection<BudgetRate> savedBudgetRates,
Award award)
This method checks if Award rates changed, then display confirmation message on 'open' budget version.
|
BudgetDocument<Award> |
copyBudgetVersion(BudgetDocument<Award> budgetDocument)
Copies budget version from previous one
|
BudgetDocument<Award> |
copyBudgetVersion(BudgetDocument<Award> budgetDocument,
boolean onlyOnePeriod) |
void |
copyLineItemsFromProposalPeriods(Collection rawValues,
BudgetPeriod awardBudgetPeriod)
Copies all line items from the BudgetPeriods included in rawValues into awardBudgetPeriod fixing
dates and making sure personnel referenced are also added to the awardBudget.
|
protected void |
copyObligatedAmountToLineItems(AwardBudgetDocument awardBudgetDocument,
BudgetDecimal obligatedChangeAmount) |
protected AwardBudgetDocument |
copyPostedBudgetVersion(AwardDocument parentDocument) |
protected void |
copyProposalBudgetLineItemsToAwardBudget(BudgetPeriod awardBudgetPeriod,
BudgetPeriod proposalBudgetPeriod) |
protected AwardBudgetDocument |
createNewBudgetDocument(String documentDescription,
AwardDocument parentDocument,
boolean rebudget)
This method...
|
List<BudgetPeriod> |
findBudgetPeriodsFromLinkedProposal(String awardNumber)
Gets all budget periods from proposals that are funding this award.
|
protected BudgetPerson |
findMatchingPersonInBudget(Budget budget,
BudgetPerson oldBudgetPerson,
String jobCode) |
protected List |
findObjectsWithSingleKey(Class clazz,
String key,
Object value)
Use the business object service to match the criteria passed in
|
protected String |
findStatusDescription(String statusCode) |
Award |
getActiveOrNewestAward(String awardNumber)
Returns the active award or if none exist, the newest non-cancelled award.
|
List<BudgetDocumentVersion> |
getAllBudgetsForAward(AwardDocument awardDocument) |
protected AwardBudgetCalculationService |
getAwardBudgetCalculationService() |
protected String |
getAwardPostedStatusCode() |
protected AwardService |
getAwardService() |
protected BudgetCalculationService |
getBudgetCalculationService() |
BudgetService<Award> |
getBudgetService()
Gets the budgetService attribute.
|
BudgetSummaryService |
getBudgetSummaryService()
Gets the budgetSummaryService attribute.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
protected String |
getCancelledBudgetStatus() |
protected AwardBudgetExt |
getCurrentBudget(AwardDocument awardDocument)
Returns the current budget for the award.
|
protected DeepCopyPostProcessor |
getDeepCopyPostProcessor() |
protected String |
getDisapprovedBudgetStatus() |
org.kuali.rice.krad.service.DocumentService |
getDocumentService()
Gets the documentService attribute.
|
protected String |
getDoNotPostBudgetStatus() |
List<String> |
getInactiveBudgetStatus()
Return a list of the award budget status codes that are considered inactive,
currently cancelled, rejected and do not post.
|
protected BudgetVersionOverview |
getLastBudgetVersion(AwardDocument award) |
protected AwardBudgetExt |
getLatestPostedBudget(AwardDocument awardDocument) |
BudgetDocument<Award> |
getNewBudgetVersion(BudgetParentDocument<Award> parentBudgetDocument,
String documentDescription)
Returns a new finalized BudgetDocument based on the given ProposalDevelopmentDocument and documentDescription.
|
protected AwardBudgetExt |
getNewestBudgetByStatus(AwardDocument awardDocument,
List<String> statuses) |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Gets the parameterService attribute.
|
protected String |
getParameterValue(String awardBudgetParameter) |
protected String |
getPostedBudgetStatus() |
protected BudgetDecimal |
getPostedTotalAmount(AwardDocument awardDocument)
Gets the total posted amount from previously posted budgets
|
protected AwardBudgetExt |
getPreviousBudget(AwardDocument awardDocument)
Returns the previous budget for this award document which will be the newest posted budget
|
protected String |
getRejectedBudgetStatus() |
BudgetDecimal |
getTotalCostLimit(AwardDocument awardDocument)
Get the total cost limit from the award.
|
protected VersionHistoryService |
getVersionHistoryService() |
protected org.kuali.rice.kew.api.WorkflowDocument |
getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
Get the corresponding workflow document.
|
protected boolean |
isPostedBudgetExist(AwardDocument awardDocument) |
boolean |
isRateOverridden(Budget budget)
This method is to check whether Budget Summary calculated amounts have been modified on AwardBudgetSummary screen
|
boolean |
isRateOverridden(BudgetPeriod budgetPeriod)
This method is to check whether Budget Summary calculated amounts for a BudgetPeriod
have been modified on AwardBudgetSummary screen
|
void |
populateBudgetLimitSummary(BudgetLimitSummaryHelper summary,
AwardDocument awardDocument)
Populates the passed in limit summary given the award document.
|
void |
populateSummaryCalcAmounts(Budget budget,
BudgetPeriod budgetPeriod) |
void |
post(AwardBudgetDocument awardBudgetDocument) |
void |
processApproval(AwardBudgetDocument awardBudgetDocument) |
void |
processDisapproval(AwardBudgetDocument awardBudgetDocument) |
protected void |
processStatusChange(AwardBudgetDocument awardBudgetDocument,
String routingStatus) |
void |
processSubmision(AwardBudgetDocument awardBudgetDocument) |
AwardBudgetDocument |
rebudget(AwardDocument awardDocument,
String documentDescription) |
void |
recalculateBudget(Budget budget)
This method is recalculate the budget.
|
void |
recalculateBudgetPeriod(Budget budget,
BudgetPeriod budgetPeriod) |
void |
removeBudgetSummaryPeriodCalcAmounts(BudgetPeriod budgetPeriod)
This method will clear the BudgetSumamryPeriodCalcAmounts
|
protected void |
saveBudgetDocument(BudgetDocument<Award> budgetDocument,
boolean rebudget)
This method...
|
protected void |
saveDocument(AwardBudgetDocument awardBudgetDocument)
This method...
|
void |
setAwardBudgetCalculationService(AwardBudgetCalculationService awardBudgetCalculationService) |
void |
setAwardService(AwardService awardService) |
void |
setBudgetCalculationService(BudgetCalculationService budgetCalculationService) |
protected void |
setBudgetCostsFromPeriods(Budget budget)
This method sets the budget document's costs from the budget periods' costs.
|
void |
setBudgetLimits(AwardBudgetDocument awardBudgetDocument,
AwardDocument parentDocument)
Populates the budget limits from the award.
|
void |
setBudgetService(BudgetService<Award> budgetService)
Sets the budgetService attribute value.
|
void |
setBudgetSummaryService(BudgetSummaryService budgetSummaryService)
Sets the budgetSummaryService attribute value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentservice)
Sets the documentService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
void |
setVersionHistoryService(VersionHistoryService versionHistoryService) |
void |
toggleStatus(AwardBudgetDocument awardBudgetDocument) |
boolean |
validateAddingNewBudget(BudgetParentDocument<Award> parentDocument)
Make sure its ok to add a new budget version.
|
public void post(AwardBudgetDocument awardBudgetDocument)
post in interface AwardBudgetServiceAwardBudgetService.post(org.kuali.kra.award.budget.document.AwardBudgetDocument)public void toggleStatus(AwardBudgetDocument awardBudgetDocument)
toggleStatus in interface AwardBudgetServiceAwardBudgetService.post(org.kuali.kra.award.budget.document.AwardBudgetDocument)protected void saveDocument(AwardBudgetDocument awardBudgetDocument)
awardBudgetDocument - public void processApproval(AwardBudgetDocument awardBudgetDocument)
processApproval in interface AwardBudgetServiceAwardBudgetService.processApproval(org.kuali.kra.award.budget.document.AwardBudgetDocument)public void processDisapproval(AwardBudgetDocument awardBudgetDocument)
processDisapproval in interface AwardBudgetServiceAwardBudgetService.processDisapproval(org.kuali.kra.award.budget.document.AwardBudgetDocument)public void processSubmision(AwardBudgetDocument awardBudgetDocument)
processSubmision in interface AwardBudgetServiceAwardBudgetService.processSubmision(org.kuali.kra.award.budget.document.AwardBudgetDocument)protected void processStatusChange(AwardBudgetDocument awardBudgetDocument, String routingStatus)
public AwardBudgetDocument rebudget(AwardDocument awardDocument, String documentDescription) throws org.kuali.rice.kew.api.exception.WorkflowException
rebudget in interface AwardBudgetServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionorg.kuali.kra.award.budget.AwardBudgetService#rebudget(org.kuali.kra.award.budget.document.AwardBudgetDocument)protected org.kuali.rice.kew.api.WorkflowDocument getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
doc - the documentpublic org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - The parameterService to set.public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public org.kuali.rice.krad.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentservice)
documentService - The documentService to set.public BudgetDocument<Award> getNewBudgetVersion(BudgetParentDocument<Award> parentBudgetDocument, String documentDescription) throws org.kuali.rice.kew.api.exception.WorkflowException
BudgetCommonServicegetNewBudgetVersion in interface BudgetCommonService<Award>org.kuali.rice.kew.api.exception.WorkflowExceptionBudgetCommonService.getNewBudgetVersion(org.kuali.kra.budget.document.BudgetParentDocument, java.lang.String)protected AwardBudgetDocument copyPostedBudgetVersion(AwardDocument parentDocument)
protected AwardBudgetDocument createNewBudgetDocument(String documentDescription, AwardDocument parentDocument, boolean rebudget) throws org.kuali.rice.kew.api.exception.WorkflowException
documentDescription - parentDocument - org.kuali.rice.kew.api.exception.WorkflowExceptionpublic void setBudgetLimits(AwardBudgetDocument awardBudgetDocument, AwardDocument parentDocument)
AwardBudgetServicesetBudgetLimits in interface AwardBudgetServiceprotected void copyObligatedAmountToLineItems(AwardBudgetDocument awardBudgetDocument, BudgetDecimal obligatedChangeAmount)
protected AwardBudgetExt getLatestPostedBudget(AwardDocument awardDocument)
public BudgetDecimal getTotalCostLimit(AwardDocument awardDocument)
AwardBudgetServicegetTotalCostLimit in interface AwardBudgetServiceAwardBudgetService.getTotalCostLimit(org.kuali.kra.award.document.AwardDocument)protected BudgetDecimal getPostedTotalAmount(AwardDocument awardDocument)
awardDocument - protected boolean isPostedBudgetExist(AwardDocument awardDocument)
protected String getAwardPostedStatusCode()
protected BudgetVersionOverview getLastBudgetVersion(AwardDocument award)
protected void saveBudgetDocument(BudgetDocument<Award> budgetDocument, boolean rebudget) throws org.kuali.rice.kew.api.exception.WorkflowException
budgetDocument - isProposalBudget - budget - budgetParent - org.kuali.rice.kew.api.exception.WorkflowExceptionprotected void copyProposalBudgetLineItemsToAwardBudget(BudgetPeriod awardBudgetPeriod, BudgetPeriod proposalBudgetPeriod)
protected BudgetPerson findMatchingPersonInBudget(Budget budget, BudgetPerson oldBudgetPerson, String jobCode)
protected DeepCopyPostProcessor getDeepCopyPostProcessor()
public BudgetDocument<Award> copyBudgetVersion(BudgetDocument<Award> budgetDocument) throws org.kuali.rice.kew.api.exception.WorkflowException
copyBudgetVersion in interface BudgetCommonService<Award>org.kuali.rice.kew.api.exception.WorkflowExceptionBudgetCommonService.copyBudgetVersion(org.kuali.kra.budget.document.BudgetDocument)public BudgetDocument<Award> copyBudgetVersion(BudgetDocument<Award> budgetDocument, boolean onlyOnePeriod) throws org.kuali.rice.kew.api.exception.WorkflowException
copyBudgetVersion in interface BudgetCommonService<Award>org.kuali.rice.kew.api.exception.WorkflowExceptionpublic void setBudgetService(BudgetService<Award> budgetService)
budgetService - The budgetService to set.public BudgetService<Award> getBudgetService()
public BudgetSummaryService getBudgetSummaryService()
public void setBudgetSummaryService(BudgetSummaryService budgetSummaryService)
budgetSummaryService - The budgetSummaryService to set.public void copyLineItemsFromProposalPeriods(Collection rawValues, BudgetPeriod awardBudgetPeriod) throws org.kuali.rice.kew.api.exception.WorkflowException
AwardBudgetServicecopyLineItemsFromProposalPeriods in interface AwardBudgetServicerawValues - Collection of BudgetPeriods with line items to be copied to the awardBudgetPeriodorg.kuali.rice.kew.api.exception.WorkflowExceptionprotected List findObjectsWithSingleKey(Class clazz, String key, Object value)
clazz - key - value - public List<BudgetPeriod> findBudgetPeriodsFromLinkedProposal(String awardNumber)
AwardBudgetServicefindBudgetPeriodsFromLinkedProposal in interface AwardBudgetServiceAwardBudgetService.findBudgetPeriodsFromLinkedProposal(java.lang.String)public boolean checkForOutstandingBudgets(BudgetParentDocument parentDoc)
AwardBudgetServicecheckForOutstandingBudgets in interface AwardBudgetServicepublic List<String> getInactiveBudgetStatus()
AwardBudgetServicegetInactiveBudgetStatus in interface AwardBudgetServiceAwardBudgetService.getInactiveBudgetStatus()public void populateBudgetLimitSummary(BudgetLimitSummaryHelper summary, AwardDocument awardDocument)
AwardBudgetServiceprotected AwardBudgetExt getCurrentBudget(AwardDocument awardDocument)
awardDocument - protected AwardBudgetExt getPreviousBudget(AwardDocument awardDocument)
awardDocument - protected AwardBudgetExt getNewestBudgetByStatus(AwardDocument awardDocument, List<String> statuses)
public List<BudgetDocumentVersion> getAllBudgetsForAward(AwardDocument awardDocument)
getAllBudgetsForAward in interface AwardBudgetServicepublic Award getActiveOrNewestAward(String awardNumber)
AwardBudgetServicegetActiveOrNewestAward in interface AwardBudgetServiceprotected String getPostedBudgetStatus()
protected String getRejectedBudgetStatus()
protected String getCancelledBudgetStatus()
protected String getDisapprovedBudgetStatus()
protected String getDoNotPostBudgetStatus()
protected VersionHistoryService getVersionHistoryService()
public void setVersionHistoryService(VersionHistoryService versionHistoryService)
protected AwardBudgetCalculationService getAwardBudgetCalculationService()
public void setAwardBudgetCalculationService(AwardBudgetCalculationService awardBudgetCalculationService)
protected BudgetCalculationService getBudgetCalculationService()
public void setBudgetCalculationService(BudgetCalculationService budgetCalculationService)
public boolean isRateOverridden(BudgetPeriod budgetPeriod)
BudgetCommonServiceisRateOverridden in interface BudgetCommonService<Award>public void recalculateBudget(Budget budget)
BudgetCommonServicerecalculateBudget in interface BudgetCommonService<Award>public void recalculateBudgetPeriod(Budget budget, BudgetPeriod budgetPeriod)
recalculateBudgetPeriod in interface BudgetCommonService<Award>public void calculateBudgetOnSave(Budget budget)
BudgetCommonServicecalculateBudgetOnSave in interface BudgetCommonService<Award>public void populateSummaryCalcAmounts(Budget budget, BudgetPeriod budgetPeriod)
populateSummaryCalcAmounts in interface BudgetCommonService<Award>protected void setBudgetCostsFromPeriods(Budget budget)
budget - the budget document to set the costs on.public boolean isRateOverridden(Budget budget)
BudgetCommonServiceisRateOverridden in interface BudgetCommonService<Award>public void removeBudgetSummaryPeriodCalcAmounts(BudgetPeriod budgetPeriod)
BudgetCommonServiceremoveBudgetSummaryPeriodCalcAmounts in interface BudgetCommonService<Award>public boolean validateAddingNewBudget(BudgetParentDocument<Award> parentDocument)
BudgetCommonServicevalidateAddingNewBudget in interface BudgetCommonService<Award>BudgetCommonService.validateAddingNewBudget(org.kuali.kra.budget.document.BudgetParentDocument)public boolean checkRateChange(Collection<BudgetRate> savedBudgetRates, Award award)
AwardBudgetServicecheckRateChange in interface AwardBudgetServiceprotected AwardService getAwardService()
public void setAwardService(AwardService awardService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.