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