Search in sources :

Example 1 with ExpenseReportDetailsDTO

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);
    }
}
Also used : Response(javax.ws.rs.core.Response) Invocation(javax.ws.rs.client.Invocation) ExpenseReportDetailsDTO(edu.cornell.kfs.concur.rest.xmlObjects.ExpenseReportDetailsDTO)

Example 2 with ExpenseReportDetailsDTO

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);
}
Also used : ExpenseReportDetailsDTO(edu.cornell.kfs.concur.rest.xmlObjects.ExpenseReportDetailsDTO) ConcurReport(edu.cornell.kfs.concur.businessobjects.ConcurReport) ConcurAccountInfo(edu.cornell.kfs.concur.businessobjects.ConcurAccountInfo)

Aggregations

ExpenseReportDetailsDTO (edu.cornell.kfs.concur.rest.xmlObjects.ExpenseReportDetailsDTO)2 ConcurAccountInfo (edu.cornell.kfs.concur.businessobjects.ConcurAccountInfo)1 ConcurReport (edu.cornell.kfs.concur.businessobjects.ConcurReport)1 Invocation (javax.ws.rs.client.Invocation)1 Response (javax.ws.rs.core.Response)1