1
2
3
4
5 package com.hack23.cia.web.viewfactory.api.admin;
6
7 import com.hack23.cia.model.application.dto.common.UserSessionDTO;
8 import com.hack23.cia.model.application.impl.common.Agency;
9 import com.hack23.cia.web.action.common.ControllerAction;
10
11 /***
12 * The Class AbstractAgencyModelAndView.
13 */
14 public abstract class AbstractAgencyModelAndView extends
15 AbstractConfigurationModelAndView {
16
17 /*** The Constant serialVersionUID. */
18 private static final long serialVersionUID = 1L;
19
20 /*** The agency. */
21 private final Agency agency;
22
23 /***
24 * Instantiates a new abstract agency model and view.
25 *
26 * @param userSessionDTO the user session dto
27 * @param controllerAction the controller action
28 * @param agency the agency
29 */
30 public AbstractAgencyModelAndView(final UserSessionDTO userSessionDTO,
31 final ControllerAction controllerAction, final Agency agency) {
32 super(userSessionDTO, controllerAction);
33 this.agency = agency;
34 }
35
36 /***
37 * Gets the agency.
38 *
39 * @return the agency
40 */
41 public final Agency getAgency() {
42 return agency;
43 }
44 }