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, boolean findLeaveCal)
          Fetch a pay calendar with the given principalId and date, returns null if none found
 Calendar getCalendarByPrincipalIdAndDate(String principalId, Date beginDate, Date endDate, boolean findLeaveCal)
          Fetch a pay calendar with the given principalId, begin and end 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 calendarTypes, 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 getCurrentCalendarDates(String principalId, Date beginDate, Date endDate)
          Use this method to get CalendarEntries if you are passing in a date range ie being/end of a year.
 CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId, Date currentDate)
           
 CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId, Date beginDate, Date endDate)
           
 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:

getCurrentCalendarDates

public CalendarEntries getCurrentCalendarDates(String principalId,
                                               Date beginDate,
                                               Date endDate)
Description copied from interface: CalendarService
Use this method to get CalendarEntries if you are passing in a date range ie being/end of a year.

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 beginDate,
                                                Date endDate,
                                                boolean findLeaveCal)
Description copied from interface: CalendarService
Fetch a pay calendar with the given principalId, begin and end date, returns null if none found

Specified by:
getCalendarByPrincipalIdAndDate in interface CalendarService
Returns:

getCalendarByPrincipalIdAndDate

public Calendar getCalendarByPrincipalIdAndDate(String principalId,
                                                Date asOfDate,
                                                boolean findLeaveCal)
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:

getCurrentCalendarDatesForLeaveCalendar

public CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId,
                                                               Date currentDate)
Specified by:
getCurrentCalendarDatesForLeaveCalendar in interface CalendarService
Returns:

getCurrentCalendarDatesForLeaveCalendar

public CalendarEntries getCurrentCalendarDatesForLeaveCalendar(String principalId,
                                                               Date beginDate,
                                                               Date endDate)
Specified by:
getCurrentCalendarDatesForLeaveCalendar in interface CalendarService
Returns:

getCalendars

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


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