Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.InvalidIndividualEquipmentException
Packages that use InvalidIndividualEquipmentException
Package
Description
-
Uses of InvalidIndividualEquipmentException in de.gustavblass.fsu.fmi.roombooking.controller.admin
Methods in de.gustavblass.fsu.fmi.roombooking.controller.admin that throw InvalidIndividualEquipmentExceptionModifier and TypeMethodDescription@NonNull StringRoomAdminController.createRoom(@Valid @NonNull NewRoomDTO dto, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletResponse response) @NonNull org.springframework.http.ResponseEntity<Void> RoomAdminRestController.createRoom(@Valid @NonNull NewRoomDTO dto) HandlesPOSTrequests to/api/v1/admin/roomsand adds the givenNewRoomDTOas a newRoomto the database.@NonNull StringRoomAdminController.editRoom(@NonNull String roomNumber, @Valid @NonNull NewRoomDTO dto, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletResponse response) HandlesPOSTrequests to/admin/rooms/{roomNumber}/editand saves the given edited data-transfer object to the database.@NonNull org.springframework.http.ResponseEntity<Void> RoomAdminRestController.editRoom(@NonNull String roomNumber, @Valid @NonNull NewRoomDTO dto) HandlesPOSTrequests to/api/v1/admin/rooms/{roomNumber}and modifies theRoomwith the specifiedRoom.numberaccording to the given data-transfer object. -
Uses of InvalidIndividualEquipmentException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw InvalidIndividualEquipmentExceptionModifier 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.voidRoomService.createRoom(@NonNull Room room) Adds the givenRoomto the database.voidSaves the givenRoomto the database.private voidRoomService.setEquipment(@NonNull Room room) Replaces the givenRoom's IndividualEquipmentTypes with matching existing ones, in order to allow the Room to be saved to the database without adding new equipment entites.