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.LanguageAgencyActionEvent.Operation;
8   import com.hack23.cia.model.application.impl.common.Agency;
9   import com.hack23.cia.model.application.impl.common.Language;
10  
11  /***
12   * The Class LanguageAgencyAction.
13   */
14  public class LanguageAgencyAction 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. */
23      private final Language language;
24  
25      /*** The operation. */
26      private final Operation operation;
27  
28      /***
29       * Instantiates a new language agency action.
30       *
31       * @param operation the operation
32       * @param agency the agency
33       * @param lang the lang
34       */
35      public LanguageAgencyAction(final Operation operation, final Agency agency,
36              final Language lang) {
37          super();
38          this.operation = operation;
39          this.agency = agency;
40          language = lang;
41      }
42  
43      /***
44       * Gets the agency.
45       *
46       * @return the agency
47       */
48      public final Agency getAgency() {
49          return agency;
50      }
51  
52      /***
53       * Gets the language.
54       *
55       * @return the language
56       */
57      public final Language getLanguage() {
58          return language;
59      }
60  
61      /***
62       * Gets the operation.
63       *
64       * @return the operation
65       */
66      public final Operation getOperation() {
67          return operation;
68      }
69  
70  }