@RestController @RequestMapping(value="/super") public class SuperAdminController extends Object
| Constructor and Description |
|---|
SuperAdminController(RegistryService registryService,
AuthoritiesUpdater authoritiesUpdater) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Response> |
assignRole(String email)
Assign portal admin role to user with @email
|
org.springframework.http.ResponseEntity<Response> |
createRole(String name,
String description)
Create a new role (only for admins)
|
org.springframework.http.ResponseEntity<List<User>> |
getUsersByEmail(String email) |
org.springframework.http.ResponseEntity<Response> |
removeRole(String email)
Remove portal admin role from logged in user or user with @email
|
@Autowired public SuperAdminController(RegistryService registryService, AuthoritiesUpdater authoritiesUpdater)
@RequestMapping(value="/create",
method=POST)
public org.springframework.http.ResponseEntity<Response> createRole(@RequestParam(value="name")
String name,
@RequestParam(value="description",required=false)
String description)
@RequestMapping(value="/assign",
method=POST)
public org.springframework.http.ResponseEntity<Response> assignRole(@RequestParam(required=false)
String email)
@RequestMapping(value="/remove",
method=DELETE)
public org.springframework.http.ResponseEntity<Response> removeRole(@RequestParam(required=false)
String email)
Copyright © 2023. All rights reserved.