use of org.kuali.kfs.pdp.businessobject.ExtractionUnit in project cu-kfs by CU-CommunityApps.
the class CuProcessPdpCancelPaidServiceImpl method processPdpPaids.
/**
* Overridden to process each payment detail in its own transaction.
* This implementation forces the current service to call a proxied version of itself,
* in order for Spring to handle the transactions properly on the per-payment handler method.
*
* @see org.kuali.kfs.pdp.batch.service.impl.ProcessPdpCancelPaidServiceImpl#processPdpPaids()
*/
@Override
public void processPdpPaids() {
LOG.debug("processPdpPaids() started");
CuProcessPdpCancelPaidService proxiedProcessPdpCancelPaidService = getProxiedProcessPdpCancelPaidService();
Date processDate = dateTimeService.getCurrentSqlDate();
List<ExtractionUnit> extractionUnits = getExtractionUnits();
Iterator<PaymentDetail> details = paymentDetailService.getUnprocessedPaidDetails(extractionUnits);
while (details.hasNext()) {
PaymentDetail paymentDetail = details.next();
proxiedProcessPdpCancelPaidService.processPdpPaid(paymentDetail, processDate);
}
}
use of org.kuali.kfs.pdp.businessobject.ExtractionUnit in project cu-kfs by CU-CommunityApps.
the class CuProcessPdpCancelPaidServiceImpl method processPdpCancels.
/**
* Overridden to process each payment detail in its own transaction.
* This implementation forces the current service to call a proxied version of itself,
* in order for Spring to handle the transactions properly on the per-payment handler method.
*
* @see org.kuali.kfs.pdp.batch.service.impl.ProcessPdpCancelPaidServiceImpl#processPdpCancels()
*/
@Override
public void processPdpCancels() {
LOG.debug("processPdpCancels() started");
CuProcessPdpCancelPaidService proxiedProcessPdpCancelPaidService = getProxiedProcessPdpCancelPaidService();
Date processDate = dateTimeService.getCurrentSqlDate();
List<ExtractionUnit> extractionUnits = getExtractionUnits();
Iterator<PaymentDetail> details = paymentDetailService.getUnprocessedCancelledDetails(extractionUnits);
while (details.hasNext()) {
PaymentDetail paymentDetail = details.next();
proxiedProcessPdpCancelPaidService.processPdpCancel(paymentDetail, processDate);
}
}
Aggregations