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.web.viewfactory.api.user;
6   
7   import com.hack23.cia.model.application.dto.common.UserSessionDTO;
8   import com.hack23.cia.model.sweden.impl.ParliamentMember;
9   import com.hack23.cia.web.action.common.ControllerAction;
10  
11  /***
12   * The Class AbstractParliamentMemberModelAndView.
13   */
14  public abstract class AbstractParliamentMemberModelAndView extends
15          AbstractParliamentModelAndView {
16  
17      /*** The Constant serialVersionUID. */
18      private static final long serialVersionUID = 1L;
19  
20      /*** The parliament member. */
21      private final ParliamentMember parliamentMember;
22  
23      /***
24       * Instantiates a new abstract parliament member model and view.
25       *
26       * @param userSessionDTO the user session dto
27       * @param controllerAction the controller action
28       * @param parliamentMember the parliament member
29       */
30      public AbstractParliamentMemberModelAndView(final UserSessionDTO userSessionDTO,
31              final ControllerAction controllerAction,
32              final ParliamentMember parliamentMember) {
33          super(userSessionDTO, controllerAction);
34          this.parliamentMember = parliamentMember;
35      }
36  
37      /***
38       * Gets the parliament member.
39       *
40       * @return the parliament member
41       */
42      public final ParliamentMember getParliamentMember() {
43          return parliamentMember;
44      }
45  }