Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.IllegalStateException
Packages that use IllegalStateException
Package
Description
-
Uses of IllegalStateException in de.gustavblass.fsu.fmi.roombooking.controller
Methods in de.gustavblass.fsu.fmi.roombooking.controller that throw IllegalStateExceptionModifier and TypeMethodDescription@NonNull StringReservationController.bookRoom(@NonNull @Valid BookRoomDTO reservationDTO, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull jakarta.servlet.http.HttpSession session, @NonNull org.springframework.web.bind.support.SessionStatus sessionStatus) @NonNull org.springframework.hateoas.EntityModel<ReservationDTO> ReservationRestController.bookRoom(@NonNull @Valid BookRoomDTO bookRoomDTO) HandlesPOSTrequests to/api/v1/reservationsand places a newReservationbased on the givenBookRoomDTO.@NonNull StringActorController.changeEMailAddress(@NonNull org.springframework.ui.Model model, @NonNull @Valid ChangeEMailAddressDTO changeEMailAddressDTO, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull jakarta.servlet.http.HttpServletResponse response, @Nullable ChangeUserNameDTO ignoredChangeUserNameDTO, @Nullable ChangeNameDTO ignoredChangeNameDTO, @NonNull org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) HandlesPOSTrequests to/user/change-emailand allows the currently logged-inActorto request a change of theirActor.eMailAddress.@NonNull StringActorController.changeName(@NonNull org.springframework.ui.Model model, @NonNull @Valid ChangeNameDTO changeNameDTO, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull jakarta.servlet.http.HttpServletResponse response, @Nullable ChangeUserNameDTO ignoredChangeUserNameDTO, @Nullable ChangeEMailAddressDTO ignoredChangeEMailAddressDTO) HandlesPOSTrequests to/user/change-nameand updates theActor.nameof the authenticatedActorto the givenChangeNameDTO.newName.@NonNull StringActorController.changeUserName(@NonNull org.springframework.ui.Model model, @NonNull @Valid ChangeUserNameDTO changeUserNameDTO, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull jakarta.servlet.http.HttpServletResponse response, @Nullable ChangeNameDTO ignoredChangeNameDTO, @Nullable ChangeEMailAddressDTO ignoredChangeEMailAddressDTO) HandlesPOSTrequests to/user/change-usernameand updates theActor.userNameof the authenticatedActorto the givenChangeUserNameDTO.newUserName.@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 StringActorController.getAccountConfirmationPage(@NonNull String token, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletResponse response) HandlesGETrequests to/users/confirm/{token}and enables theActorassociated with the givenVerificationToken.@NonNull StringActorController.getActors(@NonNull jakarta.servlet.http.HttpServletResponse response) Redirects the user to/admin/users.@NonNull StringActorController.getEMailConfirmationPage(@NonNull String token, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletResponse response) HandlesGETrequests to/users/change-email/confirm/{token}and updates theActor.eMailAddressof theActorassociated with the givenEMailVerificationTokento the valueEMailVerificationToken.eMailAddress.@NonNull StringActorController.getGenericChangePasswordPage()@NonNull StringActorController.registerLocally(@NonNull org.springframework.ui.Model model, @NonNull @Valid LocalRegistrationActorDTO registerDTO, @NonNull org.springframework.validation.BindingResult result, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull LdapRegistrationActorDTO ignoredDTO) HandlesPOSTrequests to/registerand allows the user to sign up at this service.@NonNull StringActorController.registerViaLdap(@NonNull org.springframework.ui.Model model, @NonNull @Valid LdapRegistrationActorDTO registerDTO, @NonNull org.springframework.validation.BindingResult result, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull LocalRegistrationActorDTO ignoredDTO) HandlesPOSTrequests to/registerand allows the user to sign up at this service.@NonNull org.springframework.http.ResponseEntity<Void> ActorRestController.registerViaLdap(@NonNull @Valid LdapRegistrationActorDTO actorDTO) HandlesPOSTrequests to/api/v1/register/ldapand creates a newActorbased on the givenLdapRegistrationActorDTO. -
Uses of IllegalStateException in de.gustavblass.fsu.fmi.roombooking.controller.admin
Methods in de.gustavblass.fsu.fmi.roombooking.controller.admin that throw IllegalStateExceptionModifier and TypeMethodDescriptionActorAdminController.createActor(@Valid LocalActorCreatedByAdminDTO dto, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull jakarta.servlet.http.HttpServletResponse response) HandlesPOSTrequests to/admin/users/addand saves a newActorbased on the form input (represented as anActorCreatedByAdminDTO) to the database.@NonNull StringEquipmentAdminController.createEquipmentType(@Valid @NonNull EquipmentTypeDTO dto, @NonNull org.springframework.validation.BindingResult bindingResult, @NonNull org.springframework.ui.Model model, @NonNull jakarta.servlet.http.HttpServletResponse response) HandlesPOSTrequests to/admin/equipment/newand adds the givenEquipmentTypeDTOas a newEquipmentTypeto the database.@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 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. -
Uses of IllegalStateException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw IllegalStateExceptionModifier 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.voidEMailService.onEMailChange(@NonNull EMailChangeEvent event) Sends an e-mail to theEMailChangeEvent.EMailChange.actorasking them to open the link with theEMailChangeEvent.EMailChange.verificationToken, in order to verify their new e-mail address.voidEMailService.onRegistration(@NonNull UnconfirmedRegistrationEvent event) Sends an e-mail to the newActorCreatedEvent.actorasking them to open the link with theUnconfirmedRegistrationEvent.verificationToken, in order to verify theirActor.eMailAddress.voidEMailService.onReservationConfirmation(@NonNull ReservationConfirmedEvent event) Sends an e-mail to theReservation.applicanttelling them that their newReservationwas just accepted by the server.private voidEMailService.prepareMail(@NonNull org.springframework.mail.javamail.MimeMessageHelper mail, @NonNull String recipient, @NonNull String subject, @NonNull Locale locale) Adds the given recipient and subject to the givenMimeMessageHelperin the givenLocale.voidActorService.register(@NonNull LdapRegistrationActorDTO ldapRegistrationActorDTO) Creates a newActorin the database, according to the givenLdapRegistrationActorDTO.voidActorService.register(@NonNull LocalRegistrationActorDTO localRegistrationActorDTO) Creates a newActorin the database, according to the givenLocalRegistrationActorDTO.@NonNull URIRetrieves the given path code from thePathLocaliser.localisedPathSourceand converts it to aURI.@NonNull StringPathLocaliser.resolveAsString(@NonNull String path, @NonNull Locale locale, @Nullable Object... arguments) Retrieves the given path code from thePathLocaliser.localisedPathSourceand first converts it to aURIand then to an ASCII string.private voidEMailService.sendEMail(@NonNull String recipientAddress, @NonNull String subject, @NonNull EMailService.Template template, @NonNull org.thymeleaf.context.Context context, @NonNull Locale locale) Sends an e-mail to the given recipient's address, with the given subject and content in the given language.