org.kuali.hr.time.calendar.service
Class CalendarServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.calendar.service.CalendarServiceImpl
All Implemented Interfaces:
CalendarService

public class CalendarServiceImpl
extends Object
implements CalendarService


Constructor Summary
CalendarServiceImpl()
           
 
Method Summary
 Calendar getCalendar(String hrCalendarId)
          Fetch a pay calendar with the given id
 Calendar getCalendarByGroup(String calendarName)
          Fetch a pay calendar by group
 Calendar getCalendarByPrincipalIdAndDate(String principalId, Date asOfDate)
          Fetch a pay calendar with the given principalId and date, returns null if none found
 CalendarEntries getCalendarDatesByPayEndDate(String principalId, Date payEndDate, String calendarType)
          A method to use specifically when you have a Timesheet Documents Pay Period end date.
 List<Calendar> getCalendars(String calendarName, String flsaBeginDay, String flsaBeginTime)
           
 CalendarEntries getCurrentCalendarDates(String principalId, Date currentDate)
          Use this method to get CalendarEntries if you are passing in a "current date" style of date, ie todays date.
 CalendarEntries getPreviousCalendarEntry(String tkCalendarId, Date beginDateCurrentCalendar)
          Returns the Pay CalendarEntry for previous pay calendar
 void setCalendarDao(CalendarDao calendarDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarServiceImpl

public CalendarServiceImpl()
Method Detail

setCalendarDao

public void setCalendarDao(CalendarDao calendarDao)

getCalendar

public Calendar getCalendar(String hrCalendarId)
Description copied from interface: CalendarService
Fetch a pay calendar with the given id

Specified by:
getCalendar in interface CalendarService
Returns:

getCalendarByGroup

public Calendar getCalendarByGroup(String calendarName)
Description copied from interface: CalendarService
Fetch a pay calendar by group

Specified by:
getCalendarByGroup in interface CalendarService
Returns:

getCalendarDatesByPayEndDate

public CalendarEntries getCalendarDatesByPayEndDate(String principalId,
                                                    Date payEndDate,
                                                    String calendarType)
Description copied from interface: CalendarService
A method to use specifically when you have a Timesheet Documents Pay Period end date. Do not use if you are passing in a date known not to be the END period date.

Specified by:
getCalendarDatesByPayEndDate in interface CalendarService
Returns:

getCurrentCalendarDates

public CalendarEntries getCurrentCalendarDates(String principalId,
                                               Date currentDate)
Description copied from interface: CalendarService
Use this method to get CalendarEntries if you are passing in a "current date" style of date, ie todays date. If you are in a logic situation where you would pass EITHER todays date or a pay calendar date, pass the Pay period BEGIN date, so that the retrieval logic will correctly place the date in the window.

Specified by:
getCurrentCalendarDates in interface CalendarService
Returns:

getPreviousCalendarEntry

public CalendarEntries getPreviousCalendarEntry(String tkCalendarId,
                                                Date beginDateCurrentCalendar)
Description copied from interface: CalendarService
Returns the Pay CalendarEntry for previous pay calendar

Specified by:
getPreviousCalendarEntry in interface CalendarService
Returns:

getCalendarByPrincipalIdAndDate

public Calendar getCalendarByPrincipalIdAndDate(String principalId,
                                                Date asOfDate)
Description copied from interface: CalendarService
Fetch a pay calendar with the given principalId and date, returns null if none found

Specified by:
getCalendarByPrincipalIdAndDate in interface CalendarService
Returns:

getCalendars

public List<Calendar> getCalendars(String calendarName,
                                   String flsaBeginDay,
                                   String flsaBeginTime)
Specified by:
getCalendars in interface CalendarService


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.