Class RecurrentEventHelper

    • Method Detail

      • getOccurrences

        public static List<ZonedDateTimegetOccurrences​(ZonedDateTime startDate,
                                                         ZonedDateTime endDate,
                                                         ZonedDateTime eventStartDate,
                                                         ZonedDateTime originalOccurrenceStartDate,
                                                         EventRecurrenceTypeEnum recurrenceType,
                                                         List<ZonedDateTime> excludedOccurences,
                                                         ZoneId zoneId,
                                                         ZonedDateTime untilDate)
        Compute the occurrence of an event
        Parameters:
        startDate - the start of the range to compute occurrences
        endDate - the end of the range to compute occurrences
        eventStartDate - the start date of the occurrence
        originalOccurrenceStartDate - the original start date of the occurrence (different as the eventStartDate when editing an occurrence)
        recurrenceType - the recurrence type
        excludedOccurences - the occurrences to exclude
        zoneId - the zoneId used for the dates
        untilDate - until date of the recurring event
        Returns:
        a list of occurrence start dates