Class SuperAdminController


  • @RestController
    @RequestMapping("/super")
    public class SuperAdminController
    extends Object
    • Method Detail

      • createRole

        @RequestMapping(value="/create",
                        method=POST)
        public org.springframework.http.ResponseEntity<Response> createRole​(@RequestParam("name")
                                                                            String name,
                                                                            @RequestParam(value="description",required=false)
                                                                            String description)
        Create a new role (only for admins)
      • assignRole

        @RequestMapping(value="/assign",
                        method=POST)
        public org.springframework.http.ResponseEntity<Response> assignRole​(@RequestParam(required=false)
                                                                            String email,
                                                                            @RequestParam(required=false,defaultValue="false")
                                                                            boolean superAdmin)
        Assign portal admin role to user with @email
      • removeRole

        @RequestMapping(value="/remove",
                        method=DELETE)
        public org.springframework.http.ResponseEntity<Response> removeRole​(@RequestParam(required=false)
                                                                            String email,
                                                                            @RequestParam(required=false,defaultValue="false")
                                                                            boolean superAdmin)
        Remove portal admin role from logged in user or user with @email
      • getUsersByEmail

        @RequestMapping(value="/user",
                        method=GET)
        public org.springframework.http.ResponseEntity<List<User>> getUsersByEmail​(@RequestParam
                                                                                   String email)