public class CalendarRecurrenceHelper
extends java.lang.Object
CalendarEntry
instances.
It provides support for working with key parts of the
Outlook/SharePoint recurrence rulesModifier and Type | Field and Description |
---|---|
protected static java.util.Map |
d2cd |
static java.util.Map |
DAY_NAMES_TO_CALENDAR_DAYS
The lookup from the day strings to Calendar Day entries
|
protected static java.util.Map |
WEEK_NUMBER_TO_WEEK_NAME |
Constructor and Description |
---|
CalendarRecurrenceHelper() |
Modifier and Type | Method and Description |
---|---|
protected static void |
buildDailyRecurrences(java.util.Calendar currentDate,
java.util.List dates,
java.util.Map params,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly,
int interval) |
static java.util.Map |
buildLocalRecurrenceDaysOfTheWeek(java.util.Locale locale)
Returns a lookup from recurrence rule days of the week, to
the proper days of the week in the specified locale
|
static java.util.Map |
buildLocalRecurrenceWeekNames(java.util.Locale locale)
The lookup from the week in month number to week
in month name in the specified locale
|
protected static void |
buildMonthlyRecurrences(java.util.Calendar currentDate,
java.util.List dates,
java.util.Map params,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly,
int monthInterval) |
protected static void |
buildWeeklyRecurrences(java.util.Calendar currentDate,
java.util.List dates,
java.util.Map params,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly,
int interval) |
protected static void |
buildYearlyRecurrences(java.util.Calendar currentDate,
java.util.List dates,
java.util.Map params,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly,
int interval) |
static java.util.Map |
extractRecurrenceRule(CalendarEntry entry)
Returns the parsed calendar recurrence rule
WARNING - Alfresco use only.
|
protected static java.util.Map |
fixOutlookRecurrenceQuirks(java.util.Map 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 java.util.List |
getRecurrencesOnOrAfter(CalendarEntry entry,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly)
For the given Calendar Entry, return its subsequent Recurrence on or after
the specified date, until the given limit.
|
static java.util.List |
getRecurrencesOnOrAfter(java.lang.String recurrenceRule,
java.util.Date eventStart,
java.util.Date eventEnd,
java.util.Date lastRecurrence,
java.util.Date onOrAfter,
java.util.Date until,
boolean firstOnly)
For the given Calendar Entry, return its subsequent Recurrence on or after
the specified date, until the given limit.
|
protected static final java.util.Map d2cd
public static final java.util.Map DAY_NAMES_TO_CALENDAR_DAYS
protected static final java.util.Map WEEK_NUMBER_TO_WEEK_NAME
public static java.util.Map buildLocalRecurrenceDaysOfTheWeek(java.util.Locale locale)
public static java.util.Map buildLocalRecurrenceWeekNames(java.util.Locale locale)
public static java.util.Map extractRecurrenceRule(CalendarEntry entry)
protected static java.util.Map fixOutlookRecurrenceQuirks(java.util.Map params)
public static java.util.List getRecurrencesOnOrAfter(CalendarEntry entry, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly)
public static java.util.List getRecurrencesOnOrAfter(java.lang.String recurrenceRule, java.util.Date eventStart, java.util.Date eventEnd, java.util.Date lastRecurrence, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly)
protected static void buildDailyRecurrences(java.util.Calendar currentDate, java.util.List dates, java.util.Map params, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly, int interval)
protected static void buildWeeklyRecurrences(java.util.Calendar currentDate, java.util.List dates, java.util.Map params, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly, int interval)
protected static void buildMonthlyRecurrences(java.util.Calendar currentDate, java.util.List dates, java.util.Map params, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly, int monthInterval)
protected static void buildYearlyRecurrences(java.util.Calendar currentDate, java.util.List dates, java.util.Map params, java.util.Date onOrAfter, java.util.Date until, boolean firstOnly, int interval)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.