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