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.NegativeInvoiceApprovalLimit; 19 import org.kuali.rice.core.api.util.type.KualiDecimal; 20 21 import java.util.Collection; 22 23 public interface NegativeInvoiceApprovalLimitService { 24 25 /** 26 * Find limits by chart. 27 * 28 * @param chartCode 29 * @return - collection of negative invoice approval limits 30 */ 31 public Collection<NegativeInvoiceApprovalLimit> findByChart(String chartCode); 32 33 /** 34 * Find limits by chart and account. 35 * 36 * @param chartCode 37 * @param accountNumber 38 * @return - collection of negative invoice approval limits 39 */ 40 public Collection<NegativeInvoiceApprovalLimit> 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 invoice approval limits 48 */ 49 public Collection<NegativeInvoiceApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode); 50 51 /** 52 * Retrieve a collection of NegativeInvoiceApprovalLimit where the NegativeInvoiceApprovalLimitAmount is greater 53 * than the limit passed in. (Used for Testing.) 54 * 55 * @param limit - lower limit 56 * @return - collection of negative invoice approval limits 57 */ 58 public Collection<NegativeInvoiceApprovalLimit> findAboveLimit(KualiDecimal limit); 59 60 /** 61 * Retrieve a collection of NegativeInvoiceApprovalLimit where the NegativeInvoiceApprovalLimitAmount is less than 62 * the limit passed in. (Used for Testing.) 63 * 64 * @param limit - upper limit 65 * @return - collection of negative invoice approval limits 66 */ 67 public Collection<NegativeInvoiceApprovalLimit> findBelowLimit(KualiDecimal limit); 68 69 }