01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.chart.service.impl;
17:
18: import org.kuali.module.chart.bo.SubObjCd;
19: import org.kuali.module.chart.dao.SubObjectCodeDao;
20: import org.kuali.module.chart.service.SubObjectCodeService;
21: import org.kuali.module.financial.service.UniversityDateService;
22: import org.springframework.transaction.annotation.Transactional;
23:
24: /**
25: * This class is the service implementation for the SubObjectCode structure. This is the default implementation that gets delivered
26: * with Kuali.
27: */
28: @Transactional
29: public class SubObjectCodeServiceImpl implements SubObjectCodeService {
30: private SubObjectCodeDao subObjectCodeDao;
31: private UniversityDateService universityDateService;
32:
33: /**
34: * @see org.kuali.module.chart.service.SubObjectCodeService#getByPrimaryId(java.lang.Integer, java.lang.String,
35: * java.lang.String, java.lang.String, java.lang.String)
36: */
37: public SubObjCd getByPrimaryId(Integer universityFiscalYear,
38: String chartOfAccountsCode, String accountNumber,
39: String financialObjectCode, String financialSubObjectCode) {
40: return subObjectCodeDao.getByPrimaryId(universityFiscalYear,
41: chartOfAccountsCode, accountNumber,
42: financialObjectCode, financialSubObjectCode);
43: }
44:
45: /**
46: * @see org.kuali.module.chart.service.SubObjectCodeService#getByPrimaryIdForCurrentYear(java.lang.String, java.lang.String,
47: * java.lang.String, java.lang.String)
48: */
49: public SubObjCd getByPrimaryIdForCurrentYear(
50: String chartOfAccountsCode, String accountNumber,
51: String financialObjectCode, String financialSubObjectCode) {
52: return this .getByPrimaryId(universityDateService
53: .getCurrentFiscalYear(), chartOfAccountsCode,
54: accountNumber, financialObjectCode,
55: financialSubObjectCode);
56: }
57:
58: /**
59: *
60: * This method injects SubObjectCodeDao
61: * @param subObjectCodeDao
62: */
63: public void setSubObjectCodeDao(SubObjectCodeDao subObjectCodeDao) {
64: this .subObjectCodeDao = subObjectCodeDao;
65: }
66:
67: /**
68: *
69: * This method injects UniversityDateService
70: * @param universityDateService
71: */
72: public void setUniversityDateService(
73: UniversityDateService universityDateService) {
74: this.universityDateService = universityDateService;
75: }
76: }
|