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