public class CalendarRecurrenceHelper extends Object
CalendarEntry
instances.
It provides support for working with key parts of the
Outlook/SharePoint recurrence rulesModifier and Type | Field and Description |
---|---|
protected static Map<String,Integer> |
d2cd |
static String |
DAY |
static Map<String,Integer> |
DAY_NAMES_TO_CALENDAR_DAYS
The lookup from the day strings to Calendar Day entries
|
protected static Map<Integer,String> |
WEEK_NUMBER_TO_WEEK_NAME |
static String |
WEEKDAYS |
static String |
WEEKENDS |
Constructor and Description |
---|
CalendarRecurrenceHelper() |
Modifier and Type | Method and Description |
---|---|
protected static void |
buildDailyRecurrences(Calendar currentDate,
long duration,
List<Date> dates,
Map<String,String> params,
Date onOrAfter,
Date until,
boolean firstOnly,
int interval) |
static Map<String,String> |
buildLocalRecurrenceDaysOfTheWeek(Locale locale)
Returns a lookup from recurrence rule days of the week, to
the proper days of the week in the specified locale
|
static Map<Integer,String> |
buildLocalRecurrenceWeekNames(Locale locale)
The lookup from the week in month number to week
in month name in the specified locale
|
protected static void |
buildMonthlyRecurrences(Calendar currentDate,
long duration,
List<Date> dates,
Map<String,String> params,
Date onOrAfter,
Date until,
boolean firstOnly,
int monthInterval) |
protected static void |
buildWeeklyRecurrences(Calendar currentDate,
long duration,
List<Date> dates,
Map<String,String> params,
Date onOrAfter,
Date until,
boolean firstOnly,
int interval) |
protected static void |
buildYearlyRecurrences(Calendar currentDate,
long duration,
List<Date> dates,
Map<String,String> params,
Date onOrAfter,
Date until,
boolean firstOnly,
int interval) |
static Map<String,String> |
extractRecurrenceRule(CalendarEntry entry)
Returns the parsed calendar recurrence rule
WARNING - Alfresco use only.
|
protected static Map<String,String> |
fixOutlookRecurrenceQuirks(Map<String,String> params)
Outlook does some crazy stuff, which is only just about permitted by
the specification, and is hard to parse, especially for yearly events.
|
static List<Date> |
getRecurrencesOnOrAfter(CalendarEntry entry,
Date onOrAfter,
Date until,
boolean firstOnly,
Set<Date> ignoredDates)
For the given Calendar Entry, return its subsequent Recurrence on or after
the specified date, until the given limit.
|
static List<Date> |
getRecurrencesOnOrAfter(String recurrenceRule,
Date eventStart,
Date eventEnd,
Date lastRecurrence,
Date onOrAfter,
Date until,
boolean firstOnly,
Set<Date> ignoredDates)
For the given Calendar Entry, return its subsequent Recurrence on or after
the specified date, until the given limit.
|
public static final Map<String,Integer> DAY_NAMES_TO_CALENDAR_DAYS
public static final String DAY
public static final String WEEKDAYS
public static final String WEEKENDS
public static Map<String,String> buildLocalRecurrenceDaysOfTheWeek(Locale locale)
public static Map<Integer,String> buildLocalRecurrenceWeekNames(Locale locale)
public static Map<String,String> extractRecurrenceRule(CalendarEntry entry)
protected static Map<String,String> fixOutlookRecurrenceQuirks(Map<String,String> params)
public static List<Date> getRecurrencesOnOrAfter(CalendarEntry entry, Date onOrAfter, Date until, boolean firstOnly, Set<Date> ignoredDates)
public static List<Date> getRecurrencesOnOrAfter(String recurrenceRule, Date eventStart, Date eventEnd, Date lastRecurrence, Date onOrAfter, Date until, boolean firstOnly, Set<Date> ignoredDates)
protected static void buildDailyRecurrences(Calendar currentDate, long duration, List<Date> dates, Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
protected static void buildWeeklyRecurrences(Calendar currentDate, long duration, List<Date> dates, Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int interval)
protected static void buildMonthlyRecurrences(Calendar currentDate, long duration, List<Date> dates, Map<String,String> params, Date onOrAfter, Date until, boolean firstOnly, int monthInterval)
Copyright © 2005–2017 Alfresco Software. All rights reserved.