@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 ReversalService
re
- 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 ReversalService
before
- the date to find reversals on or beforeReversalService.getByDate(java.util.Date)
public Reversal getByTransaction(Transaction t)
ReversalService
getByTransaction
in interface ReversalService
t
- a transaction to find a reversal record forpublic LedgerEntryHolder getSummaryByDate(Date before)
getSummaryByDate
in interface ReversalService
before
- 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 ReversalService
re
- the reversal to saveReversalService.save(org.kuali.ole.gl.businessobject.Reversal)
public void setReversalDao(ReversalDao reversalDao)
reversalDao
- the reversalDao implementation to setReversalDao
public void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
accountingPeriodService
- the accountingPeriodService implementation to setAccountingPeriodService
public void setUniversityDateService(UniversityDateService universityDateService)
universityDateService
- the universityDateService implementation to setUniversityDateService
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.