01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.pdp.service.impl;
17:
18: import java.util.Iterator;
19: import java.util.List;
20:
21: import org.kuali.module.pdp.bo.PaymentDetail;
22: import org.kuali.module.pdp.dao.PaymentDetailDao;
23: import org.kuali.module.pdp.service.PaymentDetailService;
24: import org.springframework.transaction.annotation.Transactional;
25:
26: @Transactional
27: public class PaymentDetailServiceImpl implements PaymentDetailService {
28: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
29: .getLogger(PaymentDetailServiceImpl.class);
30:
31: private PaymentDetailDao paymentDetailDao;
32:
33: public void setPaymentDetailDao(PaymentDetailDao c) {
34: paymentDetailDao = c;
35: }
36:
37: /**
38: * @see org.kuali.module.pdp.service.PaymentDetailService#getAchPaymentsWithUnsentEmail()
39: */
40: public Iterator getAchPaymentsWithUnsentEmail() {
41: LOG.debug("getAchPaymentsWithUnsentEmail() started");
42:
43: return paymentDetailDao.getAchPaymentsWithUnsentEmail();
44: }
45:
46: /**
47: * @see org.kuali.module.pdp.service.PaymentDetailService#getByDisbursementNumber(java.lang.Integer)
48: */
49: public Iterator getByDisbursementNumber(Integer disbursementNumber) {
50: LOG.debug("getByDisbursementNumber() started");
51:
52: return paymentDetailDao
53: .getByDisbursementNumber(disbursementNumber);
54: }
55:
56: /**
57: * @see org.kuali.module.pdp.service.PaymentDetailService#get(java.lang.Integer)
58: */
59: public PaymentDetail get(Integer id) {
60: LOG.debug("get() started");
61:
62: return paymentDetailDao.get(id);
63: }
64:
65: /**
66: * @see org.kuali.module.pdp.service.PaymentDetailService#getDetailForEpic(java.lang.String, java.lang.String)
67: */
68: public PaymentDetail getDetailForEpic(String custPaymentDocNbr,
69: String fdocTypeCode) {
70: LOG.debug("getDetailForEpic() started");
71:
72: return paymentDetailDao.getDetailForEpic(custPaymentDocNbr,
73: fdocTypeCode);
74: }
75:
76: /**
77: * @see org.kuali.module.pdp.service.PaymentDetailService#getUnprocessedCancelledDetails(java.lang.String, java.lang.String)
78: */
79: public Iterator getUnprocessedCancelledDetails(String organization,
80: List<String> subUnits) {
81: LOG.debug("getUnprocessedCancelledDetails() started");
82:
83: return paymentDetailDao.getUnprocessedCancelledDetails(
84: organization, subUnits);
85: }
86:
87: /**
88: * @see org.kuali.module.pdp.service.PaymentDetailService#getUnprocessedPaidDetails(java.lang.String, java.lang.String)
89: */
90: public Iterator getUnprocessedPaidDetails(String organization,
91: List<String> subUnits) {
92: LOG.debug("getUnprocessedPaidDetails() started");
93:
94: return paymentDetailDao.getUnprocessedPaidDetails(organization,
95: subUnits);
96: }
97: }
|