Class CalendarBuilder


  • public class CalendarBuilder
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Slot> buildListSlot​(int nIdForm, java.util.Map<WeekDefinition,​ReservationRule> mapReservationRule, java.time.LocalDate startingDate, java.time.LocalDate endingDate)
      Build all the slot for a period with all the rules (open hours ...) to apply on each day, for each slot
      static java.util.List<Slot> buildListSlot​(int nIdForm, java.util.Map<WeekDefinition,​ReservationRule> mapReservationRule, java.time.LocalDate startingDate, java.time.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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • buildListSlot

        public static java.util.List<Slot> buildListSlot​(int nIdForm,
                                                         java.util.Map<WeekDefinition,​ReservationRule> mapReservationRule,
                                                         java.time.LocalDate startingDate,
                                                         java.time.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 java.util.List<Slot> buildListSlot​(int nIdForm,
                                                         java.util.Map<WeekDefinition,​ReservationRule> mapReservationRule,
                                                         java.time.LocalDate startingDate,
                                                         java.time.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