View Javadoc
1   /*
2    * Copyright 2008 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.apache.log4j.Logger;
19  import org.kuali.ole.module.purap.businessobject.ReceivingThreshold;
20  import org.kuali.ole.module.purap.document.dataaccess.ThresholdDao;
21  import org.kuali.ole.module.purap.document.service.ThresholdService;
22  import org.springframework.transaction.annotation.Transactional;
23  
24  import java.util.Collection;
25  
26  @Transactional
27  public class ThresholdServiceImpl implements ThresholdService {
28  
29      private static Logger LOG = Logger.getLogger(ThresholdServiceImpl.class);
30  
31      private ThresholdDao dao;
32  
33      public void setThresholdDao(ThresholdDao dao) {
34          this.dao = dao;
35      }
36  
37      public Collection<ReceivingThreshold> findByChart(String chartCode) {
38          return dao.findByChart(chartCode);
39      }
40  
41      public Collection<ReceivingThreshold> findByChartAndFund(String chartCode, String fund) {
42          return dao.findByChartAndFund(chartCode, fund);
43      }
44  
45      public Collection<ReceivingThreshold> findByChartAndSubFund(String chartCode, String subFund) {
46          return dao.findByChartAndSubFund(chartCode, subFund);
47      }
48  
49      public Collection<ReceivingThreshold> findByChartAndCommodity(String chartCode, String commodity) {
50          return dao.findByChartAndCommodity(chartCode, commodity);
51      }
52  
53      public Collection<ReceivingThreshold> findByChartAndObjectCode(String chartCode, String objectCode) {
54          return dao.findByChartAndObjectCode(chartCode, objectCode);
55      }
56  
57      public Collection<ReceivingThreshold> findByChartAndOrg(String chartCode, String org) {
58          return dao.findByChartAndOrg(chartCode, org);
59      }
60  
61      public Collection<ReceivingThreshold> findByChartAndVendor(String chartCode,
62                                                                 String vendorHeaderGeneratedIdentifier,
63                                                                 String vendorDetailAssignedIdentifier) {
64          return dao.findByChartAndVendor(chartCode, vendorHeaderGeneratedIdentifier, vendorDetailAssignedIdentifier);
65      }
66  
67  }