|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.service.cmr.calendar.CalendarRecurrenceHelper
public class CalendarRecurrenceHelper
This class provides helper functions for when working
with recurring CalendarEntry
instances.
It provides support for working with key parts of the
Outlook/SharePoint recurrence rules
Field Summary | |
---|---|
static java.util.Map |
DAY_NAMES_TO_CALENDAR_DAYS
The lookup from the day strings to Calendar Day entries |
Constructor Summary | |
---|---|
CalendarRecurrenceHelper()
|
Method Summary | |
---|---|
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 |
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 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 |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Map DAY_NAMES_TO_CALENDAR_DAYS
Constructor Detail |
---|
public CalendarRecurrenceHelper()
Method Detail |
---|
public static java.util.Map buildLocalRecurrenceDaysOfTheWeek(java.util.Locale locale)
public static java.util.Map extractRecurrenceRule(CalendarEntry entry)
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 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |