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