Class RecurrentEventHelper
- java.lang.Object
-
- org.ametys.plugins.explorer.calendars.helper.RecurrentEventHelper
-
public final class RecurrentEventHelper extends Object
Helper for recurrent event operation
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RecurrentEventHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static Date
_nextAllDayDate(Date date)
private static Date
_nextAllWorkingDayDate(Date date)
private static Date
_nextBiweeklyDate(Date date)
private static Date
_nextMonthlyDate(Date date, CalendarEvent event)
private static Date
_nextWeeklyDate(Date date)
static Date
getNextDate(CalendarEvent event, Date date)
Get the next occurrence datestatic List<Integer>
getWorkingDays()
get the list of working days
-
-
-
Constructor Detail
-
RecurrentEventHelper
private RecurrentEventHelper()
-
-
Method Detail
-
getNextDate
public static Date getNextDate(CalendarEvent event, Date date)
Get the next occurrence date- Parameters:
event
- the calendar eventdate
- the occurrence date- Returns:
- the next occurrence date
-
_nextAllDayDate
private static Date _nextAllDayDate(Date date)
-
getWorkingDays
public static List<Integer> getWorkingDays()
get the list of working days- Returns:
- a list of integer, matching
Calendar
days
-
_nextAllWorkingDayDate
private static Date _nextAllWorkingDayDate(Date date)
-
_nextWeeklyDate
private static Date _nextWeeklyDate(Date date)
-
_nextBiweeklyDate
private static Date _nextBiweeklyDate(Date date)
-
_nextMonthlyDate
private static Date _nextMonthlyDate(Date date, CalendarEvent event)
-
-