Package org.xwiki.contrib.moccacalendar
Interface RecurrentEventGenerator
@Role
@Unstable
public interface RecurrentEventGenerator
A generator that creates actual event instances from a given recurrent event.
- Since:
- 2.7
- Version:
- $Id: $
-
Method Summary
Modifier and TypeMethodDescriptiongiven the event document create a list of event instances happening betweendateFromanddateTo.
-
Method Details
-
generate
given the event document create a list of event instances happening betweendateFromanddateTo.- Parameters:
event- the document describing the recurrent event. This event is guaranteed to contain aMoccaCalendarEventRecurrencyClassobject with a frequency matching the name of the generator.dateFrom- the date after which generated event instances should enddateTo- the date before which generated event instances should start- Returns:
- a list of event instances; might be empty but should not be null
-