use of org.hl7.gravity.refimpl.sdohexchange.dto.converter.UserInfoToDtoConverter in project Gravity-SDOH-Exchange-RI by FHIR.
the class PatientTaskController method update.
@PutMapping("{id}")
@ApiOperation(value = "Update Task resource.")
public ResponseEntity<Void> update(@PathVariable @NotBlank(message = "Task id can't be empty.") String id, @Valid @RequestBody UpdateTaskRequestDto update, @ApiIgnore @AuthenticationPrincipal OidcUser user) {
UserDto userDto = new UserInfoToDtoConverter().convert(user.getClaims());
patientTaskService.update(id, update, userDto);
return ResponseEntity.noContent().build();
}
use of org.hl7.gravity.refimpl.sdohexchange.dto.converter.UserInfoToDtoConverter in project Gravity-SDOH-Exchange-RI by FHIR.
the class TaskController method update.
@PutMapping("{id}")
@ApiOperation(value = "Update Task resource.")
public ResponseEntity<Void> update(@PathVariable @NotBlank(message = "Task id can't be empty.") String id, @Valid @RequestBody UpdateTaskRequestDto update, @ApiIgnore @AuthenticationPrincipal OidcUser user) {
UserDto userDto = new UserInfoToDtoConverter().convert(user.getClaims());
taskService.update(id, update, userDto);
return ResponseEntity.noContent().build();
}
use of org.hl7.gravity.refimpl.sdohexchange.dto.converter.UserInfoToDtoConverter in project Gravity-SDOH-Exchange-RI by FHIR.
the class OurTaskController method update.
@PutMapping("/{id}")
@ApiOperation(value = "Update Our Task resource.")
public ResponseEntity<Void> update(@PathVariable @NotBlank(message = "Task id can't be empty.") String id, @RequestBody @Valid UpdateOurTaskRequestDto updateOurTaskRequestDto, @ApiIgnore @AuthenticationPrincipal OidcUser user) {
UserDto userDto = new UserInfoToDtoConverter().convert(user.getClaims());
ourTaskService.update(id, updateOurTaskRequestDto, userDto);
return ResponseEntity.noContent().build();
}
Aggregations