Class CalendarBuilder
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.service.CalendarBuilder
-
public class CalendarBuilder extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 slotstatic 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
-
-
-
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 IdmapReservationRule- the map of the rule week definitionstartingDate- the starting date of the periodendingDate- 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 IdmapReservationRule- the map of the rule week definitionstartingDate- the starting date of the periodendingDate- the ending date of the periodenNbPlaces- the number of place to takeisAllOpenSlot- build slots with the all open slot
-
-