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 Summary
FieldsModifier and TypeFieldDescriptionprivate final org.modelmapper.ModelMapperprivate final CommunicationChannelService -
Constructor Summary
ConstructorsConstructorDescriptionCommunicationChannelController(CommunicationChannelService service, org.modelmapper.ModelMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(IdListDto<Integer> dto) org.springframework.data.domain.Page<CommunicationChannelDto>
-
Field Details
-
service
-
mapper
private final org.modelmapper.ModelMapper mapper
-
-
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
-
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)
-