001 /*
002 * Copyright 2005-2007 The Kuali Foundation
003 *
004 *
005 * Licensed under the Educational Community License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.opensource.org/licenses/ecl2.php
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.kuali.rice.kew.stats.service.impl;
018
019 import java.sql.SQLException;
020 import java.util.Date;
021
022 import org.apache.ojb.broker.accesslayer.LookupException;
023 import org.kuali.rice.kew.stats.Stats;
024 import org.kuali.rice.kew.stats.dao.StatsDAO;
025 import org.kuali.rice.kew.stats.service.StatsService;
026
027
028 public class StatsServiceImpl implements StatsService {
029
030 private StatsDAO statsDAO;
031
032 public void NumActiveItemsReport(Stats stats) throws SQLException, LookupException {
033 getStatsDAO().NumActiveItemsReport(stats);
034 }
035
036 public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException, LookupException {
037 getStatsDAO().DocumentsRoutedReport(stats, begDate, endDate);
038 }
039
040 public void NumberOfDocTypesReport(Stats stats) throws SQLException, LookupException {
041 getStatsDAO().NumberOfDocTypesReport(stats);
042 }
043
044 public void NumUsersReport(Stats stats) throws SQLException, LookupException {
045 getStatsDAO().NumUsersReport(stats);
046 }
047
048 public void NumInitiatedDocsByDocTypeReport(Stats stats) throws SQLException, LookupException {
049 getStatsDAO().NumInitiatedDocsByDocTypeReport(stats);
050 }
051
052 public StatsDAO getStatsDAO() {
053 return statsDAO;
054 }
055
056 public void setStatsDAO(StatsDAO statsDAO) {
057 this.statsDAO = statsDAO;
058 }
059 }