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