org.kuali.kfs.sys.service.impl
Class UniversityDateServiceImpl

java.lang.Object
  extended by org.kuali.kfs.sys.service.impl.UniversityDateServiceImpl
All Implemented Interfaces:
UniversityDateService

public class UniversityDateServiceImpl
extends Object
implements UniversityDateService

This is the default implementation of the UniversityDateService interface.


Constructor Summary
UniversityDateServiceImpl()
           
 
Method Summary
 Integer getCurrentFiscalYear()
          This method retrieves the current fiscal year using today's date.
 UniversityDate getCurrentUniversityDate()
          This method retrieves a UniversityDate object using today's date to create the instance.
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
           
 Date getFirstDateOfFiscalYear(Integer fiscalYear)
          This method retrieves the first date of the fiscal year provided.
 Integer getFiscalYear(Date date)
          This method retrieves the fiscal year associated with the date provided.
 Date getLastDateOfFiscalYear(Integer fiscalYear)
          This method retrieves the last date of the fiscal year provided.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setUniversityDateDao(UniversityDateDao universityDateDao)
          Sets the universityDateDao attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversityDateServiceImpl

public UniversityDateServiceImpl()
Method Detail

getCurrentUniversityDate

public UniversityDate getCurrentUniversityDate()
This method retrieves a UniversityDate object using today's date to create the instance.

Specified by:
getCurrentUniversityDate in interface UniversityDateService
Returns:
A UniversityDate instance representing today's date.
See Also:
UniversityDateService.getCurrentUniversityDate()

getCurrentFiscalYear

public Integer getCurrentFiscalYear()
This method retrieves the current fiscal year using today's date.

Specified by:
getCurrentFiscalYear in interface UniversityDateService
Returns:
The current fiscal year as an Integer.
See Also:
org.kuali.rice.kns.service.DateTimeService#getCurrentFiscalYear()

getFiscalYear

public Integer getFiscalYear(Date date)
This method retrieves the fiscal year associated with the date provided.

Specified by:
getFiscalYear in interface UniversityDateService
Parameters:
date - The date to be used for retrieving the associated fiscal year.
Returns:
The fiscal year that the date provided falls within.
See Also:
org.kuali.rice.kns.service.DateTimeService#getFiscalYear(java.util.Date)

getFirstDateOfFiscalYear

public Date getFirstDateOfFiscalYear(Integer fiscalYear)
This method retrieves the first date of the fiscal year provided.

Specified by:
getFirstDateOfFiscalYear in interface UniversityDateService
Parameters:
fiscalYear - The fiscal year to retrieve the first date for.
Returns:
A Date object representing the first date of the fiscal year given.
See Also:
UniversityDateService.getFirstDateOfFiscalYear(java.lang.Integer)

getLastDateOfFiscalYear

public Date getLastDateOfFiscalYear(Integer fiscalYear)
This method retrieves the last date of the fiscal year provided.

Specified by:
getLastDateOfFiscalYear in interface UniversityDateService
Parameters:
fiscalYear - The fiscal year to retrieve the last date for.
Returns:
A Date object representing the last date of the fiscal year given.
See Also:
UniversityDateService.getLastDateOfFiscalYear(java.lang.Integer)

setUniversityDateDao

public void setUniversityDateDao(UniversityDateDao universityDateDao)
Sets the universityDateDao attribute value.

Parameters:
universityDateDao - The universityDateDao to set.

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)


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