001/**
002 * Copyright 2005-2017 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 */
016package org.kuali.rice.kew.stats.service.impl;
017
018import java.sql.SQLException;
019import java.util.Date;
020
021import org.kuali.rice.kew.stats.Stats;
022import org.kuali.rice.kew.stats.dao.StatsDAO;
023import org.kuali.rice.kew.stats.service.StatsService;
024
025
026public class StatsServiceImpl implements StatsService {
027
028    private StatsDAO statsDAO;
029
030    @Override
031    public void NumActiveItemsReport(Stats stats) throws SQLException {
032        getStatsDAO().NumActiveItemsReport(stats);
033    }
034
035    @Override
036    public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException {
037        getStatsDAO().DocumentsRoutedReport(stats, begDate, endDate);
038    }
039
040    @Override
041    public void NumberOfDocTypesReport(Stats stats) throws SQLException {
042        getStatsDAO().NumberOfDocTypesReport(stats);
043    }
044
045    @Override
046    public void NumUsersReport(Stats stats) throws SQLException {
047        getStatsDAO().NumUsersReport(stats);
048    }
049
050    @Override
051    public void NumInitiatedDocsByDocTypeReport(Stats stats) throws SQLException {
052        getStatsDAO().NumInitiatedDocsByDocTypeReport(stats);
053    }
054
055    public StatsDAO getStatsDAO() {
056        return statsDAO;
057    }
058
059    public void setStatsDAO(StatsDAO statsDAO) {
060        this.statsDAO = statsDAO;
061    }
062}