Class CalendarBuilder
java.lang.Object
fr.paris.lutece.plugins.appointment.service.CalendarBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuildListSlot(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 slotbuildListSlot(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 Details
-
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
-