use of uk.nhs.adaptors.scr.clients.identity.UserInfo in project summary-care-record-api by NHSDigital.
the class AcsService method setPermission.
public void setPermission(RequestData requestData) {
Parameters parameters = fhirParser.parseResource(requestData.getBody(), Parameters.class);
ParametersParameterComponent parameter = getSetPermissionParameter(parameters);
UserInfo userInfo = identityService.getUserInfo(requestData.getAuthorization());
String acsRequest = prepareAcsRequest(parameter, requestData, getUserRoleCode(userInfo, requestData.getNhsdSessionUrid()), userInfo.getId());
Response<Document> response = spineClient.sendAcsData(acsRequest, requestData.getNhsdAsid());
spineDetectedIssuesHandler.handleDetectedIssues(spineResponseParser.getDetectedIssues(response.getBody()));
}
Aggregations