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.module.bc.document.service.impl;
017    
018    import org.apache.log4j.Logger;
019    import org.kuali.kfs.module.bc.document.dataaccess.OrganizationBCDocumentSearchDao;
020    import org.kuali.kfs.module.bc.document.service.OrganizationBCDocumentSearchService;
021    import org.springframework.transaction.annotation.Transactional;
022    
023    /**
024     * This class...
025     */
026    @Transactional
027    public class OrganizationBCDocumentSearchServiceImpl implements OrganizationBCDocumentSearchService {
028        private static Logger LOG = org.apache.log4j.Logger.getLogger(OrganizationBCDocumentSearchServiceImpl.class);
029    
030        private OrganizationBCDocumentSearchDao organizationBCDocumentSearchDao;
031    
032        /**
033         * @see org.kuali.kfs.module.bc.document.service.OrganizationBCDocumentSearchService#buildAccountSelectPullList(java.lang.String,
034         *      java.lang.Integer)
035         */
036        public int buildAccountSelectPullList(String principalName, Integer universityFiscalYear) {
037            organizationBCDocumentSearchDao.cleanAccountSelectPullList(principalName);
038    
039            return organizationBCDocumentSearchDao.buildAccountSelectPullList(principalName, universityFiscalYear);
040        }
041    
042        /**
043         * @see org.kuali.kfs.module.bc.document.service.OrganizationBCDocumentSearchService#buildBudgetedAccountsAbovePointsOfView(java.lang.String,
044         *      java.lang.Integer, java.lang.String, java.lang.String)
045         */
046        public int buildBudgetedAccountsAbovePointsOfView(String principalName, Integer universityFiscalYear, String chartOfAccountsCode, String organizationCode) {
047            organizationBCDocumentSearchDao.cleanAccountSelectPullList(principalName);
048    
049            return organizationBCDocumentSearchDao.buildBudgetedAccountsAbovePointsOfView(principalName, universityFiscalYear, chartOfAccountsCode, organizationCode);
050        }
051    
052        /**
053         * @see org.kuali.kfs.module.bc.document.service.OrganizationBCDocumentSearchService#buildAccountManagerDelegateList(java.lang.String, java.lang.Integer)
054         */
055        public int buildAccountManagerDelegateList(String principalName, Integer universityFiscalYear) {
056            organizationBCDocumentSearchDao.cleanAccountSelectPullList(principalName);
057    
058            return organizationBCDocumentSearchDao.buildAccountManagerDelegateList(principalName, universityFiscalYear);
059        }
060    
061        /**
062         * @see org.kuali.kfs.module.bc.document.service.OrganizationBCDocumentSearchService#cleanAccountSelectPullList(java.lang.String,
063         *      java.lang.Integer)
064         */
065        public void cleanAccountSelectPullList(String principalName, Integer universityFiscalYear) {
066            organizationBCDocumentSearchDao.cleanAccountSelectPullList(principalName);
067        }
068    
069        /**
070         * Sets the organizationBCDocumentSearchDao attribute value.
071         * 
072         * @param organizationBCDocumentSearchDao The organizationBCDocumentSearchDao to set.
073         */
074        public void setOrganizationBCDocumentSearchDao(OrganizationBCDocumentSearchDao organizationBCDocumentSearchDao) {
075            this.organizationBCDocumentSearchDao = organizationBCDocumentSearchDao;
076        }
077    
078    }
079