org.kuali.kfs.gl.service.impl
Class ReversalServiceImpl

java.lang.Object
  extended by org.kuali.kfs.gl.service.impl.ReversalServiceImpl
All Implemented Interfaces:
ReversalService

@Transactional
public class ReversalServiceImpl
extends Object
implements ReversalService

This transactional class provides the default implementation of the services required in ReversalService

See Also:
ReversalService

Constructor Summary
ReversalServiceImpl()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversalServiceImpl

public ReversalServiceImpl()
Method Detail

delete

public void delete(Reversal re)
Deletes a reversal record

Specified by:
delete in interface ReversalService
Parameters:
re - the reversal to delete, remove, or otherwise expiate from the database
See Also:
ReversalService.delete(org.kuali.kfs.gl.businessobject.Reversal)

getByDate

public Iterator getByDate(Date before)
Returns all the reversal records set to reverse on or before the given date

Specified by:
getByDate in interface ReversalService
Parameters:
before - the date to find reversals on or before
Returns:
an Iterator of reversals
See Also:
ReversalService.getByDate(java.util.Date)

getByTransaction

public Reversal getByTransaction(Transaction t)
Description copied from interface: ReversalService
Fetches or generates a reversal record, based on the given transaction

Specified by:
getByTransaction in interface ReversalService
Parameters:
t - a transaction to find a reversal record for
Returns:
a reversal record for the transaction

getSummaryByDate

public LedgerEntryHolder getSummaryByDate(Date before)
Summarizes all of the reversal records set to reverse before or on the given date

Specified by:
getSummaryByDate in interface ReversalService
Parameters:
before - the date reversals summarized should be on or before
Returns:
a LedgerEntryHolder with a summary of
See Also:
ReversalService.getSummaryByDate(java.util.Date)

buildLedgerEntryFromReversal

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)

Parameters:
reversal - reversal to build LedgerEntry with
Returns:
a new LedgerEntry, populated by the reversal

save

public void save(Reversal re)
Saves a reversal record

Specified by:
save in interface ReversalService
Parameters:
re - the reversal to save
See Also:
ReversalService.save(org.kuali.kfs.gl.businessobject.Reversal)

setReversalDao

public void setReversalDao(ReversalDao reversalDao)
Sets the reversalDao attribute, allowing injection of an implementation of that data access object

Parameters:
reversalDao - the reversalDao implementation to set
See Also:
ReversalDao

setAccountingPeriodService

public void setAccountingPeriodService(AccountingPeriodService accountingPeriodService)
Sets the accountingPeriodService attribute, allowing injection of an implementation of that service

Parameters:
accountingPeriodService - the accountingPeriodService implementation to set
See Also:
AccountingPeriodService

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)
Sets the unversityDateService attribute, allowing injection of an implementation of that service

Parameters:
universityDateService - the universityDateService implementation to set
See Also:
UniversityDateService


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.