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.coa.service.impl;
017
018 import org.kuali.kfs.coa.businessobject.OffsetDefinition;
019 import org.kuali.kfs.coa.dataaccess.OffsetDefinitionDao;
020 import org.kuali.kfs.coa.service.OffsetDefinitionService;
021 import org.kuali.kfs.sys.service.NonTransactional;
022
023 /**
024 * This class is the service implementation for the OffsetDefinition structure. This is the default implementation, that is
025 * delivered with Kuali.
026 */
027
028 @NonTransactional
029 public class OffsetDefinitionServiceImpl implements OffsetDefinitionService {
030 private OffsetDefinitionDao offsetDefinitionDao;
031
032 /**
033 * @see org.kuali.kfs.coa.service.OffsetDefinitionService#getByPrimaryId(java.lang.Integer, java.lang.String,
034 * java.lang.String, java.lang.String)
035 */
036 public OffsetDefinition getByPrimaryId(Integer universityFiscalYear, String chartOfAccountsCode, String financialDocumentTypeCode, String financialBalanceTypeCode) {
037 return offsetDefinitionDao.getByPrimaryId(universityFiscalYear, chartOfAccountsCode, financialDocumentTypeCode, financialBalanceTypeCode);
038 }
039
040 /**
041 * @param offsetDefinitionDao The offsetDefinitionDao to set.
042 */
043 public void setOffsetDefinitionDao(OffsetDefinitionDao offsetDefinitionDao) {
044 this.offsetDefinitionDao = offsetDefinitionDao;
045 }
046 }