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.dataaccess;
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    /**
024     * Negative Payment Request Approval Limit DAO Interface.
025     */
026    public interface NegativePaymentRequestApprovalLimitDao {
027    
028        /**
029         * Find limits by chart.
030         * 
031         * @param chartCode - chart of accounts code
032         * @return - collection of negative payment request approval limits
033         */
034        public Collection<NegativePaymentRequestApprovalLimit> findByChart(String chartCode);
035    
036        /**
037         * Find limits by chart and account.
038         * 
039         * @param chartCode - chart of accounts code
040         * @param accountNumber
041         * @return - collection of negative payment request approval limits
042         */
043        public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber);
044    
045        /**
046         * Find limits by chart and organization.
047         * 
048         * @param chartCode - chart of accounts code
049         * @param organizationCode - organization code
050         * @return - collection of negative payment request approval limits
051         */
052        public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode);
053    
054        /**
055         * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is greater
056         * than the limit passed in.  (Used for Testing.)
057         * 
058         * @param limit - lower limit
059         * @return - collection of negative payment request approval limits
060         */
061        public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(KualiDecimal limit);
062    
063        /**
064         * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than
065         * the limit passed in.  (Used for Testing.)
066         * 
067         * @param limit - upper limit
068         * @return - collection of negative payment request approval limits
069         */
070        public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(KualiDecimal limit);
071    
072    }