|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.service.impl.GeneralLedgerPendingEntryServiceImpl
@Transactional public class GeneralLedgerPendingEntryServiceImpl
This class is the service implementation for the GeneralLedgerPendingEntry structure. This is the default implementation, that is delivered with Kuali.
| Constructor Summary | |
|---|---|
GeneralLedgerPendingEntryServiceImpl()
|
|
| Method Summary | |
|---|---|
GeneralLedgerPendingEntry |
buildGeneralLedgerPendingEntry(GeneralLedgerPostingDocument document,
Account account,
ObjectCode objectCode,
String subAccountNumber,
String subObjectCode,
String organizationReferenceId,
String projectCode,
String referenceNumber,
String referenceTypeCode,
String referenceOriginCode,
String description,
boolean isDebit,
org.kuali.rice.kns.util.KualiDecimal amount,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Convenience method to build a GLPE without a generalLedgerPendingEntrySourceDetail |
void |
delete(String documentHeaderId)
|
void |
deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
Delete all pending entries for a specific document approved code |
void |
fillInFiscalPeriodYear(GeneralLedgerPendingEntry glpe)
The fiscal year and period is null in quite a few glpe's. |
Iterator |
findApprovedPendingLedgerEntries()
The method finds all pending ledger entries |
Collection |
findPendingEntries(Map fieldValues,
boolean isApproved)
|
Iterator |
findPendingLedgerEntries(Balance balance,
boolean isApproved,
boolean isConsolidated)
This method retrieves all pending ledger entries for the given encumbrance |
Iterator |
findPendingLedgerEntries(Encumbrance encumbrance,
boolean isApproved)
This method retrieves all pending ledger entries for the given encumbrance |
Iterator |
findPendingLedgerEntriesForAccountBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to the given account balance record in the future |
Iterator |
findPendingLedgerEntriesForBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries matching the given balance criteria |
Iterator |
findPendingLedgerEntriesForCashBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to cash balance in the future |
Iterator |
findPendingLedgerEntriesForEncumbrance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to encumbrance table in the future |
Iterator |
findPendingLedgerEntriesForEntry(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries matching the given entry criteria |
Iterator |
findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues,
boolean isApproved)
This method retrieves all pending ledger entries that may belong to the given account balance record in the future |
protected void |
flexOffsetAccountIfNecessary(OffsetAccount flexibleOffsetAccount,
GeneralLedgerPendingEntry offsetEntry)
Applies the given flexible offset account to the given offset entry. |
boolean |
generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySource glpeSource)
Invokes generateEntries method on the financial document. |
org.kuali.rice.kns.util.KualiDecimal |
getActualSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
This method... |
org.kuali.rice.kns.util.KualiDecimal |
getBudgetSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isYearEnd)
This method... |
GeneralLedgerPendingEntry |
getByPrimaryId(Integer transactionEntrySequenceId,
String documentHeaderId)
|
org.kuali.rice.kns.util.KualiDecimal |
getCashSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
This method... |
org.kuali.rice.kns.util.KualiDecimal |
getEncumbranceSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
This method... |
protected String |
getEntryValue(String targetValue,
String backupValue)
A helper method that checks the intended target value for null and empty strings. |
org.kuali.rice.kns.util.KualiDecimal |
getExpenseSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
This method... |
protected String |
getOffsetEntryDebitCreditCode(GeneralLedgerPendingEntry explicitEntry)
Helper method that determines the debit/credit code for the offset entry. |
protected String |
getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object code. |
protected String |
getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object type code. |
org.kuali.rice.kns.util.KualiDecimal |
getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument)
Adds up the amounts of all cash to offset GeneralLedgerPendingEntry records on the given AccountingDocument |
org.kuali.rice.kns.service.PersistenceStructureService |
getPersistenceStructureService()
Gets the persistenceStructureService attribute. |
boolean |
hasPendingGeneralLedgerEntry(Account account)
Does the given account have any general ledger entries? It is necessary to check this before closing an account. |
boolean |
isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry)
Determines if the given GeneralLedgerPendingEntry represents offsets to cash |
boolean |
populateBankOffsetGeneralLedgerPendingEntry(Bank bank,
org.kuali.rice.kns.util.KualiDecimal depositAmount,
GeneralLedgerPostingDocument financialDocument,
Integer universityFiscalYear,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry bankOffsetEntry,
String errorPropertyName)
This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset. |
void |
populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource,
GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry explicitEntry)
This populates an empty GeneralLedgerPendingEntry explicitEntry object instance with default values. |
boolean |
populateOffsetGeneralLedgerPendingEntry(Integer universityFiscalYear,
GeneralLedgerPendingEntry explicitEntry,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry offsetEntry)
This populates an GeneralLedgerPendingEntry offsetEntry object instance with values that differ from the values supplied in the explicit entry that it was cloned from. |
void |
save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
|
void |
setBalanceTypeService(BalanceTypeService balanceTypeService)
|
void |
setChartService(ChartService chartService)
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setGeneralLedgerPendingEntryDao(GeneralLedgerPendingEntryDao generalLedgerPendingEntryDao)
|
void |
setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
|
void |
setOptionsService(OptionsService optionsService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralLedgerPendingEntryServiceImpl()
| Method Detail |
|---|
public org.kuali.rice.kns.util.KualiDecimal getExpenseSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
GeneralLedgerPendingEntryService
getExpenseSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getExpenseSummary(java.util.List, java.lang.String,
java.lang.String, boolean, boolean)
public org.kuali.rice.kns.util.KualiDecimal getEncumbranceSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isDebit,
boolean isYearEnd)
GeneralLedgerPendingEntryService
getEncumbranceSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getEncumbranceSummary(java.lang.Integer, java.lang.String,
java.lang.String, java.lang.String, boolean, boolean)
public org.kuali.rice.kns.util.KualiDecimal getBudgetSummary(Integer universityFiscalYear,
String chartOfAccountsCode,
String accountNumber,
String sufficientFundsObjectCode,
boolean isYearEnd)
GeneralLedgerPendingEntryService
getBudgetSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getBudgetSummary(java.lang.Integer, java.lang.String,
java.lang.String, java.lang.String, boolean)
public org.kuali.rice.kns.util.KualiDecimal getCashSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
GeneralLedgerPendingEntryService
getCashSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getCashSummary(java.util.Collection, java.lang.String,
java.lang.String, boolean)
public org.kuali.rice.kns.util.KualiDecimal getActualSummary(List universityFiscalYears,
String chartOfAccountsCode,
String accountNumber,
boolean isDebit)
GeneralLedgerPendingEntryService
getActualSummary in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getActualSummary(java.util.List, java.lang.String,
java.lang.String, boolean)
public GeneralLedgerPendingEntry getByPrimaryId(Integer transactionEntrySequenceId,
String documentHeaderId)
getByPrimaryId in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#getByPrimaryId(java.lang.Integer, java.lang.String)public void fillInFiscalPeriodYear(GeneralLedgerPendingEntry glpe)
GeneralLedgerPendingEntryService
fillInFiscalPeriodYear in interface GeneralLedgerPendingEntryServicepublic boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySource glpeSource)
generateGeneralLedgerPendingEntries in interface GeneralLedgerPendingEntryServicedocument - - document whose pending entries need generated
public void populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource,
GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry explicitEntry)
populateExplicitGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServiceaccountingDocument - accountingLine - sequenceHelper - explicitEntry -
public GeneralLedgerPendingEntry buildGeneralLedgerPendingEntry(GeneralLedgerPostingDocument document,
Account account,
ObjectCode objectCode,
String subAccountNumber,
String subObjectCode,
String organizationReferenceId,
String projectCode,
String referenceNumber,
String referenceTypeCode,
String referenceOriginCode,
String description,
boolean isDebit,
org.kuali.rice.kns.util.KualiDecimal amount,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
buildGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServicedocument - a GeneralLedgerPostingDocumentaccount - the account for use in the GLPEobjectCode - the object code for use in the GLPEsubAccountNumber - the sub account number for use in the GLPEsubObjectCode - the subobject code for use in the GLPEorganizationReferenceId - the organization reference id to use in the GLPEprojectCode - the project code to use in the GLPEreferenceNumber - the reference number to use in the GLPEreferenceTypeCode - the reference type code to use in the GLPEreferenceOriginCode - the reference origin code to use in the GLPEdescription - the description to put in the GLPEisDebit - true if the GLPE represents a debit, false if it represents a creditamount - the amount of the GLPEsequenceHelper - the sequence helper to use
public boolean populateOffsetGeneralLedgerPendingEntry(Integer universityFiscalYear,
GeneralLedgerPendingEntry explicitEntry,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry offsetEntry)
populateOffsetGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServiceuniversityFiscalYear - explicitEntry - sequenceHelper - offsetEntry - Cloned from the explicit entry
protected void flexOffsetAccountIfNecessary(OffsetAccount flexibleOffsetAccount,
GeneralLedgerPendingEntry offsetEntry)
flexibleOffsetAccount - may be nulloffsetEntry - may be modifiedprotected String getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)
offsetDefinition -
protected String getOffsetEntryDebitCreditCode(GeneralLedgerPendingEntry explicitEntry)
explicitEntry -
protected String getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)
offsetDefinition -
public boolean populateBankOffsetGeneralLedgerPendingEntry(Bank bank,
org.kuali.rice.kns.util.KualiDecimal depositAmount,
GeneralLedgerPostingDocument financialDocument,
Integer universityFiscalYear,
GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
GeneralLedgerPendingEntry bankOffsetEntry,
String errorPropertyName)
populateBankOffsetGeneralLedgerPendingEntry in interface GeneralLedgerPendingEntryServicebank - depositAmount - financialDocument - universityFiscalYear - sequenceHelper - bankOffsetEntry - errorPropertyName -
public void save(GeneralLedgerPendingEntry generalLedgerPendingEntry)
save in interface GeneralLedgerPendingEntryServiceGeneralLedgerPendingEntryService.save(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry)public void delete(String documentHeaderId)
delete in interface GeneralLedgerPendingEntryServicepublic void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
GeneralLedgerPendingEntryService
deleteByFinancialDocumentApprovedCode in interface GeneralLedgerPendingEntryServicepublic Iterator findApprovedPendingLedgerEntries()
GeneralLedgerPendingEntryService
findApprovedPendingLedgerEntries in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#findApprovedPendingLedgerEntries()
public Iterator findPendingLedgerEntries(Encumbrance encumbrance,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntries in interface GeneralLedgerPendingEntryServiceencumbrance - the encumbrance entryisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntries(org.kuali.kfs.gl.businessobject.Encumbrance,
boolean)public boolean hasPendingGeneralLedgerEntry(Account account)
GeneralLedgerPendingEntryService
hasPendingGeneralLedgerEntry in interface GeneralLedgerPendingEntryServiceorg.kuali.module.gl.service.GeneralLedgerPendingEntryService#hasPendingGeneralLedgerEntry(org.kuali.kfs.coa.businessobject.Account)
public Iterator findPendingLedgerEntries(Balance balance,
boolean isApproved,
boolean isConsolidated)
GeneralLedgerPendingEntryService
findPendingLedgerEntries in interface GeneralLedgerPendingEntryServicebalance - the balance entryisApproved - the flag that indicates whether the pending entries are approved or don't careisConsolidated - determine whether the search results are consolidated
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntries(Balance, boolean, boolean)
public Iterator findPendingLedgerEntriesForEntry(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForEntry in interface GeneralLedgerPendingEntryServicefieldValues - the input fields and valuesisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForEntry(java.util.Map, boolean)
public Iterator findPendingLedgerEntriesForEncumbrance(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForEncumbrance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForEncumbrance(Map, boolean)
public Iterator findPendingLedgerEntriesForCashBalance(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForCashBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForCashBalance(java.util.Map,
boolean)
public Iterator findPendingLedgerEntriesForBalance(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForBalance in interface GeneralLedgerPendingEntryServicefieldValues - the input fields and valuesisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForBalance(java.util.Map, boolean)
public Iterator findPendingLedgerEntriesForAccountBalance(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntriesForAccountBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForAccountBalance(java.util.Map,
boolean, boolean)
public Iterator findPendingLedgerEntrySummaryForAccountBalance(Map fieldValues,
boolean isApproved)
GeneralLedgerPendingEntryService
findPendingLedgerEntrySummaryForAccountBalance in interface GeneralLedgerPendingEntryServiceisApproved - the flag that indicates whether the pending entries are approved or don't care
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntrySummaryForAccountBalance(java.util.Map,
boolean, boolean)
public Collection findPendingEntries(Map fieldValues,
boolean isApproved)
findPendingEntries in interface GeneralLedgerPendingEntryService
protected final String getEntryValue(String targetValue,
String backupValue)
targetValue - backupValue -
public boolean isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry)
isOffsetToCash in interface GeneralLedgerPendingEntryServicegeneralLedgerPendingEntry - the GeneralLedgerPendingEntry to check
public org.kuali.rice.kns.util.KualiDecimal getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument)
getOffsetToCashAmount in interface GeneralLedgerPendingEntryServiceglPostingDocument - the accounting document total the offset to cash amount for
public void setBalanceTypeService(BalanceTypeService balanceTypeService)
public void setChartService(ChartService chartService)
public void setGeneralLedgerPendingEntryDao(GeneralLedgerPendingEntryDao generalLedgerPendingEntryDao)
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
public void setOptionsService(OptionsService optionsService)
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService - The dataDictionaryService to set.public org.kuali.rice.kns.service.PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceStructureService to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||