use of edu.cornell.kfs.concur.rest.xmlObjects.ExpenseReportDetailsDTO in project cu-kfs by CU-CommunityApps.
the class ConcurReportsServiceImpl method buildReportDetailsOutput.
protected ExpenseReportDetailsDTO buildReportDetailsOutput(String reportURI) {
Response response = null;
try {
Invocation request = buildReportDetailsClientRequest(reportURI, HttpMethod.GET);
response = request.invoke();
ExpenseReportDetailsDTO reportDetails = response.readEntity(ExpenseReportDetailsDTO.class);
return reportDetails;
} finally {
CURestClientUtils.closeQuietly(response);
}
}
use of edu.cornell.kfs.concur.rest.xmlObjects.ExpenseReportDetailsDTO in project cu-kfs by CU-CommunityApps.
the class ConcurReportsServiceImpl method extractConcurReportFromExpenseDetails.
protected ConcurReport extractConcurReportFromExpenseDetails(String reportURI) {
ExpenseReportDetailsDTO expenseReportDetailsDTO = retrieveExpenseReportDetails(reportURI);
List<ConcurAccountInfo> concurAccountInfos = extractAccountInfoFromExpenseReportDetails(expenseReportDetailsDTO);
return new ConcurReport(expenseReportDetailsDTO.getReportId(), expenseReportDetailsDTO.getConcurStatusCode(), expenseReportDetailsDTO.getWorkflowActionURL(), concurAccountInfos);
}
Aggregations