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.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  }