Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.ReversedTimePeriodException
Packages that use ReversedTimePeriodException
Package
Description
-
Uses of ReversedTimePeriodException in de.gustavblass.fsu.fmi.roombooking.controller
Methods in de.gustavblass.fsu.fmi.roombooking.controller that throw ReversedTimePeriodExceptionModifier and TypeMethodDescription@NonNull org.springframework.hateoas.EntityModel<ReservationDTO> ReservationRestController.bookRoom(@NonNull @Valid BookRoomDTO bookRoomDTO) HandlesPOSTrequests to/api/v1/reservationsand places a newReservationbased on the givenBookRoomDTO.org.springframework.hateoas.EntityModel<RoomSchedule> RoomRestController.getRoomSchedule(@NonNull String number, @Nullable LocalDate date, @Nullable LocalTime startTime, @Nullable LocalTime endTime) HandlesGETrequests to/api/v1/rooms/{number}/scheduleand returns today'sRoomSchedulefor theRoomwith the givenRoom.number. -
Uses of ReversedTimePeriodException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw ReversedTimePeriodExceptionModifier and TypeMethodDescription@NonNull ReservationReservationService.bookRoom(@NonNull BookRoomDTO reservationDto) Saves a newReservationto the database, based on the givenBookRoomDTO, if theFilterReservationsDTO.roomis free between the start time and end time.@NonNull RoomScheduleReservationService.buildSchedule(@NonNull Room room, @NonNull LocalDate date, @NonNull LocalTime startTime, @NonNull LocalTime endTime) Alias forReservationService.buildSchedule(Room, LocalDate, LocalTime, LocalTime, MergeOptions)with merging disabled.@NonNull RoomScheduleReservationService.buildSchedule(@NonNull Room room, @NonNull LocalDate date, @NonNull LocalTime startTime, @NonNull LocalTime endTime, @NonNull MergeOptions mergeOptions) Creates aRoomSchedulefor the givenRoomon the givenLocalDatebetween the givenstartTimeandendTime.@NonNull RoomScheduleRoomService.buildSchedule(@NonNull Room room, @NonNull LocalDate date, @NonNull LocalTime startTime, @NonNull LocalTime endTime) booleanReservationService.isSeatReservationPossible(@NonNull Room room, @NonNull LocalDate date, @NonNull LocalTime startTime, @NonNull LocalTime endTime, int seatCount) Checks whether the given number of seats is available for use in the givenRoomduring the entire duration between thestartTimeandendTimeon the givendate.