Class CommunicationChannelController

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

@RestController @RequestMapping("/api/communication-channel") @PreAuthorize("isAuthenticated()") public class CommunicationChannelController extends Object
  • Field Details

  • Constructor Details

    • CommunicationChannelController

      public CommunicationChannelController(CommunicationChannelService service, org.modelmapper.ModelMapper mapper)
  • Method Details

    • table

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

      @GetMapping("{id}") @PreAuthorize("hasAuthority(\'READ_COMMUNICATION_CHANNEL\')") public CommunicationChannelDto getById(@PathVariable("id") Integer id)
    • deleteById

      @DeleteMapping("delete") @PreAuthorize("hasAuthority(\'DELETE_COMMUNICATION_CHANNEL\')") public void deleteById(@RequestBody IdListDto<Integer> dto)
    • create

      @PostMapping @PreAuthorize("hasAuthority(\'CREATE_COMMUNICATION_CHANNEL\')") public CommunicationChannelDto create(@RequestBody CommunicationChannelDto dto)
    • update

      @PutMapping @PreAuthorize("hasAuthority(\'UPDATE_COMMUNICATION_CHANNEL\')") public CommunicationChannelDto update(@RequestBody CommunicationChannelDto dto)