Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.NotFoundException
Packages that use NotFoundException
Package
Description
-
Uses of NotFoundException in de.gustavblass.fsu.fmi.roombooking.controller
Methods in de.gustavblass.fsu.fmi.roombooking.controller that throw NotFoundExceptionModifier 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.@NonNull StringReservationController.deleteReservation(@NonNull Long id, @NonNull Locale locale) HandlesPOSTrequests to/reservations/{id}/deleteand permanently removes the currentActor'sReservationwith the givenReservation.idfrom the database.@NonNull org.springframework.http.ResponseEntity<Void> ReservationRestController.deleteReservation(@Min(0L) Long id) HandlesDELETErequests to/api/v1/reservations/{id}and removes the requestingActor'sReservationwith the givenReservation.idfrom the database.ActorController.getActor(@NonNull String userName, @NonNull org.springframework.ui.Model model, @Nullable ChangeUserNameDTO ignoredChangeUserNameDTO, @Nullable ChangeNameDTO ignoredChangeNameDTO, @Nullable ChangeEMailAddressDTO ignoredChangeEMailAddressDTO) HandlesGETrequests to/benutzer/@{userName}.@NonNull org.springframework.hateoas.EntityModel<ActorDTO> HandlesGETrequests to/api/v1/user/{userName}and fetches theActorwith the specifiedActor.userNamefrom the database, converts it to anActorDTOobject and returns that.@NonNull StringReservationController.getDeletionPage(@NonNull Long id, @NonNull org.springframework.ui.Model model) Shows a confirmation page asking the user whether they are sure they wish to permanently remove theirReservationwith the givenReservation.idfrom the database.ReservationController.getReservation(@NonNull Long id, @NonNull org.springframework.ui.Model model) HandlesGETrequests to/reservations/{id}.@NonNull org.springframework.hateoas.EntityModel<ReservationDTO> ReservationRestController.getReservation(@NonNull Long id) HandlesGETrequests to/api/v1/reservations/{id}and fetches theReservationwith the specifiedReservation.idfrom the database, converts it to aReservationDTOobject and returns that.@NonNull StringReservationController.getReservations(int page, @Max(20L) int size, @NonNull String sortBy, boolean ascending, @Nullable FilterReservationsDTO filterReservationsDTO, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult) HandlesGETrequests to/admin/reservations.@NonNull StringReservationController.getReservations(int page, @Max(20L) int size, @NonNull String sortBy, boolean ascending, @Nullable FilterReservationsDTO filterReservationsDTO, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult, @NonNull Function<org.springframework.data.domain.PageRequest, org.springframework.data.domain.Page<Reservation>> reservationPager, boolean isAdminPage) Retrieves a paginated subset of all Reservations according to the URL parameters given.HandlesGETrequests to/räume/{number}.org.springframework.hateoas.EntityModel<RoomDTO> HandlesGETrequests to/api/v1/rooms/{number}.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.@NonNull StringRoomController.getSchedule(@NonNull String number, @Nullable LocalDate date, @NonNull org.springframework.ui.Model model) HandlesGETrequests to/rooms/{number}/scheduleand returns theRoomSchedulefor theRoomwith the givenRoom.numberon the givenLocalDate.@NonNull StringRoomController.getWeekSchedule(@NonNull String number, @Nullable LocalDate date, @NonNull org.springframework.ui.Model model) HandlesGETrequests to/rooms/{number}/schedule/weekand returns the RoomSchedules for each day in the givenLocalDate's week for theRoomwith the givenRoom.numberon the givenLocalDate.@NonNull StringReservationController.massDelete(@NonNull ReservationMultiActionRequest requestDto, @NonNull org.springframework.ui.Model model) HandlesPOSTrequests to/reservations/deleteand [mass deletes][ReservationService#deleteOwnReservations(Iterable)(Iterable)] the currentActor's Reservations with the identifiers that are specified in the given data-transfer object. -
Uses of NotFoundException in de.gustavblass.fsu.fmi.roombooking.controller.admin
Methods in de.gustavblass.fsu.fmi.roombooking.controller.admin that throw NotFoundExceptionModifier and TypeMethodDescription@NonNull org.springframework.http.ResponseEntity<Void> ActorAdminRestController.deleteActor(String userName) HandlesDELETErequests to/api/v1/admin/users/{userName}and removes theActorwith the givenActor.userNamefrom the database.org.springframework.http.ResponseEntity<Void> EquipmentAdminRestController.deleteEquipment(@NonNull String name) Removes theEquipmentTypewith the givenEquipmentType.namefrom the database.@NonNull StringEquipmentAdminController.deleteEquipmentType(@NonNull String name, @NonNull Locale locale) Removes theEquipmentTypewith the givenEquipmentType.namefrom the database if existent.@NonNull StringReservationAdminController.deleteReservation(@NonNull Long id, @NonNull Locale locale) HandlesPOSTrequests to/admin/reservations/{id}/deleteand permanently removes theReservationwith the givenReservation.idfrom the database.@NonNull org.springframework.http.ResponseEntity<Void> ReservationAdminRestController.deleteReservation(@Min(0L) Long id) HandlesDELETErequests to/api/v1/admin/reservations/{id}and removes theReservationwith the givenReservation.idfrom the database.@NonNull org.springframework.http.ResponseEntity<Void> ReservationAdminRestController.deleteReservation(@NonNull ArrayList<Long> ids) HandlesDELETErequests to/api/v1/admin/reservationsand mass-removes all Reservations with the given IDs from the database.org.springframework.http.ResponseEntity<Void> RoomAdminRestController.deleteRoom(@NonNull String number) Removes theRoomwith the givenRoom.numberfrom the database, if there are no Reservations for the Room that end afterLocalDateTime.now().@NonNull StringEquipmentAdminController.getDeleteTypeConfirmationPage(@NonNull String name, @NonNull org.springframework.ui.Model model) HandlesGETrequests to/admin/equipment/{name}/deleteand asks the user whether they really wish to delete theEquipmentTypewith the givenEquipmentType.namefrom the database.@NonNull StringReservationAdminController.getDeletionPage(@NonNull Long id, @NonNull org.springframework.ui.Model model) Shows a confirmation page asking the user whether they are sure they wish to permanently remove theReservationwith the givenReservation.idfrom the database.ReservationAdminController.getReservation(@NonNull Long id, @NonNull org.springframework.ui.Model model) HandlesGETrequests to/admin/reservations/{id}.@NonNull org.springframework.hateoas.EntityModel<ReservationDTO> ReservationAdminRestController.getReservation(@NonNull Long id) HandlesGETrequests to/api/v1/admin/reservations/{id}and fetches theReservationwith the specifiedReservation.idfrom the database, converts it to anReservationDTOobject and returns that.@NonNull StringReservationAdminController.getReservations(int page, @Max(20L) int size, @NonNull String sortBy, boolean ascending, @Nullable FilterReservationsDTO filterReservationsDTO, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.ui.Model model, org.springframework.validation.BindingResult bindingResult) HandlesGETrequests to/admin/reservations.org.springframework.hateoas.CollectionModel<org.springframework.hateoas.EntityModel<ReservationSummaryDTO>> ReservationAdminRestController.getReservations(int page, @Max(20L) int size, @NonNull String sortBy, boolean ascending, @Nullable FilterReservationsDTO filterReservationsDTO) HandlesGETrequests to/api/v1/admin/reservations.@NonNull StringReservationAdminController.massDelete(@NonNull ReservationMultiActionRequest requestDto, @NonNull org.springframework.ui.Model model) HandlesPOSTrequests to/admin/reservations/deleteand mass deletes the Reservations with the identifiers that are specified in the given data-transfer object. -
Uses of NotFoundException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw NotFoundExceptionModifier 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 ActorActorService.confirmNewEMail(@NonNull String verificationToken) Changes theActor.eMailAddressof theVerificationToken.actorto the newEMailVerificationToken.eMailAddress.voidPermanently removes the Reservations with the given identifiers from the database, if all of them exist.voidPermanently removes theReservationwith the givenReservation.idfrom the database.voidActorService.deleteActor(@NonNull String userName) Removes theActorwith the givenActor.userNamefrom the database.voidEquipmentService.deleteByName(@NonNull String name) Removes theEquipmentTypewith the givenEquipmentType.namefrom the database if existent.voidReservationService.deleteOwnReservation(@NonNull Long id) Permanently removes the current Actor'sReservationwith the givenReservation.idfrom the database.voidReservationService.deleteOwnReservations(@NonNull Iterable<Long> ids) Permanently removes the Reservations which belong to the current Actor and have the given identifiers from the database, if all of them exist.voidRoomService.deleteRoom(@NonNull String roomNumber) Removes theRoomwith the givenRoom.numberfrom the database, if there are no Reservations for the Room that end afterLocalDateTime.now().@NonNull ActorActorService.enableAccount(@NonNull String verificationToken) SetsActor.enabledto true for theVerificationToken.actorbelonging to the givenVerificationToken.token.@NonNull Set<Reservation> ReservationService.findReservationsByDateTime(@NonNull String roomNumber, @NonNull LocalDateTime startDate, @NonNull LocalDateTime endDate) @NonNull LinkedHashSet<Reservation> ReservationService.findReservationsByRoom(@NonNull String roomNumber) @NonNull RoomRoomService.findRoomByNumber(String number) Fetches theRoomwith the specifiedRoom.numberfrom the database table.@NonNull ActorActorService.findUserByUserName(@NonNull String userName)