|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.gl.service.impl.SufficientFundsServiceImpl
@Transactional public class SufficientFundsServiceImpl
The base implementation of SufficientFundsService
| Nested Class Summary | |
|---|---|
protected class |
SufficientFundsServiceImpl.PendingAmounts
An inner class to hold summary totals of pending ledger entry amounts |
| Field Summary |
|---|
| Fields inherited from interface org.kuali.kfs.gl.service.SufficientFundsServiceConstants |
|---|
KUALI_TRANSACTION_PROCESSING_SUFFICIENT_FUNDS_SECURITY_GROUPING, SUFFICIENT_FUNDS_OBJECT_CODE_CASH_IN_BANK, SUFFICIENT_FUNDS_OBJECT_CODE_SPECIALS |
| Constructor Summary | |
|---|---|
SufficientFundsServiceImpl()
Default constructor |
|
| Method Summary | |
|---|---|
List<SufficientFundsItem> |
checkSufficientFunds(GeneralLedgerPostingDocument document)
Checks for sufficient funds on a single document |
List<SufficientFundsItem> |
checkSufficientFunds(List<? extends Transaction> transactions)
Checks for sufficient funds on a list of transactions |
protected SufficientFundsServiceImpl.PendingAmounts |
getPendingBalanceAmount(SufficientFundsItem item)
Totals the amounts of actual, encumbrance, and budget amounts from related pending entries |
protected SufficientFundsServiceImpl.PendingAmounts |
getPriorYearSufficientFundsBalanceAmount(SufficientFundsItem item)
Given a sufficient funds item to check, gets the prior year sufficient funds balance to check against |
String |
getSufficientFundsObjectCode(ObjectCode financialObject,
String accountSufficientFundsCode)
This operation derives the acct_sf_finobj_cd which is used to populate the General Ledger Pending entry table, so that later we can do Suff Fund checking against that entry |
protected boolean |
hasSufficientFundsOnItem(SufficientFundsItem item)
Given a sufficient funds item record, determines if there are sufficient funds available for the transaction |
protected boolean |
isYearEndDocument(Class documentClass)
checks to see if a document is a YearEndDocument |
void |
purgeYearByChart(String chart,
int year)
Purge the sufficient funds balance table by year/chart |
void |
setAccountService(AccountService accountService)
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService)
|
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
|
void |
setObjectLevelService(ObjectLevelService objectLevelService)
|
void |
setOptionsService(OptionsService optionsService)
|
void |
setSufficientFundBalancesDao(SufficientFundBalancesDao sufficientFundBalancesDao)
|
void |
setSufficientFundsDao(SufficientFundsDao sufficientFundsDao)
|
protected List<SufficientFundsItem> |
summarizeTransactions(List<? extends Transaction> transactions)
For each transaction, fetches the appropriate sufficient funds item to check against |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SufficientFundsServiceImpl()
| Method Detail |
|---|
public String getSufficientFundsObjectCode(ObjectCode financialObject,
String accountSufficientFundsCode)
getSufficientFundsObjectCode in interface SufficientFundsServicefinancialObject - the object code being checked againstaccountSufficientFundsCode - the kind of sufficient funds checking turned on in this system
SufficientFundsService.getSufficientFundsObjectCode(org.kuali.kfs.coa.businessobject.ObjectCode,
java.lang.String)public List<SufficientFundsItem> checkSufficientFunds(GeneralLedgerPostingDocument document)
checkSufficientFunds in interface SufficientFundsServicedocument - document to check
org.kuali.kfs.gl.service.SufficientFundsService#checkSufficientFunds(org.kuali.rice.kns.document.FinancialDocument)protected boolean isYearEndDocument(Class documentClass)
YearEndDocument
documentClass - the class of a Document to check
YearEndDocumentpublic List<SufficientFundsItem> checkSufficientFunds(List<? extends Transaction> transactions)
checkSufficientFunds in interface SufficientFundsServicetransactions - list of transactions
SufficientFundsService.checkSufficientFunds(java.util.List)protected List<SufficientFundsItem> summarizeTransactions(List<? extends Transaction> transactions)
transactions - a list of Transactions
protected boolean hasSufficientFundsOnItem(SufficientFundsItem item)
item - the item to check
protected SufficientFundsServiceImpl.PendingAmounts getPriorYearSufficientFundsBalanceAmount(SufficientFundsItem item)
item - the sufficient funds item to check against
protected SufficientFundsServiceImpl.PendingAmounts getPendingBalanceAmount(SufficientFundsItem item)
item - a sufficient funds item to find pending amounts for
public void purgeYearByChart(String chart,
int year)
purgeYearByChart in interface SufficientFundsServicechart - the chart of sufficient fund balances to purgeyear - the fiscal year of sufficient fund balances to purgepublic void setAccountService(AccountService accountService)
public void setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService)
public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
public void setObjectLevelService(ObjectLevelService objectLevelService)
public void setOptionsService(OptionsService optionsService)
public void setSufficientFundBalancesDao(SufficientFundBalancesDao sufficientFundBalancesDao)
public void setSufficientFundsDao(SufficientFundsDao sufficientFundsDao)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||