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.LanguageContentActionEvent.Operation;
8   import com.hack23.cia.model.application.impl.common.Agency;
9   import com.hack23.cia.model.application.impl.common.LanguageContent;
10  
11  /***
12   * The Class LanguageContentAction.
13   */
14  public class LanguageContentAction extends AbstractConfigurationAction {
15  
16      /*** The Constant serialVersionUID. */
17      private static final long serialVersionUID = 967092220196995079L;
18  
19      /*** The agency. */
20      private final Agency agency;
21  
22      /*** The language content. */
23      private final LanguageContent languageContent;
24  
25      /*** The operation. */
26      private final Operation operation;
27  
28       /***
29        * Instantiates a new language content action.
30        *
31        * @param operation the operation
32        * @param agency the agency
33        * @param languageContent the language content
34        */
35       public LanguageContentAction(final Operation operation, final Agency agency,
36              final LanguageContent languageContent) {
37                  this.operation = operation;
38                  this.agency = agency;
39                  this.languageContent = languageContent;
40      }
41  
42      /***
43       * Gets the agency.
44       *
45       * @return the agency
46       */
47      public final Agency getAgency() {
48          return agency;
49      }
50  
51      /***
52       * Gets the language content.
53       *
54       * @return the language content
55       */
56      public final LanguageContent getLanguageContent() {
57          return languageContent;
58      }
59  
60      /***
61       * Gets the operation.
62       *
63       * @return the operation
64       */
65      public final Operation getOperation() {
66          return operation;
67      }
68  
69  }