public abstract class BudgetAdjustmentClientBase extends Object implements BudgetAdjustmentClient
| Modifier and Type | Field and Description |
|---|---|
protected static QName |
SERVICE_NAME |
protected static String |
SOAP_SERVICE_NAME |
| Constructor and Description |
|---|
BudgetAdjustmentClientBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAccountingLines(Map<String,BudgetDecimal> accountingLines,
AwardBudgetDocument awardBudgetDocument,
BudgetAdjustmentParametersDTO parametersDTO)
This method creates the accounting lines for the BA.
|
void |
createBudgetAdjustmentDocument(AwardBudgetDocument awardBudgetDocument) |
protected boolean |
createBudgetAdjustmentDocumentHeader(AwardBudgetDocument awardBudgetDocument,
BudgetAdjustmentParametersDTO parametersDTO)
This method sets the budget adjustment document header.
|
protected String |
getAwardAccount(AwardBudgetDocument awardBudgetDocument)
This method returns the award account number.
|
protected String |
getAwardChart(AwardBudgetDocument awardBudgetDocument)
This method returns the chart of accounts code associated with the account.
|
protected BudgetAdjustmentServiceHelper |
getBudgetAdjustmentServiceHelper() |
protected org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
protected String[] |
getElements(String person)
This method splits the string into object code and person id.
|
protected String |
getFinancialObjectCode(AwardBudgetDocument awardBudgetDocument,
String rateClassCode,
String rateTypeCode)
This is obtained using the mapping table.
|
protected String |
getFinancialObjectCode(String costElementName)
This is obtained from the cost element table.
|
protected List<FinancialObjectCodeMapping> |
getFinancialObjectCodesFromMappingTable(String rateClassCode,
String rateTypeCode,
String unitNumber)
This method gets the KFs object code from the mapping table.
|
protected AwardBudgetExt |
getNewestBudgetByStatus(AwardDocument awardDocument,
List<String> statuses)
This method returns the newest budget by status
|
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
protected String |
getParameterValue(String awardBudgetParameter) |
protected String |
getParameterValue(String parameterName,
String key)
This method gets the parameter list which is in the form key=financialSystemCode, checks if the kcCode
is found and returns the corresponding financial code.
|
protected String |
getPostedBudgetStatus() |
protected AwardBudgetExt |
getPrevBudget(AwardBudgetDocument awardBudgetDocument)
This method returns the previous version of the award budget.
|
protected AwardBudgetExt |
getPrevBudget(AwardDocument awardDocument)
This method returns previous budget
|
protected String |
getProjectCode() |
protected abstract BudgetAdjustmentService |
getServiceHandle()
This method gets either the SOAP handle or the KSB handle depending on the configuration.
|
boolean |
setBudgetAdjustmentParameters(AwardBudgetDocument awardBudgetDocument,
BudgetAdjustmentParametersDTO parametersDTO)
This method adds the accounting lines to the DTO
|
void |
setBudgetAdjustmentServiceHelper(BudgetAdjustmentServiceHelper budgetAdjustmentServiceHelper) |
void |
setBudgetCalculationService(BudgetCalculationService budgetCalculationService) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
protected boolean |
setIndirectCostAccountingLine(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
This method sets the indirect cost.
|
void |
setInstitutionalUnitService(InstitutionalUnitService institutionalUnitService) |
protected boolean |
setNonPersonnelAccountingLines(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
This method sets the no personnel accounting line.
|
protected boolean |
setNonPersonnelCalculatedDirectCostAccountingLines(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
This method sets the non personnel calculated direct cost.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
protected boolean |
setPersonnelFringeAccountingLines(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
This method sets the fringe line.
|
protected boolean |
setPersonnelSalaryAccountingLines(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
This method sets the personnel salary accounting line.
|
protected boolean |
setPersonnnelCalculatedDirectCost(AwardBudgetDocument awardBudgetDocument,
Map<String,BudgetDecimal> accountingLines)
Sets PersonnelCalculatedDirect cost
|
protected static final String SOAP_SERVICE_NAME
protected static final QName SERVICE_NAME
protected abstract BudgetAdjustmentService getServiceHandle()
public void createBudgetAdjustmentDocument(AwardBudgetDocument awardBudgetDocument) throws Exception
createBudgetAdjustmentDocument in interface BudgetAdjustmentClientExceptionorg.kuali.kra.external.budget.BudgetAdjustmentClient#createBudgetAdjustmentDocument()public boolean setBudgetAdjustmentParameters(AwardBudgetDocument awardBudgetDocument, BudgetAdjustmentParametersDTO parametersDTO) throws Exception
parametersDTO - Exceptionprotected boolean setPersonnnelCalculatedDirectCost(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines)
accountingLines - protected boolean setIndirectCostAccountingLine(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines)
accountingLines - protected boolean setPersonnelFringeAccountingLines(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines)
accountingLines - protected boolean setPersonnelSalaryAccountingLines(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines) throws Exception
accountingLines - Exceptionprotected String[] getElements(String person) throws Exception
person - Exceptionprotected boolean setNonPersonnelCalculatedDirectCostAccountingLines(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines)
accountingLines - protected boolean setNonPersonnelAccountingLines(AwardBudgetDocument awardBudgetDocument, Map<String,BudgetDecimal> accountingLines)
accountingLines - protected AwardBudgetExt getPrevBudget(AwardBudgetDocument awardBudgetDocument)
protected String getPostedBudgetStatus()
protected AwardBudgetExt getPrevBudget(AwardDocument awardDocument)
awardDocument - protected AwardBudgetExt getNewestBudgetByStatus(AwardDocument awardDocument, List<String> statuses)
awardDocument - statuses - protected boolean createBudgetAdjustmentDocumentHeader(AwardBudgetDocument awardBudgetDocument, BudgetAdjustmentParametersDTO parametersDTO)
protected void createAccountingLines(Map<String,BudgetDecimal> accountingLines, AwardBudgetDocument awardBudgetDocument, BudgetAdjustmentParametersDTO parametersDTO)
protected String getParameterValue(String parameterName, String key)
parameterName - kcCode - protected String getAwardChart(AwardBudgetDocument awardBudgetDocument)
awardBudgetDocument - protected String getProjectCode()
protected String getFinancialObjectCode(AwardBudgetDocument awardBudgetDocument, String rateClassCode, String rateTypeCode)
rateClassCode - rateTypeCode - protected String getFinancialObjectCode(String costElementName)
costElementName - protected List<FinancialObjectCodeMapping> getFinancialObjectCodesFromMappingTable(String rateClassCode, String rateTypeCode, String unitNumber)
rateClassCode - rateTypeCode - unitNumber - protected String getAwardAccount(AwardBudgetDocument awardBudgetDocument)
awardBudgetDocument - protected BudgetAdjustmentServiceHelper getBudgetAdjustmentServiceHelper()
public void setBudgetAdjustmentServiceHelper(BudgetAdjustmentServiceHelper budgetAdjustmentServiceHelper)
setBudgetAdjustmentServiceHelper in interface BudgetAdjustmentClientpublic void setInstitutionalUnitService(InstitutionalUnitService institutionalUnitService)
setInstitutionalUnitService in interface BudgetAdjustmentClientprotected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
setBusinessObjectService in interface BudgetAdjustmentClientpublic void setBudgetCalculationService(BudgetCalculationService budgetCalculationService)
setBudgetCalculationService in interface BudgetAdjustmentClientpublic org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
setParameterService in interface BudgetAdjustmentClientpublic void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
setDocumentService in interface BudgetAdjustmentClientdocumentService - The documentService to set.Copyright © 2013 The Kuali Foundation. All Rights Reserved.