View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
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.ole.module.purap.document.service;
17  
18  import org.kuali.ole.module.purap.businessobject.NegativePaymentRequestApprovalLimit;
19  import org.kuali.rice.core.api.util.type.KualiDecimal;
20  
21  import java.util.Collection;
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(String chartCode);
32  
33      /**
34       * Find limits by chart and account.
35       *
36       * @param chartCode
37       * @param accountNumber
38       * @return - collection of negative payment request approval limits
39       */
40      public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber);
41  
42      /**
43       * Find limits by chart and organization.
44       *
45       * @param chartCode
46       * @param organizationCode
47       * @return - collection of negative payment request approval limits
48       */
49      public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode);
50  
51      /**
52       * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is greater
53       * than the limit passed in.  (Used for Testing.)
54       *
55       * @param limit - lower limit
56       * @return - collection of negative payment request approval limits
57       */
58      public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(KualiDecimal limit);
59  
60      /**
61       * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than
62       * the limit passed in.  (Used for Testing.)
63       *
64       * @param limit - upper limit
65       * @return - collection of negative payment request approval limits
66       */
67      public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(KualiDecimal limit);
68  
69  }