use of edu.cornell.kfs.concur.rest.xmlObjects.TravelRequestDetailsDTO in project cu-kfs by CU-CommunityApps.
the class ConcurReportsServiceImpl method extractConcurReportFromTravelRequestDetails.
protected ConcurReport extractConcurReportFromTravelRequestDetails(String reportURI) {
TravelRequestDetailsDTO travelRequestDetailsDTO = retrieveTravelRequestDetails(reportURI);
List<ConcurAccountInfo> concurAccountInfos = extractAccountInfoFromTravelRequestDetails(travelRequestDetailsDTO);
return new ConcurReport(travelRequestDetailsDTO.getRequestID(), travelRequestDetailsDTO.getConcurStatucCode(), travelRequestDetailsDTO.getWorkflowActionURL(), concurAccountInfos);
}
use of edu.cornell.kfs.concur.rest.xmlObjects.TravelRequestDetailsDTO in project cu-kfs by CU-CommunityApps.
the class ConcurReportsServiceImpl method buildTravelRequestDetailsOutput.
protected TravelRequestDetailsDTO buildTravelRequestDetailsOutput(String reportURI) {
Response response = null;
try {
Invocation request = buildReportDetailsClientRequest(reportURI, HttpMethod.GET);
response = request.invoke();
TravelRequestDetailsDTO reportDetails = response.readEntity(TravelRequestDetailsDTO.class);
return reportDetails;
} finally {
CURestClientUtils.closeQuietly(response);
}
}
Aggregations