org.kuali.kfs.fp.document.service.impl
Class YearEndPendingEntryServiceImpl

java.lang.Object
  extended by org.kuali.kfs.fp.document.service.impl.YearEndPendingEntryServiceImpl
All Implemented Interfaces:
YearEndPendingEntryService

public class YearEndPendingEntryServiceImpl
extends Object
implements YearEndPendingEntryService

The default implementation of the YearEndPendingEntryService


Field Summary
protected static org.apache.log4j.Logger LOG
           
protected  OffsetDefinitionService offsetDefinitionService
           
protected  SufficientFundsService sufficientFundsService
           
protected  UniversityDateService universityDateService
           
 
Constructor Summary
YearEndPendingEntryServiceImpl()
           
 
Method Summary
 void customizeExplicitGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument transactionalDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)
          populates a GeneralLedgerPendingEntry populated with common year end document data into the explicit general ledger pending entry.
 boolean customizeOffsetGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument transactionalDocument, GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)
          Populates an offset GeneralLedgerPendingEntry such that it uses the Offset Definition from the previous year
protected  String getAccountingPeriodForYearEndEntry()
           
 String getFinalAccountingPeriod()
           
 OffsetDefinitionService getOffsetDefinitionService()
           
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.
 Integer getPreviousFiscalYear()
           
 SufficientFundsService getSufficientFundsService()
           
 UniversityDateService getUniversityDateService()
           
 void setOffsetDefinitionService(OffsetDefinitionService offsetDefinitionService)
           
 void setSufficientFundsService(SufficientFundsService sufficientFundsService)
           
 void setUniversityDateService(UniversityDateService universityDateService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG

universityDateService

protected UniversityDateService universityDateService

sufficientFundsService

protected SufficientFundsService sufficientFundsService

offsetDefinitionService

protected OffsetDefinitionService offsetDefinitionService
Constructor Detail

YearEndPendingEntryServiceImpl

public YearEndPendingEntryServiceImpl()
Method Detail

customizeExplicitGeneralLedgerPendingEntry

public void customizeExplicitGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument transactionalDocument,
                                                       AccountingLine accountingLine,
                                                       GeneralLedgerPendingEntry explicitEntry)
Description copied from interface: YearEndPendingEntryService
populates a GeneralLedgerPendingEntry populated with common year end document data into the explicit general ledger pending entry. currently is the following:
  1. fiscal period code = final accounting period code
  2. fiscal year= previous fiscal year

Specified by:
customizeExplicitGeneralLedgerPendingEntry in interface YearEndPendingEntryService
See Also:
YearEndPendingEntryService.customizeExplicitGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument, org.kuali.kfs.sys.businessobject.AccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry)

customizeOffsetGeneralLedgerPendingEntry

public boolean customizeOffsetGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument transactionalDocument,
                                                        GeneralLedgerPendingEntrySourceDetail accountingLine,
                                                        GeneralLedgerPendingEntry explicitEntry,
                                                        GeneralLedgerPendingEntry offsetEntry)
Description copied from interface: YearEndPendingEntryService
Populates an offset GeneralLedgerPendingEntry such that it uses the Offset Definition from the previous year

Specified by:
customizeOffsetGeneralLedgerPendingEntry in interface YearEndPendingEntryService
Parameters:
transactionalDocument - the transactional document with general ledger pending entries on it
accountingLine - the general ledger pending entry source which generated the explicit and offset entry
explicitEntry - the explicit entry requiring this offset entry
offsetEntry - the offset entry which is being customized
Returns:
whether the offset could be successfully customized for year end or not
See Also:
YearEndPendingEntryService.customizeOffsetGeneralLedgerPendingEntry(org.kuali.rice.kns.document.TransactionalDocument, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry)

getFinalAccountingPeriod

public String getFinalAccountingPeriod()
Specified by:
getFinalAccountingPeriod in interface YearEndPendingEntryService
Returns:
the accounting period code used with all GLPE
See Also:
YearEndPendingEntryService.getFinalAccountingPeriod()

getAccountingPeriodForYearEndEntry

protected String getAccountingPeriodForYearEndEntry()
Returns:
the accounting period the year end entry should be populated with

getPreviousFiscalYear

public Integer getPreviousFiscalYear()
Specified by:
getPreviousFiscalYear in interface YearEndPendingEntryService
Returns:
the previous fiscal year used with all GLPE
See Also:
YearEndPendingEntryService.getPreviousFiscalYear()

getOffsetFinancialObjectCode

protected String getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object code.

Parameters:
offsetDefinition -
Returns:
String

getOffsetFinancialObjectTypeCode

protected String getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)
Helper method that determines the offset entry's financial object type code.

Parameters:
offsetDefinition -
Returns:
String

getUniversityDateService

public UniversityDateService getUniversityDateService()

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)

getSufficientFundsService

public SufficientFundsService getSufficientFundsService()

setSufficientFundsService

public void setSufficientFundsService(SufficientFundsService sufficientFundsService)

getOffsetDefinitionService

public OffsetDefinitionService getOffsetDefinitionService()

setOffsetDefinitionService

public void setOffsetDefinitionService(OffsetDefinitionService offsetDefinitionService)


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