Search in sources :

Example 1 with PaymentWorksNewVendorRequestDetailDTO

use of edu.cornell.kfs.pmw.batch.xmlObjects.PaymentWorksNewVendorRequestDetailDTO in project cu-kfs by CU-CommunityApps.

the class PaymentWorksWebServiceCallsServiceImpl method obtainPmwNewVendorRequestDetailForPmwIdentifier.

@Override
public PaymentWorksVendor obtainPmwNewVendorRequestDetailForPmwIdentifier(String pmwNewVendorRequestId, PaymentWorksNewVendorRequestsBatchReportData reportData) {
    PaymentWorksNewVendorRequestDetailDTO pmwDetailForSpecificVendorDTO = retrieveAllPaymentWorksDetailsForRequestedVendor(buildPaymentWorksPendingNewVendorRequestDetailURI(pmwNewVendorRequestId));
    PaymentWorksVendor pmwDetailForSpecificVendor = getPaymentWorksDtoToPaymentWorksVendorConversionService().createPaymentWorksVendorFromPaymentWorksNewVendorRequestDetailDTO(pmwDetailForSpecificVendorDTO, reportData);
    return pmwDetailForSpecificVendor;
}
Also used : PaymentWorksVendor(edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor) PaymentWorksNewVendorRequestDetailDTO(edu.cornell.kfs.pmw.batch.xmlObjects.PaymentWorksNewVendorRequestDetailDTO)

Example 2 with PaymentWorksNewVendorRequestDetailDTO

use of edu.cornell.kfs.pmw.batch.xmlObjects.PaymentWorksNewVendorRequestDetailDTO in project cu-kfs by CU-CommunityApps.

the class PaymentWorksWebServiceCallsServiceImpl method retrieveAllPaymentWorksDetailsForRequestedVendor.

private PaymentWorksNewVendorRequestDetailDTO retrieveAllPaymentWorksDetailsForRequestedVendor(URI newVendorRequestDetailURI) {
    LOG.info("retrieveAllPaymentWorksDetailsForRequestedVendor: newVendorRequestDetailURI=" + newVendorRequestDetailURI);
    Response responseForNewVendorRequestSpecificDetail = null;
    PaymentWorksNewVendorRequestDetailDTO pmwRequestedNewVendorDetail = null;
    try {
        responseForNewVendorRequestSpecificDetail = buildXmlOutput(newVendorRequestDetailURI);
        pmwRequestedNewVendorDetail = responseForNewVendorRequestSpecificDetail.readEntity(PaymentWorksNewVendorRequestDetailDTO.class);
        LOG.info("retrieveAllPaymentWorksDetailsForRequestedVendor: legalName=" + pmwRequestedNewVendorDetail.getRequesting_company().getLegal_name());
        return pmwRequestedNewVendorDetail;
    } finally {
        CURestClientUtils.closeQuietly(responseForNewVendorRequestSpecificDetail);
    }
}
Also used : Response(javax.ws.rs.core.Response) PaymentWorksNewVendorRequestDetailDTO(edu.cornell.kfs.pmw.batch.xmlObjects.PaymentWorksNewVendorRequestDetailDTO)

Aggregations

PaymentWorksNewVendorRequestDetailDTO (edu.cornell.kfs.pmw.batch.xmlObjects.PaymentWorksNewVendorRequestDetailDTO)2 PaymentWorksVendor (edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor)1 Response (javax.ws.rs.core.Response)1