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.impl.admin.PortalActionEvent.Operation;
9   import com.hack23.cia.model.application.impl.common.Portal;
10  
11  /***
12   * The Class PortalRequest.
13   */
14  public class PortalRequest extends AbstractConfigurationRequest {
15  
16      /*** The Constant serialVersionUID. */
17      private static final long serialVersionUID = 1L;
18  
19      /*** The operation. */
20      private final Operation operation;
21  
22      /*** The portal. */
23      private final Portal portal;
24  
25      /***
26       * Instantiates a new portal request.
27       *
28       * @param userSessionId the user session id
29       * @param operation the operation
30       * @param portal the portal
31       */
32      public PortalRequest(final Long userSessionId, final Operation operation,
33              final Portal portal) {
34          super(userSessionId);
35          this.operation = operation;
36          this.portal = portal;
37      }
38  
39      /***
40       * Gets the operation.
41       *
42       * @return the operation
43       */
44      public final Operation getOperation() {
45          return operation;
46      }
47  
48      /***
49       * Gets the portal.
50       *
51       * @return the portal
52       */
53      public final Portal getPortal() {
54          return portal;
55      }
56  }