Class RoleManagementController

java.lang.Object
hu.rts.mike.example.dev.crm.rest.controller.RoleManagementController

@RestController @RequestMapping("/api/role-management") @PreAuthorize("isAuthenticated()") public class RoleManagementController extends Object
  • Field Details

  • Constructor Details

    • RoleManagementController

      public RoleManagementController(RoleService service)
  • Method Details

    • table

      @GetMapping @PreAuthorize("hasAuthority(\'READ_ROLE\')") public org.springframework.data.domain.Page<RoleListDto> table(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="size",defaultValue="20") int size, @RequestParam(value="search",required=false) String searchBarValue, @RequestParam(value="sort",required=false) List<String> sorts, @RequestParam(value="filter",required=false) List<String> strFilters)
    • getById

      @GetMapping("{id}") @PreAuthorize("hasAuthority(\'READ_ROLE\')") public RoleListDto getById(@PathVariable("id") String id)
    • delete

      @DeleteMapping @PreAuthorize("hasAuthority(\'DELETE_ROLE\')") public void delete(@RequestBody IdListDto<String> dto)
    • create

      @PostMapping @PreAuthorize("hasAuthority(\'CREATE_ROLE\')") public RoleListDto create(@RequestBody RoleListDto dto)
    • update

      @PutMapping @PreAuthorize("hasAuthority(\'UPDATE_ROLE\')") public RoleListDto update(@RequestBody RoleListDto dto)