|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.gl.service.impl.BalanceServiceImpl
@Transactional public class BalanceServiceImpl
This class is the OJB implementation of the Balance Service
| Field Summary | |
|---|---|
protected BalanceDao |
balanceDao
|
protected OptionsService |
optionsService
|
| Constructor Summary | |
|---|---|
BalanceServiceImpl()
|
|
| Method Summary | |
|---|---|
boolean |
beginningBalanceLoaded(Account account)
Returns whether or not the beginning budget is loaded for the given account. |
int |
countBalancesForFiscalYear(Integer year)
Uses the DAO to count the number of balances associated with the given fiscal year |
protected org.kuali.rice.kns.util.KualiDecimal |
expenseBalances(Account account)
Sums all the balances associated with a given account that would be considered "expense" balances |
Iterator |
findBalance(Map fieldValues,
boolean isConsolidated)
This method gets the size of balance entries according to input fields and values |
Iterator<Balance> |
findBalancesForFiscalYear(Integer fiscalYear)
Defers to the DAO to find all balances in the fiscal year. |
Iterator |
findCashBalance(Map fieldValues,
boolean isConsolidated)
This method finds the summary records of balance entries according to input fields an values, using the DAO |
Iterator<Balance> |
findCumulativeBalancesToForwardForFiscalYear(Integer year)
Returns all the balances to be forwarded for the "cumulative" rule |
Iterator<Balance> |
findGeneralBalancesToForwardForFiscalYear(Integer year)
Returns all the balances specifically to be processed by the balance forwards job for the "general" rule |
Iterator<Balance> |
findNominalActivityBalancesForFiscalYear(Integer year)
This method returns all of the balances specifically for the nominal activity closing job |
Iterator<Balance> |
findOrganizationReversionBalancesForFiscalYear(Integer year,
boolean endOfYear)
Returns all of the balances to be forwarded for the organization reversion process |
boolean |
fundBalanceWillNetToZero(Account account)
Checks to see if the total income balances for the given account equal the total expense balances for the given account |
protected String[] |
getActualBalanceCodes()
Use the options table to get a list of all the balance type codes associated with actual balances |
protected String[] |
getAssetLiabilityFundBalanceBalanceTypeCodes()
Uses the options table to find all the balance type codes associated with asset/liability |
Integer |
getBalanceRecordCount(Map fieldValues,
boolean isConsolidated)
This method finds the summary records of balance entries according to input fields and values |
Integer |
getCashBalanceRecordCount(Map fieldValues,
boolean isConsolidated)
This method gets the size of cash balance entries according to input fields and values |
protected String[] |
getEncumbranceBaseBudgetBalanceTypeCodes()
Uses the options table to create a list of all the balance type codes associated with encumbrances |
protected String[] |
getExpenseObjectTypeCodes()
Uses the options table to find all the balance type codes associated with expenses |
List<GlSummary> |
getGlSummary(int universityFiscalYear,
List<String> balanceTypeCodes)
Get the GL Balance summary for the GL Summary report |
protected String[] |
getIncomeObjectTypeCodes()
Uses the options table to find all the balance type codes associated with income |
boolean |
hasAssetLiabilityFundBalanceBalances(Account account)
Checks the given account to see if there are any non zero asset fund liability fund balances for them |
boolean |
hasAssetLiabilityOrFundBalance(Account account)
Determines if the account has asset/liability balances associated with it that will have a net impact |
boolean |
hasEncumbrancesOrBaseBudgets(Account account)
Finds all of the encumbrance balances for the given account, and figures out if those encumbrances will have a net impact on the budget |
protected org.kuali.rice.kns.util.KualiDecimal |
incomeBalances(Account account)
Returns the sum of balances considered as income for the given account |
protected void |
loadConstantsFromOptions()
Private method to load the values from the system options service and store them locally for later use. |
void |
purgeYearByChart(String chart,
int year)
Purge the balance table by year/chart |
void |
save(Balance b)
Saves the balance in a no-nonsense, straight away, three piece suit sort of way |
void |
setBalanceDao(BalanceDao balanceDao)
|
void |
setOptionsService(OptionsService optionsService)
|
protected org.kuali.rice.kns.util.KualiDecimal |
sumBalances(Iterator balances)
Given an iterator of balances, this returns the sum of each balance's beginning balance line amount + annual account linge balance amount |
protected Collection |
wrap(String[] s)
Turns an array of Strings into a List of Strings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BalanceDao balanceDao
protected OptionsService optionsService
| Constructor Detail |
|---|
public BalanceServiceImpl()
| Method Detail |
|---|
protected Collection wrap(String[] s)
s - an array of Strings
public List<GlSummary> getGlSummary(int universityFiscalYear,
List<String> balanceTypeCodes)
BalanceService
getGlSummary in interface BalanceServiceuniversityFiscalYear - the fiscal year to find balances forbalanceTypeCodes - the balance types to summarize
BalanceService.getGlSummary(int, java.util.List)public Iterator<Balance> findBalancesForFiscalYear(Integer fiscalYear)
findBalancesForFiscalYear in interface BalanceServicefiscalYear - the fiscal year to find balances for
BalanceService.findBalancesForFiscalYear(java.lang.Integer)public boolean hasAssetLiabilityFundBalanceBalances(Account account)
hasAssetLiabilityFundBalanceBalances in interface BalanceServiceaccount - an account to find balances for
BalanceService.hasAssetLiabilityFundBalanceBalances(org.kuali.kfs.coa.businessobject.Account)protected org.kuali.rice.kns.util.KualiDecimal sumBalances(Iterator balances)
balances - an Iterator of balances to sum
protected org.kuali.rice.kns.util.KualiDecimal incomeBalances(Account account)
account - the account to find income balances for
protected org.kuali.rice.kns.util.KualiDecimal expenseBalances(Account account)
account - an account to find expense balances for
public boolean fundBalanceWillNetToZero(Account account)
fundBalanceWillNetToZero in interface BalanceServicean - account to find balances for
BalanceService.fundBalanceWillNetToZero(org.kuali.kfs.coa.businessobject.Account)public boolean hasEncumbrancesOrBaseBudgets(Account account)
hasEncumbrancesOrBaseBudgets in interface BalanceServiceaccount - an account to find balances for
BalanceService.hasEncumbrancesOrBaseBudgets(org.kuali.kfs.coa.businessobject.Account)public boolean beginningBalanceLoaded(Account account)
beginningBalanceLoaded in interface BalanceServicean - account to check whether the beginning balance is loaded for
BalanceService.beginningBalanceLoaded(org.kuali.kfs.coa.businessobject.Account)public boolean hasAssetLiabilityOrFundBalance(Account account)
hasAssetLiabilityOrFundBalance in interface BalanceServiceaccount - an account to check balances for
BalanceService.hasAssetLiabilityOrFundBalance(org.kuali.kfs.coa.businessobject.Account)public void save(Balance b)
save in interface BalanceServiceb - the balance to saveBalanceService.save(org.kuali.kfs.gl.businessobject.Balance)public void setBalanceDao(BalanceDao balanceDao)
public void setOptionsService(OptionsService optionsService)
public Iterator findCashBalance(Map fieldValues,
boolean isConsolidated)
findCashBalance in interface BalanceServicefieldValues - the input fields an valuesisConsolidated - consolidation option is applied or not
BalanceService.findCashBalance(java.util.Map, boolean)
public Integer getCashBalanceRecordCount(Map fieldValues,
boolean isConsolidated)
getCashBalanceRecordCount in interface BalanceServicefieldValues - the input fields and valuesisConsolidated - consolidation option is applied or not
BalanceService.getCashBalanceRecordCount(java.util.Map, boolean)
public Iterator findBalance(Map fieldValues,
boolean isConsolidated)
findBalance in interface BalanceServicefieldValues - the input fields and valuesisConsolidated - consolidation option is applied or not
BalanceService.findBalance(java.util.Map, boolean)
public Integer getBalanceRecordCount(Map fieldValues,
boolean isConsolidated)
getBalanceRecordCount in interface BalanceServicefieldValues - the input fields and valuesisConsolidated - consolidation option is applied or not
BalanceService.getBalanceRecordCount(java.util.Map, boolean)
public void purgeYearByChart(String chart,
int year)
purgeYearByChart in interface BalanceServicechart - the chart of balances to purgeyear - the year of balances to purgeprotected void loadConstantsFromOptions()
protected String[] getActualBalanceCodes()
protected String[] getIncomeObjectTypeCodes()
protected String[] getExpenseObjectTypeCodes()
protected String[] getAssetLiabilityFundBalanceBalanceTypeCodes()
protected String[] getEncumbranceBaseBudgetBalanceTypeCodes()
public int countBalancesForFiscalYear(Integer year)
countBalancesForFiscalYear in interface BalanceServicefiscal - year a fiscal year to count balances for
BalanceService.countBalancesForFiscalYear(java.lang.Integer)public Iterator<Balance> findNominalActivityBalancesForFiscalYear(Integer year)
findNominalActivityBalancesForFiscalYear in interface BalanceServiceyear - year to find balances for
BalanceService.findNominalActivityBalancesForFiscalYear(java.lang.Integer)public Iterator<Balance> findCumulativeBalancesToForwardForFiscalYear(Integer year)
findCumulativeBalancesToForwardForFiscalYear in interface BalanceServiceyear - the fiscal year to find balances for
BalanceService.findCumulativeBalancesToForwardForFiscalYear(java.lang.Integer)public Iterator<Balance> findGeneralBalancesToForwardForFiscalYear(Integer year)
findGeneralBalancesToForwardForFiscalYear in interface BalanceServiceyear - the fiscal year to find balances for
BalanceService.findGeneralBalancesToForwardForFiscalYear(java.lang.Integer)
public Iterator<Balance> findOrganizationReversionBalancesForFiscalYear(Integer year,
boolean endOfYear)
findOrganizationReversionBalancesForFiscalYear in interface BalanceServiceyear - the year of balances to findendOfYear - whether the organization reversion process is running end of year (before the fiscal year change over) or beginning of year (after the fiscal year change over)
BalanceService.findOrganizationReversionBalancesForFiscalYear(java.lang.Integer, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||