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   package com.hack23.cia.service.impl.user;
6   
7   import com.hack23.cia.service.api.user.AbstractUserRequest;
8   import com.hack23.cia.service.impl.common.ParliamentService;
9   import com.hack23.cia.service.impl.common.UserSessionService;
10  
11  /***
12   * The Class AbstractParliamentRequestService.
13   *
14   * @param <REQUEST> the generic type
15   */
16  public abstract class AbstractParliamentRequestService<REQUEST extends AbstractUserRequest>
17          extends AbstractUserRequestService<REQUEST> {
18  
19      /*** The parliament service. */
20      private final ParliamentService parliamentService;
21  
22      /***
23       * Instantiates a new abstract parliament request service.
24       *
25       * @param userSessionService the user session service
26       * @param parliamentService the parliament service
27       */
28      public AbstractParliamentRequestService(
29              final UserSessionService userSessionService,
30              final ParliamentService parliamentService) {
31          super(userSessionService);
32          this.parliamentService = parliamentService;
33      }
34  
35      /***
36       * Gets the parliament service.
37       *
38       * @return the parliament service
39       */
40      public final ParliamentService getParliamentService() {
41          return parliamentService;
42      }
43  }