org.kuali.kfs.sys.service
Interface UniversityDateService

All Known Implementing Classes:
UniversityDateServiceImpl

public interface UniversityDateService

This service interface defines methods that a UniversityDateService implementation must provide.


Method Summary
 Integer getCurrentFiscalYear()
          Returns the current fiscal year.
 UniversityDate getCurrentUniversityDate()
          Returns the current university date.
 Date getFirstDateOfFiscalYear(Integer fiscalYear)
          Returns the first date of the specified Fiscal Year.
 Integer getFiscalYear(Date date)
          Given a Date, returns the fiscal year corresponding to that date.
 Date getLastDateOfFiscalYear(Integer fiscalYear)
          Returns the last date of the specified Fiscal Year.
 

Method Detail

getCurrentUniversityDate

UniversityDate getCurrentUniversityDate()
Returns the current university date.

Returns:
The current university date.

getFiscalYear

Integer getFiscalYear(Date date)
Given a Date, returns the fiscal year corresponding to that date.

Returns:
Fiscal year associated with the given Date.
Throws:
IllegalArgumentException - if the given Date is null.

getFirstDateOfFiscalYear

Date getFirstDateOfFiscalYear(Integer fiscalYear)
Returns the first date of the specified Fiscal Year.

Parameters:
fiscalYear - The fiscal year to retrieve the first date for.
Returns:
java.util.Date The first date of the fiscal year given.

getLastDateOfFiscalYear

Date getLastDateOfFiscalYear(Integer fiscalYear)
Returns the last date of the specified Fiscal Year.

Parameters:
fiscalYear - The fiscal year to retrieve the last date for.
Returns:
java.util.Date The last date of the fiscal year given.

getCurrentFiscalYear

Integer getCurrentFiscalYear()
Returns the current fiscal year.

Returns:
The current fiscal year


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