001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.purap.document.service; 017 018 import java.util.Collection; 019 020 import org.kuali.kfs.module.purap.businessobject.NegativePaymentRequestApprovalLimit; 021 import org.kuali.rice.kns.util.KualiDecimal; 022 023 public interface NegativePaymentRequestApprovalLimitService { 024 025 /** 026 * Find limits by chart. 027 * 028 * @param chartCode 029 * @return - collection of negative payment request approval limits 030 */ 031 public Collection<NegativePaymentRequestApprovalLimit> findByChart(String chartCode); 032 033 /** 034 * Find limits by chart and account. 035 * 036 * @param chartCode 037 * @param accountNumber 038 * @return - collection of negative payment request approval limits 039 */ 040 public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber); 041 042 /** 043 * Find limits by chart and organization. 044 * 045 * @param chartCode 046 * @param organizationCode 047 * @return - collection of negative payment request approval limits 048 */ 049 public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode); 050 051 /** 052 * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is greater 053 * than the limit passed in. (Used for Testing.) 054 * 055 * @param limit - lower limit 056 * @return - collection of negative payment request approval limits 057 */ 058 public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(KualiDecimal limit); 059 060 /** 061 * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than 062 * the limit passed in. (Used for Testing.) 063 * 064 * @param limit - upper limit 065 * @return - collection of negative payment request approval limits 066 */ 067 public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(KualiDecimal limit); 068 069 }