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