@Transactional public class ReversalServiceImpl extends Object implements ReversalService
ReversalService| Constructor and Description |
|---|
ReversalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected LedgerEntryForReporting |
buildLedgerEntryFromReversal(Reversal reversal)
Creates a LedgerEntry from a reversal, which is proper for summarization (ie, its fiscal year and period code are based off
the reversal date, not off the transaction date or the reversal's current fiscal year and accounting period)
|
void |
delete(Reversal re)
Deletes a reversal record
|
Iterator |
getByDate(Date before)
Returns all the reversal records set to reverse on or before the given date
|
Reversal |
getByTransaction(Transaction t)
Fetches or generates a reversal record, based on the given transaction
|
LedgerEntryHolder |
getSummaryByDate(Date before)
Summarizes all of the reversal records set to reverse before or on the given date
|
void |
save(Reversal re)
Saves a reversal record
|
void |
setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
Sets the accountingPeriodService attribute, allowing injection of an implementation of that service
|
void |
setReversalDao(ReversalDao reversalDao)
Sets the reversalDao attribute, allowing injection of an implementation of that data access object
|
void |
setUniversityDateService(UniversityDateService universityDateService)
Sets the unversityDateService attribute, allowing injection of an implementation of that service
|
public ReversalServiceImpl()
public void delete(Reversal re)
delete in interface ReversalServicere - the reversal to delete, remove, or otherwise expiate from the databaseReversalService.delete(org.kuali.ole.gl.businessobject.Reversal)public Iterator getByDate(Date before)
getByDate in interface ReversalServicebefore - the date to find reversals on or beforeReversalService.getByDate(java.util.Date)public Reversal getByTransaction(Transaction t)
ReversalServicegetByTransaction in interface ReversalServicet - a transaction to find a reversal record forpublic LedgerEntryHolder getSummaryByDate(Date before)
getSummaryByDate in interface ReversalServicebefore - the date reversals summarized should be on or beforeReversalService.getSummaryByDate(java.util.Date)protected LedgerEntryForReporting buildLedgerEntryFromReversal(Reversal reversal)
reversal - reversal to build LedgerEntry withpublic void save(Reversal re)
save in interface ReversalServicere - the reversal to saveReversalService.save(org.kuali.ole.gl.businessobject.Reversal)public void setReversalDao(ReversalDao reversalDao)
reversalDao - the reversalDao implementation to setReversalDaopublic void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
accountingPeriodService - the accountingPeriodService implementation to setAccountingPeriodServicepublic void setUniversityDateService(UniversityDateService universityDateService)
universityDateService - the universityDateService implementation to setUniversityDateServiceCopyright © 2004–2015 The Kuali Foundation. All rights reserved.