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;
17:
18: import java.sql.Date;
19: import java.util.Iterator;
20: import java.util.List;
21:
22: import org.kuali.module.pdp.bo.PaymentGroup;
23: import org.kuali.module.pdp.bo.PaymentProcess;
24:
25: public interface PaymentGroupService {
26: /**
27: * Get all payment groups by a disbursement type code and status code
28: *
29: * @param disbursementType
30: * @param paymentStatusCode
31: * @return
32: */
33: public Iterator getByDisbursementTypeStatusCode(
34: String disbursementType, String paymentStatusCode);
35:
36: /**
37: * Get all payment groups by Payment Process Id This method...
38: *
39: * @param processId
40: * @return
41: */
42: public Iterator getByProcessId(Integer processId);
43:
44: /**
45: * Get all payment groups by Payment Process object
46: *
47: * @param p
48: * @return
49: */
50: public Iterator getByProcess(PaymentProcess p);
51:
52: /**
53: * Get all payment groups by Payment Process Id/Disbursement Type
54: *
55: * @param pid
56: * @param disbursementType
57: * @return
58: */
59: public List<Integer> getDisbursementNumbersByDisbursementType(
60: Integer pid, String disbursementType);
61:
62: public void save(PaymentGroup pg);
63:
64: public PaymentGroup get(Integer id);
65:
66: public List getByBatchId(Integer batchId);
67:
68: public List getByDisbursementNumber(Integer disbursementNbr);
69:
70: /**
71: * Mark a paid group as processed
72: *
73: * @param group
74: * @param processDate
75: */
76: public void processPaidGroup(PaymentGroup group, Date processDate);
77:
78: /**
79: * Mark a cancelled group as processed
80: *
81: * @param group
82: * @param processDate
83: */
84: public void processCancelledGroup(PaymentGroup group,
85: Date processDate);
86: }
|