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;
}
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);
}
}
Aggregations