Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.TimeTravelException
Packages that use TimeTravelException
Package
Description
-
Uses of TimeTravelException in de.gustavblass.fsu.fmi.roombooking.controller
Methods in de.gustavblass.fsu.fmi.roombooking.controller that throw TimeTravelExceptionModifier 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. -
Uses of TimeTravelException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw TimeTravelExceptionModifier 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.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.