View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.service.impl.common;
7   
8   import java.util.List;
9   
10  import com.hack23.cia.service.dao.EventDAO;
11  
12  /***
13   * The Class ActivityServiceImpl.
14   */
15  public class ActivityServiceImpl implements ActivityService {
16  
17      /*** The event dao. */
18      private final EventDAO eventDAO;
19  
20      /***
21       * Instantiates a new activity service impl.
22       *
23       * @param eventDAO the event dao
24       */
25      public ActivityServiceImpl(final EventDAO eventDAO) {
26          super();
27          this.eventDAO = eventDAO;
28      }
29  
30      /*
31       * (non-Javadoc)
32       * 
33       * @see com.hack23.cia.service.EventService#getActionEventHistory()
34       */
35      @Override
36  	@SuppressWarnings("unchecked")
37  	public final List getActionEventHistory() {
38          return eventDAO.getActionEventHistory();
39      }
40  
41      /*
42       * (non-Javadoc)
43       * 
44       * @see com.hack23.cia.service.EventService#getResponseTimeHistory()
45       */
46      @Override
47  	@SuppressWarnings("unchecked")
48  	public final List getResponseTimeHistory() {
49          return eventDAO.getResponseTimeHistory();
50      }
51  
52  }