1
2
3
4
5
6 package com.hack23.cia.service.api.admin;
7
8 import com.hack23.cia.model.application.dto.common.UserSessionDTO;
9 import com.hack23.cia.model.application.impl.common.Agency;
10 import com.hack23.cia.model.application.impl.common.Portal;
11
12 /***
13 * The Class PortalResponse.
14 */
15 public class PortalResponse extends AbstractConfigurationResponse {
16
17 /*** The Constant serialVersionUID. */
18 private static final long serialVersionUID = 1L;
19
20 /*** The portal. */
21 private final Portal portal;
22
23 /***
24 * Instantiates a new portal response.
25 *
26 * @param userSessionDTO the user session dto
27 * @param agency the agency
28 */
29 public PortalResponse(final UserSessionDTO userSessionDTO, final Agency agency) {
30 super(userSessionDTO,agency);
31 this.portal = null;
32 }
33
34 /***
35 * Instantiates a new portal response.
36 *
37 * @param userSessionDTO the user session dto
38 * @param agency the agency
39 * @param portal the portal
40 */
41 public PortalResponse(final UserSessionDTO userSessionDTO, final Agency agency,
42 final Portal portal) {
43 super(userSessionDTO,agency);
44 this.portal = portal;
45 }
46
47 /***
48 * Gets the portal.
49 *
50 * @return the portal
51 */
52 public final Portal getPortal() {
53 return portal;
54 }
55 }