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.impl;
17  
18  import org.kuali.ole.module.purap.businessobject.NegativeInvoiceApprovalLimit;
19  import org.kuali.ole.module.purap.document.dataaccess.NegativeInvoiceApprovalLimitDao;
20  import org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService;
21  import org.kuali.ole.sys.service.NonTransactional;
22  import org.kuali.rice.core.api.util.type.KualiDecimal;
23  
24  import java.util.Collection;
25  
26  @NonTransactional
27  public class NegativeInvoiceApprovalLimitServiceImpl implements NegativeInvoiceApprovalLimitService {
28  
29      private NegativeInvoiceApprovalLimitDao dao;
30  
31      public void setNegativeInvoiceApprovalLimitDao(NegativeInvoiceApprovalLimitDao dao) {
32          this.dao = dao;
33      }
34  
35      /**
36       * @see org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService#findByChart(String)
37       */
38      public Collection<NegativeInvoiceApprovalLimit> findByChart(String chartCode) {
39          return dao.findByChart(chartCode);
40      }
41  
42      /**
43       * @see org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService#findByChartAndAccount(String,
44       *      String)
45       */
46      public Collection<NegativeInvoiceApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber) {
47          return dao.findByChartAndAccount(chartCode, accountNumber);
48      }
49  
50      /**
51       * @see org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService#findByChartAndOrganization(String,
52       *      String)
53       */
54      public Collection<NegativeInvoiceApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode) {
55          return dao.findByChartAndOrganization(chartCode, organizationCode);
56      }
57  
58      /**
59       * @see org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService#findAboveLimit(org.kuali.rice.core.api.util.type.KualiDecimal)
60       */
61      public Collection<NegativeInvoiceApprovalLimit> findAboveLimit(KualiDecimal limit) {
62          return dao.findAboveLimit(limit);
63      }
64  
65      /**
66       * @see org.kuali.ole.module.purap.document.service.NegativeInvoiceApprovalLimitService#findBelowLimit(org.kuali.rice.core.api.util.type.KualiDecimal)
67       */
68      public Collection<NegativeInvoiceApprovalLimit> findBelowLimit(KualiDecimal limit) {
69          return dao.findBelowLimit(limit);
70      }
71  
72  }