1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }