Search in sources :

Example 1 with CuProcessPdpCancelPaidService

use of edu.cornell.kfs.pdp.batch.service.CuProcessPdpCancelPaidService 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);
    }
}
Also used : CuProcessPdpCancelPaidService(edu.cornell.kfs.pdp.batch.service.CuProcessPdpCancelPaidService) ExtractionUnit(org.kuali.kfs.pdp.businessobject.ExtractionUnit) PaymentDetail(org.kuali.kfs.pdp.businessobject.PaymentDetail) Date(java.sql.Date)

Example 2 with CuProcessPdpCancelPaidService

use of edu.cornell.kfs.pdp.batch.service.CuProcessPdpCancelPaidService 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);
    }
}
Also used : CuProcessPdpCancelPaidService(edu.cornell.kfs.pdp.batch.service.CuProcessPdpCancelPaidService) ExtractionUnit(org.kuali.kfs.pdp.businessobject.ExtractionUnit) PaymentDetail(org.kuali.kfs.pdp.businessobject.PaymentDetail) Date(java.sql.Date)

Aggregations

CuProcessPdpCancelPaidService (edu.cornell.kfs.pdp.batch.service.CuProcessPdpCancelPaidService)2 Date (java.sql.Date)2 ExtractionUnit (org.kuali.kfs.pdp.businessobject.ExtractionUnit)2 PaymentDetail (org.kuali.kfs.pdp.businessobject.PaymentDetail)2