Uses of Class
de.gustavblass.fsu.fmi.roombooking.exceptions.UnauthorisedException
Packages that use UnauthorisedException
Package
Description
-
Uses of UnauthorisedException in de.gustavblass.fsu.fmi.roombooking.controller.admin
Methods in de.gustavblass.fsu.fmi.roombooking.controller.admin that throw UnauthorisedExceptionModifier and TypeMethodDescription@NonNull org.springframework.http.ResponseEntity<Void> ActorAdminRestController.createActor(@Valid LocalActorCreatedByAdminDTO dto) HandlesPOSTrequests to/api/v1/admin/usersand saves a newActorbased on the form input (represented as anActorCreatedByAdminDTO) to the database.@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. -
Uses of UnauthorisedException in de.gustavblass.fsu.fmi.roombooking.service
Methods in de.gustavblass.fsu.fmi.roombooking.service that throw UnauthorisedExceptionModifier and TypeMethodDescriptionstatic voidCurrentAuthorityService.checkAuthorisationForActorAccess(@NonNull ActorAuthority subjectAuthority, @NonNull String errorMessage) Verifies that the current end-user has sufficient privilege to create, modify or delete anActorwith the givenActorAuthority.@NonNull ActorActorService.createActor(@NonNull LocalActorCreatedByAdminDTO dto) Saves a newActorto the database.voidActorService.deleteActor(@NonNull String userName) Removes theActorwith the givenActor.userNamefrom the database.