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.purap.service;
17:
18: import java.util.Collection;
19:
20: import org.kuali.core.util.KualiDecimal;
21: import org.kuali.module.purap.bo.NegativePaymentRequestApprovalLimit;
22:
23: public interface NegativePaymentRequestApprovalLimitService {
24:
25: /**
26: * Find limits by chart.
27: *
28: * @param chartCode
29: * @return - collection of negative payment request approval limits
30: */
31: public Collection<NegativePaymentRequestApprovalLimit> findByChart(
32: String chartCode);
33:
34: /**
35: * Find limits by chart and account.
36: *
37: * @param chartCode
38: * @param accountNumber
39: * @return - collection of negative payment request approval limits
40: */
41: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(
42: String chartCode, String accountNumber);
43:
44: /**
45: * Find limits by chart and organization.
46: *
47: * @param chartCode
48: * @param organizationCode
49: * @return - collection of negative payment request approval limits
50: */
51: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(
52: String chartCode, String organizationCode);
53:
54: /**
55: * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is greater
56: * than the limit passed in. (Used for Testing.)
57: *
58: * @param limit - lower limit
59: * @return - collection of negative payment request approval limits
60: */
61: public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(
62: KualiDecimal limit);
63:
64: /**
65: * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than
66: * the limit passed in. (Used for Testing.)
67: *
68: * @param limit - upper limit
69: * @return - collection of negative payment request approval limits
70: */
71: public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(
72: KualiDecimal limit);
73:
74: }
|