View Javadoc

1   /*
2    * Copyright 2005-2007 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.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 org.kuali.rice.kew.stats.service.impl;
18  
19  import java.sql.SQLException;
20  import java.util.Date;
21  
22  import org.apache.ojb.broker.accesslayer.LookupException;
23  import org.kuali.rice.kew.stats.Stats;
24  import org.kuali.rice.kew.stats.dao.StatsDAO;
25  import org.kuali.rice.kew.stats.service.StatsService;
26  
27  
28  public class StatsServiceImpl implements StatsService {
29  
30      private StatsDAO statsDAO;
31          
32      public void NumActiveItemsReport(Stats stats) throws SQLException, LookupException {
33          getStatsDAO().NumActiveItemsReport(stats);
34      }
35      
36      public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException, LookupException {
37          getStatsDAO().DocumentsRoutedReport(stats, begDate, endDate);
38      }
39      
40      public void NumberOfDocTypesReport(Stats stats) throws SQLException, LookupException {
41          getStatsDAO().NumberOfDocTypesReport(stats);
42      }
43      
44      public void NumUsersReport(Stats stats) throws SQLException, LookupException {
45          getStatsDAO().NumUsersReport(stats);
46      }
47  
48      public void NumInitiatedDocsByDocTypeReport(Stats stats) throws SQLException, LookupException {
49          getStatsDAO().NumInitiatedDocsByDocTypeReport(stats);
50      }
51      
52      public StatsDAO getStatsDAO() {
53          return statsDAO;
54      }
55      
56      public void setStatsDAO(StatsDAO statsDAO) {
57          this.statsDAO = statsDAO;
58      }
59  }