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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(RoleListDto dto) voidorg.springframework.data.domain.Page<RoleListDto>update(RoleListDto dto)
-
Field Details
-
service
-
-
Constructor Details
-
RoleManagementController
-
-
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
-
create
@PostMapping @PreAuthorize("hasAuthority(\'CREATE_ROLE\')") public RoleListDto create(@RequestBody RoleListDto dto) -
update
@PutMapping @PreAuthorize("hasAuthority(\'UPDATE_ROLE\')") public RoleListDto update(@RequestBody RoleListDto dto)
-