|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.coa.service.impl.AccountingPeriodServiceImpl
public class AccountingPeriodServiceImpl
This service implementation is the default implementation of the AccountingPeriod service that is delivered with Kuali.
Field Summary | |
---|---|
protected static Set |
_invalidPeriodCodes
|
Constructor Summary | |
---|---|
AccountingPeriodServiceImpl()
|
Method Summary | |
---|---|
int |
compareAccountingPeriodsByDate(AccountingPeriod tweedleDee,
AccountingPeriod tweedleDum)
This method compares two accounting periods, hopefully by comparing their closing dates. |
Collection |
getAllAccountingPeriods()
The default implementation. |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
This method retrieves an instance of the businessObjectService. |
AccountingPeriod |
getByDate(Date date)
This method is a helper method to get the current period. |
AccountingPeriod |
getByPeriod(String periodCode,
Integer fiscalYear)
This method is a helper method to easily grab an accounting period by looking up it's period and fiscal year |
AccountingPeriod |
getByStringDate(String dateString)
This method allows for AccountingPeriod retrieval via String date. |
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
Collection |
getOpenAccountingPeriods()
Implements by choosing only accounting periods that are active. |
protected boolean |
isInvalidPeriodCode(AccountingPeriod period)
This checks to see if the period code is empty or invalid ("13", "AB", "BB", "CB") |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
This method sets the instance of the businessObjectService. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Set _invalidPeriodCodes
Constructor Detail |
---|
public AccountingPeriodServiceImpl()
Method Detail |
---|
public Collection getAllAccountingPeriods()
getAllAccountingPeriods
in interface AccountingPeriodService
AccountingPeriodService.getAllAccountingPeriods()
public Collection getOpenAccountingPeriods()
getOpenAccountingPeriods
in interface AccountingPeriodService
AccountingPeriodService.getOpenAccountingPeriods()
public AccountingPeriod getByPeriod(String periodCode, Integer fiscalYear)
getByPeriod
in interface AccountingPeriodService
periodCode
- fiscalYear
-
public AccountingPeriod getByStringDate(String dateString)
getByStringDate
in interface AccountingPeriodService
String
- public AccountingPeriod getByDate(Date date)
getByDate
in interface AccountingPeriodService
AccountingPeriodService.getByDate(java.sql.Date)
protected boolean isInvalidPeriodCode(AccountingPeriod period)
period
-
public int compareAccountingPeriodsByDate(AccountingPeriod tweedleDee, AccountingPeriod tweedleDum)
AccountingPeriodService
compareAccountingPeriodsByDate
in interface AccountingPeriodService
tweedleDee
- the first accounting period to comparetweedleDum
- the second accounting period to compare
AccountingPeriodService.compareAccountingPeriodsByDate(org.kuali.kfs.coa.businessobject.AccountingPeriod,
org.kuali.kfs.coa.businessobject.AccountingPeriod)
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |