public interface BudgetService<T extends BudgetParent>
| Modifier and Type | Method and Description |
|---|---|
BudgetDocument<T> |
addBudgetVersion(BudgetParentDocument<T> document,
String versionName)
Service method for adding a
BudgetVersionOverview to a ProposalDevelopmentDocument. |
boolean |
checkActivityTypeChange(BudgetParentDocument<T> pdDoc,
Budget budget)
This method check if activity type changed, then display confirmation message on 'open' budget version.
|
boolean |
checkActivityTypeChange(Collection<BudgetRate> allPropRates,
String proposalActivityTypeCode)
This method checks if activity type changed, then display confirmation message on 'open' budget version.
|
BudgetDocument<T> |
copyBudgetVersion(BudgetDocument<T> budgetDocument,
boolean onlyOnePeriod)
Returns a new finalized BudgetDocument with the data from the given BudgetDocument copied over.
|
String |
getActivityTypeForBudget(BudgetDocument<T> budgetDocument) |
List<ValidCeJobCode> |
getApplicableCostElements(Long budgetId,
String personSequenceNumber)
This method returns the applicable Object Codes (Cost Elements) for a given Budget Person
based on his Job Code
|
String |
getApplicableCostElementsForAjaxCall(Long budgetId,
String personSequenceNumber,
String budgetCategoryTypeCode)
This method returns the applicable Object Codes (Cost Elements) for a given Budget Person, converted to string separated by ",".
|
BudgetDecimal |
getBaseSalaryByPeriod(Long budgetId,
int budgetPeriod,
KeyPersonInfo keyPerson) |
String |
getBudgetExpensePanelName(BudgetPeriod budgetPeriod,
BudgetLineItem budgetLineItem)
This method returns the Non-Personnel Panel Name (based on the variables).
|
List<String> |
getExistingGroupNames(String budgetId,
String budgetPeriod)
This method returns the existing Personnel Line Item Group Names
based on his Job Code
|
String |
getExistingGroupNamesForAjaxCall(String budgetId,
String budgetPeriod)
This method returns the existing Personnel Line Item Group Names , converted to string separated by ",".
|
List<BudgetLineItem> |
getMatchingLineItems(List<BudgetLineItem> lineItems,
List<String> objectCodes) |
String |
getParticipantSupportCategoryCode() |
Collection<BudgetRate> |
getSavedBudgetRates(Budget budget)
This method returns the saved Proposal Rates collection.
|
Collection<BudgetRate> |
getSavedProposalRates(BudgetVersionOverview budgetToOpen) |
boolean |
isBudgetVersionNameValid(BudgetParentDocument<T> document,
String versionName)
Determine if the names of a
BudgetVersionOverview instances in the given ProposalDevelopmentDocument instance is valid |
String |
populateBudgetPersonSalaryDetailsInPeriods(String budgetId,
String personSequenceNumber,
String personId) |
void |
populateNewBudgetLineItem(BudgetLineItem newBudgetLineItem,
BudgetPeriod budgetPeriod) |
void |
updateDocumentDescription(BudgetVersionOverview budgetVersion) |
boolean |
validateBudgetAuditRule(BudgetParentDocument<T> parentDocument)
This method to invoke audit rule check for budget if status is final only
This is called by PD's turnon validation
|
boolean |
validateBudgetAuditRuleBeforeSaveBudgetVersion(BudgetParentDocument<T> proposalDevelopmentDocument)
This method to check the audit rule when try to save 'budgetversion' and with 'complete' status.
|
boolean |
ValidInflationCeRate(BudgetLineItemBase budgetLineItem)
check if this line item CE has inflation rate
This method...
|
BudgetDocument<T> addBudgetVersion(BudgetParentDocument<T> document, String versionName) throws org.kuali.rice.kew.api.exception.WorkflowException
BudgetVersionOverview to a ProposalDevelopmentDocument. If a
BudgetVersionOverview instance with the versionName already exists
in the ProposalDevelopmentDocument, then a hard error will occur. Try it and you'll see what I mean.document - instance to add BudgetVersionOverview toversionName - of the BudgetVersionOvervieworg.kuali.rice.kew.api.exception.WorkflowExceptionvoid updateDocumentDescription(BudgetVersionOverview budgetVersion)
boolean checkActivityTypeChange(BudgetParentDocument<T> pdDoc, Budget budget)
pdDoc - budgetVersionNumbe - boolean checkActivityTypeChange(Collection<BudgetRate> allPropRates, String proposalActivityTypeCode)
allPropRates - proposalActivityTypeCode - Collection<BudgetRate> getSavedBudgetRates(Budget budget)
pdDoc - budgetVersionNumbe - boolean ValidInflationCeRate(BudgetLineItemBase budgetLineItem)
budgetDocument - budgetLineItem - String getActivityTypeForBudget(BudgetDocument<T> budgetDocument)
List<ValidCeJobCode> getApplicableCostElements(Long budgetId, String personSequenceNumber)
proposalNumber - budgetVersionNumber - personSequenceNumber - String getApplicableCostElementsForAjaxCall(Long budgetId, String personSequenceNumber, String budgetCategoryTypeCode)
proposalNumber - budgetVersionNumber - personSequenceNumber - List<String> getExistingGroupNames(String budgetId, String budgetPeriod)
proposalNumber - budgetVersionNumber - budgetPeriod - String getExistingGroupNamesForAjaxCall(String budgetId, String budgetPeriod)
proposalNumber - budgetVersionNumber - budgetPeriod - String getBudgetExpensePanelName(BudgetPeriod budgetPeriod, BudgetLineItem budgetLineItem)
budgetPeriod - budgetLineItem - String getParticipantSupportCategoryCode()
List<BudgetLineItem> getMatchingLineItems(List<BudgetLineItem> lineItems, List<String> objectCodes)
Collection<BudgetRate> getSavedProposalRates(BudgetVersionOverview budgetToOpen)
boolean validateBudgetAuditRuleBeforeSaveBudgetVersion(BudgetParentDocument<T> proposalDevelopmentDocument) throws Exception
proposalDevelopmentDocument - Exceptionboolean isBudgetVersionNameValid(BudgetParentDocument<T> document, String versionName)
BudgetVersionOverview instances in the given ProposalDevelopmentDocument instance is validdocument - ProposalDevelopmentDocument instance to get BudgetVersionOverview instances fromversionName - to checkboolean validateBudgetAuditRule(BudgetParentDocument<T> parentDocument) throws Exception
proposalDevelopmentDocument - ExceptionBudgetDocument<T> copyBudgetVersion(BudgetDocument<T> budgetDocument, boolean onlyOnePeriod) throws org.kuali.rice.kew.api.exception.WorkflowException
budgetDocument - onlyOnePeriod - org.kuali.rice.kew.api.exception.WorkflowExceptionString populateBudgetPersonSalaryDetailsInPeriods(String budgetId, String personSequenceNumber, String personId)
BudgetDecimal getBaseSalaryByPeriod(Long budgetId, int budgetPeriod, KeyPersonInfo keyPerson)
void populateNewBudgetLineItem(BudgetLineItem newBudgetLineItem, BudgetPeriod budgetPeriod)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.