01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.stats;
18:
19: import java.sql.SQLException;
20: import java.util.Date;
21:
22: import org.apache.ojb.broker.accesslayer.LookupException;
23:
24: import edu.iu.uis.eden.stats.dao.StatsDAO;
25:
26: public class StatsServiceImpl implements StatsService {
27:
28: private StatsDAO statsDAO;
29:
30: public void ActionsTakenPerUnitOfTimeReport(Stats stats,
31: Date begDate, Date endDate, String unitOfTimeConst)
32: throws SQLException, LookupException {
33: getStatsDAO().ActionsTakenPerUnitOfTimeReport(stats, begDate,
34: endDate, unitOfTimeConst);
35: }
36:
37: public void NumActiveItemsReport(Stats stats) throws SQLException,
38: LookupException {
39: getStatsDAO().NumActiveItemsReport(stats);
40: }
41:
42: public void DocumentsRoutedReport(Stats stats, Date begDate,
43: Date endDate) throws SQLException, LookupException {
44: getStatsDAO().DocumentsRoutedReport(stats, begDate, endDate);
45: }
46:
47: public void NumberOfDocTypesReport(Stats stats)
48: throws SQLException, LookupException {
49: getStatsDAO().NumberOfDocTypesReport(stats);
50: }
51:
52: public void NumUsersReport(Stats stats) throws SQLException,
53: LookupException {
54: getStatsDAO().NumUsersReport(stats);
55: }
56:
57: public void NumInitiatedDocsByDocTypeReport(Stats stats)
58: throws SQLException, LookupException {
59: getStatsDAO().NumInitiatedDocsByDocTypeReport(stats);
60: }
61:
62: public StatsDAO getStatsDAO() {
63: return statsDAO;
64: }
65:
66: public void setStatsDAO(StatsDAO statsDAO) {
67: this.statsDAO = statsDAO;
68: }
69: }
|