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

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

public class CalendarEntriesServiceImpl
extends Object
implements CalendarEntriesService


Constructor Summary
CalendarEntriesServiceImpl()
           
 
Method Summary
 CalendarEntries createNextCalendarEntry(CalendarEntries calendarEntries, CalendarEntryPeriodType type)
           
 List<CalendarEntries> getAllCalendarEntriesForCalendarId(String hrCalendarId)
           
 List<CalendarEntries> getAllCalendarEntriesForCalendarIdAndYear(String hrCalendarId, String year)
           
 CalendarEntries getCalendarEntries(String hrCalendarEntriesId)
          Method to directly access the CalendarEntries object by ID.
 CalendarEntries getCalendarEntriesByBeginAndEndDate(Date beginPeriodDate, Date endPeriodDate)
           
 CalendarEntries getCalendarEntriesByIdAndPeriodEndDate(String hrCalendarId, Date endPeriodDate)
           
 CalendarEntries getCurrentCalendarEntriesByCalendarId(String hrCalendarId, Date currentDate)
          Method to obtain the current CalendarEntries object based on the indicated calendar and asOfDate.
 List<CalendarEntries> getCurrentCalendarEntryNeedsScheduled(int thresholdDays, Date asOfDate)
          Provides a list of CalendarEntries that are in the indicated window of time from the as of date.
 List<CalendarEntries> getFutureCalendarEntries(String hrCalendarId, Date currentDate, int numberOfEntries)
           
 CalendarEntries getNextCalendarEntriesByCalendarId(String hrCalendarId, CalendarEntries pce)
           
 CalendarEntries getPreviousCalendarEntriesByCalendarId(String hrCalendarId, CalendarEntries pce)
           
 void setCalendarEntriesDao(CalendarEntriesDao calendarEntriesDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarEntriesServiceImpl

public CalendarEntriesServiceImpl()
Method Detail

setCalendarEntriesDao

public void setCalendarEntriesDao(CalendarEntriesDao calendarEntriesDao)

getCalendarEntries

public CalendarEntries getCalendarEntries(String hrCalendarEntriesId)
Description copied from interface: CalendarEntriesService
Method to directly access the CalendarEntries object by ID.

Specified by:
getCalendarEntries in interface CalendarEntriesService
Parameters:
hrCalendarEntriesId - The ID to retrieve.
Returns:
a CalendarEntries object.

getCalendarEntriesByIdAndPeriodEndDate

public CalendarEntries getCalendarEntriesByIdAndPeriodEndDate(String hrCalendarId,
                                                              Date endPeriodDate)
Specified by:
getCalendarEntriesByIdAndPeriodEndDate in interface CalendarEntriesService

getCurrentCalendarEntriesByCalendarId

public CalendarEntries getCurrentCalendarEntriesByCalendarId(String hrCalendarId,
                                                             Date currentDate)
Description copied from interface: CalendarEntriesService
Method to obtain the current CalendarEntries object based on the indicated calendar and asOfDate.

Specified by:
getCurrentCalendarEntriesByCalendarId in interface CalendarEntriesService
Parameters:
hrCalendarId - The calendar to reference.
currentDate - The date reference point.
Returns:
the current CalendarEntries effective by the asOfDate.

getPreviousCalendarEntriesByCalendarId

public CalendarEntries getPreviousCalendarEntriesByCalendarId(String hrCalendarId,
                                                              CalendarEntries pce)
Specified by:
getPreviousCalendarEntriesByCalendarId in interface CalendarEntriesService

getNextCalendarEntriesByCalendarId

public CalendarEntries getNextCalendarEntriesByCalendarId(String hrCalendarId,
                                                          CalendarEntries pce)
Specified by:
getNextCalendarEntriesByCalendarId in interface CalendarEntriesService

getCurrentCalendarEntryNeedsScheduled

public List<CalendarEntries> getCurrentCalendarEntryNeedsScheduled(int thresholdDays,
                                                                   Date asOfDate)
Description copied from interface: CalendarEntriesService
Provides a list of CalendarEntries that are in the indicated window of time from the as of date.

Specified by:
getCurrentCalendarEntryNeedsScheduled in interface CalendarEntriesService
Parameters:
thresholdDays - ± days from the asOfDate to form the window of time.
asOfDate - The central date to query from.
Returns:
A list of CalendarEntries.

createNextCalendarEntry

public CalendarEntries createNextCalendarEntry(CalendarEntries calendarEntries,
                                               CalendarEntryPeriodType type)
Specified by:
createNextCalendarEntry in interface CalendarEntriesService

getFutureCalendarEntries

public List<CalendarEntries> getFutureCalendarEntries(String hrCalendarId,
                                                      Date currentDate,
                                                      int numberOfEntries)
Specified by:
getFutureCalendarEntries in interface CalendarEntriesService

getCalendarEntriesByBeginAndEndDate

public CalendarEntries getCalendarEntriesByBeginAndEndDate(Date beginPeriodDate,
                                                           Date endPeriodDate)
Specified by:
getCalendarEntriesByBeginAndEndDate in interface CalendarEntriesService

getAllCalendarEntriesForCalendarId

public List<CalendarEntries> getAllCalendarEntriesForCalendarId(String hrCalendarId)
Specified by:
getAllCalendarEntriesForCalendarId in interface CalendarEntriesService

getAllCalendarEntriesForCalendarIdAndYear

public List<CalendarEntries> getAllCalendarEntriesForCalendarIdAndYear(String hrCalendarId,
                                                                       String year)
Specified by:
getAllCalendarEntriesForCalendarIdAndYear in interface CalendarEntriesService


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