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.web.action.user;
7   
8   import com.hack23.cia.model.application.impl.user.UserAccountActionEvent.Operation;
9   
10  /***
11   * The Class UserAccountAction.
12   */
13  public class UserAccountAction extends AbstractUserAction {
14  
15      /*** The Constant serialVersionUID. */
16      private static final long serialVersionUID = 1L;
17  
18      /*** The encoded password. */
19      private final String encodedPassword;
20  
21      /*** The operation. */
22      private final Operation operation;
23      
24      /*** The username. */
25      private final String username;
26      
27      /***
28       * Instantiates a new user account action.
29       *
30       * @param operation the operation
31       */
32      public UserAccountAction(final Operation operation) {
33          super();
34          this.operation = operation;
35          this.username = null;
36          this.encodedPassword = null;
37      }
38      
39      
40  
41      /***
42       * Instantiates a new user account action.
43       *
44       * @param operation the operation
45       * @param username the username
46       * @param encodedPassword the encoded password
47       */
48      public UserAccountAction(final Operation operation, final String username,
49              final String encodedPassword) {
50          super();
51          this.operation = operation;
52          this.username = username;
53          this.encodedPassword = encodedPassword;
54      }
55  
56  
57  
58      /***
59       * Gets the encoded password.
60       *
61       * @return the encoded password
62       */
63      public final String getEncodedPassword() {
64          return encodedPassword;
65      }
66  
67  
68  
69      /***
70       * Gets the operation.
71       *
72       * @return the operation
73       */
74      public final Operation getOperation() {
75          return operation;
76      }
77  
78  
79  
80      /***
81       * Gets the username.
82       *
83       * @return the username
84       */
85      public final String getUsername() {
86          return username;
87      }
88  
89  }