public class BudgetJustificationServiceImpl extends Object implements BudgetJustificationService
| Constructor and Description |
|---|
BudgetJustificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBudgetPeriodFooter(StringBuilder sb)
This method adds the required footer between budget period justifications
|
protected void |
addBudgetPeriodHeader(StringBuilder sb,
int budgetPeriodNumber)
This method adds the required header for each budget period
|
protected void |
addConsolidatedLineItemJustificationText(Budget budget,
BudgetJustificationWrapper budgetJustificationWrapper)
This method adds consolidated Line Item Justification text to any existing text
|
protected void |
addJustificationTextByBudgetPeriod(BudgetPeriod budgetPeriod,
StringBuilder sb)
This method aggregates Justification text by BudgetPeriod
|
protected boolean |
addLineItemJustificationText(Map<String,CostElement> costElementsMappedToCostElementCode,
StringBuilder sb,
int budgetPeriodNumber,
boolean periodHeaderAdded,
BudgetLineItem lineItem)
This method aggregates Line Item Justification text for a budget period
|
protected void |
addLineItemJustificationTextElements(Map<String,CostElement> costElementsMappedToCostElementCode,
StringBuilder sb,
BudgetLineItem lineItem,
String lineItemJustification)
This method adds the line item justification elements to the buffer
|
protected void |
addLineItemJustificationTextSeparatorText(StringBuilder sb)
This method adds the required seprator text
|
void |
consolidateExpenseJustifications(Budget budget,
BudgetJustificationWrapper budgetJustificationWrapper) |
protected String |
getLoggedInUserNetworkId()
This method looks up user id.
|
protected Map<String,CostElement> |
loadCostElements()
This method loads Cost Elements, mapping them to their cost element code
|
void |
preSave(Budget budget,
BudgetJustificationWrapper budgetJustificationWrapper) |
protected void |
updateJustficationMetaData(BudgetJustificationWrapper budgetJustificationWrapper)
This method updates the Justification text meta-data with the user and date/time
|
public void consolidateExpenseJustifications(Budget budget, BudgetJustificationWrapper budgetJustificationWrapper) throws BudgetException
consolidateExpenseJustifications in interface BudgetJustificationServiceBudgetExceptionorg.kuali.kra.budget.nonpersonnel.BudgetJustificationService#consolidateExpenseJustifications(org.kuali.kra.budget.document.BudgetDocument, org.kuali.kra.budget.nonpersonnel.BudgetJustificationWrapper)public void preSave(Budget budget, BudgetJustificationWrapper budgetJustificationWrapper)
preSave in interface BudgetJustificationServiceorg.kuali.kra.budget.nonpersonnel.BudgetJustificationService#preSave(org.kuali.kra.budget.document.BudgetDocument, org.kuali.kra.budget.nonpersonnel.BudgetJustificationWrapper)protected String getLoggedInUserNetworkId()
protected Map<String,CostElement> loadCostElements()
protected void addBudgetPeriodFooter(StringBuilder sb)
sb - protected void addBudgetPeriodHeader(StringBuilder sb, int budgetPeriodNumber)
sb - budgetPeriodNumber - protected void addConsolidatedLineItemJustificationText(Budget budget, BudgetJustificationWrapper budgetJustificationWrapper)
budget - budgetJustificationWrapper - protected void addJustificationTextByBudgetPeriod(BudgetPeriod budgetPeriod, StringBuilder sb)
budgetPeriod - sb - protected boolean addLineItemJustificationText(Map<String,CostElement> costElementsMappedToCostElementCode, StringBuilder sb, int budgetPeriodNumber, boolean periodHeaderAdded, BudgetLineItem lineItem)
costElementsMappedToCostElementCode - sb - budgetPeriodNumber - periodHeaderAdded - lineItem - protected void addLineItemJustificationTextElements(Map<String,CostElement> costElementsMappedToCostElementCode, StringBuilder sb, BudgetLineItem lineItem, String lineItemJustification)
costElementsMappedToCostElementCode - sb - lineItem - lineItemJustification - protected void addLineItemJustificationTextSeparatorText(StringBuilder sb)
sb - protected void updateJustficationMetaData(BudgetJustificationWrapper budgetJustificationWrapper)
budgetJustificationWrapper - Copyright © 2013 The Kuali Foundation. All Rights Reserved.