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) ReservationService.computeMaximumOccupancy(@NonNull Room room, @NonNull LocalDate date, @NonNull LocalTime startTime, @NonNull LocalTime endTime, int seatCount) Checks how many seats are available for use in the givenRoomduring the entire duration between thestartTimeandendTimeon the givendate.@NonNull TreeSet<MatchingRoomDTO> RoomService.findMatchingRooms(@NonNull Reservation reservation) Returns all Rooms that are bookable (i.e.@NonNull org.springframework.data.domain.Page<Room> RoomService.findRoomsByStatus(@NonNull RoomStatus roomStatus, @NonNull LocalDateTime startTime, @NonNull LocalDateTime endTime, @Nullable Integer floor, @Nullable Accessibility accessibility, @NonNull org.springframework.data.domain.Pageable pageable) Finds out which Rooms have the givenRoomStatusfor the specified time period and returns them.@NonNull RoomStatusRoomService.getRoomStatus(@NonNull Room room, @NonNull LocalDateTime startTime, @NonNull LocalDateTime endTime) Checks theRoomStatusof the givenRoomfor the specified time period.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.