1
2
3
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 }