-
org.springframework.http.ResponseEntity
<Boolean>
Handles POST requests for the "/admin/updateUserRole/{id}" URL to
update user roles.
-
Returns the enum constant of this class with the specified
name.
Returns an array containing the constants of this enum class, in
the order they are declared.
-
Returns the value of the roles record component.
UserDTO
(long ID,
String username,
List<Role> roles,
boolean accountLocked,
boolean accountExpired,
boolean credentialsExpired)
Creates an instance of a UserDTO record class.
-
org.springframework.http.ResponseEntity
<Boolean>
Update the roles of a user with the specified ID.