View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.purap.document.service;
20  
21  import java.util.Collection;
22  
23  import org.kuali.kfs.module.purap.businessobject.NegativePaymentRequestApprovalLimit;
24  import org.kuali.rice.core.api.util.type.KualiDecimal;
25  
26  public interface NegativePaymentRequestApprovalLimitService {
27  
28      /**
29       * Find limits by chart.
30       * 
31       * @param chartCode
32       * @return - collection of negative payment request approval limits
33       */
34      public Collection<NegativePaymentRequestApprovalLimit> findByChart(String chartCode);
35  
36      /**
37       * Find limits by chart and account.
38       * 
39       * @param chartCode
40       * @param accountNumber
41       * @return - collection of negative payment request approval limits
42       */
43      public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber);
44  
45      /**
46       * Find limits by chart and organization.
47       * 
48       * @param chartCode
49       * @param organizationCode
50       * @return - collection of negative payment request approval limits
51       */
52      public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(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(KualiDecimal limit);
62  
63      /**
64       * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than
65       * the limit passed in.  (Used for Testing.)
66       * 
67       * @param limit - upper limit
68       * @return - collection of negative payment request approval limits
69       */
70      public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(KualiDecimal limit);
71      
72  }