Search in sources :

Example 1 with TravelRequestDetailsDTO

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

Example 2 with TravelRequestDetailsDTO

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

Aggregations

TravelRequestDetailsDTO (edu.cornell.kfs.concur.rest.xmlObjects.TravelRequestDetailsDTO)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