Class RoleController

    • Constructor Detail

      • RoleController

        public RoleController()
    • Method Detail

      • listRoles

        @GetMapping("/application/{app}/role")
        public org.springframework.http.ResponseEntity<Roles> listRoles​(@PathVariable("app")
                                                                        String app)
      • getRole

        @GetMapping("/application/{app}/role/{name:.+}")
        public org.springframework.http.ResponseEntity<Role> getRole​(@PathVariable("app")
                                                                     String app,
                                                                     @PathVariable("name")
                                                                     String name)
      • createRole

        @PostMapping("/application/{app}/role")
        public org.springframework.http.ResponseEntity<Role> createRole​(@PathVariable("app")
                                                                        String app,
                                                                        @RequestBody
                                                                        Role role)
      • updateRole

        @PutMapping("/application/{app}/role/{name:.+}")
        public org.springframework.http.ResponseEntity<Role> updateRole​(@PathVariable("app")
                                                                        String app,
                                                                        @PathVariable("name")
                                                                        String name,
                                                                        @RequestBody
                                                                        Role role)
      • addPermissionsAndSave

        protected void addPermissionsAndSave​(String app,
                                             Role role,
                                             RoleImpl appRole)
      • deleteRole

        @DeleteMapping("/application/{app}/role/{name:.+}")
        public org.springframework.http.ResponseEntity<Void> deleteRole​(@PathVariable("app")
                                                                        String app,
                                                                        @PathVariable("name")
                                                                        String name)
                                                                 throws BusinessException
        Throws:
        BusinessException