Class CalendarBuilder


  • public class CalendarBuilder
    extends Object
    • Method Detail

      • buildListSlot

        public static List<Slot> buildListSlot​(int nIdForm,
                                               Map<WeekDefinition,​ReservationRule> mapReservationRule,
                                               LocalDate startingDate,
                                               LocalDate endingDate)
        Build all the slot for a period with all the rules (open hours ...) to apply on each day, for each slot
        Parameters:
        nIdForm - the form Id
        mapReservationRule - the map of the rule week definition
        startingDate - the starting date of the period
        endingDate - the ending date of the periode
      • buildListSlot

        public static List<Slot> buildListSlot​(int nIdForm,
                                               Map<WeekDefinition,​ReservationRule> mapReservationRule,
                                               LocalDate startingDate,
                                               LocalDate endingDate,
                                               int nNbPlaces,
                                               boolean isAllOpenSlot)
        Build all the slot for a period with all the rules (open hours ...) to apply on each day, for each slot
        Parameters:
        nIdForm - the form Id
        mapReservationRule - the map of the rule week definition
        startingDate - the starting date of the period
        endingDate - the ending date of the periode
        nNbPlaces - the number of place to take
        isAllOpenSlot - build slots with the all open slot