|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.calendar.CalendarEventRecurrence
public class CalendarEventRecurrence
It defines the recurrence rules of a calendar event. An event recurrence is defined by a frequence (secondly, minutly, hourly, daily, weekly, monthly, or yearly) and optionally by some days of week on which the event should frequently occur, and by a terminaison condition.
Field Summary | |
---|---|
static CalendarEventRecurrence |
NO_RECURRENCE
A constant that defines a specific value for an empty recurrence. |
static int |
NO_RECURRENCE_COUNT
A constant that defines a specific value for no recurrence count limit. |
static Datable<?> |
NO_RECURRENCE_END_DATE
A constant that defines a specific value for no recurrence end date. |
Method Summary | |
---|---|
static CalendarEventRecurrence |
anEventRecurrence(RecurrencePeriod period)
Creates a new event recurrence by specifying the recurrence period at which the event should recur. |
static CalendarEventRecurrence |
every(int frequencyValue,
TimeUnit frequencyUnit)
Creates a new event recurrence from the specified frequency. |
static CalendarEventRecurrence |
every(TimeUnit frequencyUnit)
Creates a new event recurrence from the specified frequency. |
CalendarEventRecurrence |
excludeEventOccurrencesStartingAt(Datable<?>... datables)
Excludes from this recurrence rule the occurrences of the event starting at the specified dates. |
List<DayOfWeekOccurrence> |
getDaysOfWeek()
Gets the days of week on which the event should recur each time. |
Datable<?> |
getEndDate()
Gets the end date of the recurrence. |
List<Datable<?>> |
getExceptionDates()
Gets the date/time exceptions to this recurrence rule. |
RecurrencePeriod |
getFrequency()
Gets the frequency at which the event should recur. |
int |
getRecurrenceCount()
Gets the number of time the event should occur. |
CalendarEventRecurrence |
on(DayOfWeek... days)
Sets some specific days of week at which the event should periodically occur. |
CalendarEventRecurrence |
on(DayOfWeekOccurrence... days)
Sets some specific occurrences of day of week at which the event should periodically occur within monthly or yearly period. |
CalendarEventRecurrence |
on(List<DayOfWeekOccurrence> days)
Sets some specific occurrences of day of week at which the event should periodically occur within monthly or yearly period. |
CalendarEventRecurrence |
upTo(Datable<?> endDate)
Sets a terminaison to this recurrence by specifying an end date of the recurrence. |
CalendarEventRecurrence |
upTo(int recurrenceCount)
Sets a terminaison to this recurrence by specifying the number of time the event should recur. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CalendarEventRecurrence NO_RECURRENCE
public static final int NO_RECURRENCE_COUNT
public static final Datable<?> NO_RECURRENCE_END_DATE
Method Detail |
---|
public static CalendarEventRecurrence every(TimeUnit frequencyUnit)
frequencyUnit
- the frequency in which the event should recur: SECOND means SECONDLY,
MINUTE means minutly, HOUR means hourly, WEEK means weekly, DAY means dayly, WEEK means weekly,
MONTH means monthly or YEAR means YEARLY.
public static CalendarEventRecurrence every(int frequencyValue, TimeUnit frequencyUnit)
frequencyValue
- the value of the event frequency. every two weeks.frequencyUnit
- the frequency unit.
public static CalendarEventRecurrence anEventRecurrence(RecurrencePeriod period)
period
- the recurrence period of the event.
public CalendarEventRecurrence excludeEventOccurrencesStartingAt(Datable<?>... datables)
datables
- a list of dates at which the occurrences to exclude start.
public CalendarEventRecurrence on(DayOfWeek... days)
days
- the days of week at which an event should occur. Theses days replace the ones
already set in the recurrence.
public CalendarEventRecurrence on(DayOfWeekOccurrence... days)
days
- the occurrences of day of week at which an event should occur. Theses days replace
the ones already set in the recurrence.
public CalendarEventRecurrence on(List<DayOfWeekOccurrence> days)
days
- a list of days of week at which an event should occur. Theses days replace the ones
already set in the recurrence.
public CalendarEventRecurrence upTo(int recurrenceCount)
recurrenceCount
- the number of time the event should occur.
public CalendarEventRecurrence upTo(Datable<?> endDate)
endDate
- the end date of the recurrence.
public RecurrencePeriod getFrequency()
public int getRecurrenceCount()
public Datable<?> getEndDate()
public List<DayOfWeekOccurrence> getDaysOfWeek()
public List<Datable<?>> getExceptionDates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |