au.edu.swin.synergy.plugin.userdb.event
Class BChangePasswordCE
java.lang.Object
|
+--java.util.EventObject
|
+--au.edu.swin.synergy.kernel.BCommandEvent
|
+--au.edu.swin.synergy.plugin.userdb.event.BUserDBCE
|
+--au.edu.swin.synergy.plugin.userdb.event.BAdminCE
|
+--au.edu.swin.synergy.plugin.userdb.event.BUpdatePrivilegedCE
|
+--au.edu.swin.synergy.plugin.userdb.event.BOwnerCE
|
+--au.edu.swin.synergy.plugin.userdb.event.BChangePasswordCE
- public class BChangePasswordCE
- extends BOwnerCE
This will accept the users new and old passwords
to update the users with and make sure that the old
password matches the stored password before updating
the user.
- Author:
- Tristan Austin
Please complete these missing tags
- Copyright Belongs To:
-
- See Also:
- Serialized Form
Field Summary |
static int |
kChanged
Indicates that the password was succesfully changed |
static int |
kNoUser
Indicates that the user could not be found |
static int |
kWrongPassword
Indicates that the original password was wrong |
Constructor Summary |
BChangePasswordCE(Object source,
BUser user,
String oldPassword,
String newPassword,
BCommandComplete complete)
Creates a new change password event with the old and new passwords along
with the source of the event and the completion object to call when it
is complete with the success or failure of the process. |
Method Summary |
String |
getNewPassword()
Gets the new password to set to |
String |
getOldPassword()
Gets the old password to make sure the real user is updating |
int |
getState()
Gets the state of the update from the server. |
void |
setState(int state)
Sets the state of the update from the server. |
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
decrementThreadCount,
doComplete,
doInit,
getAutoComplete,
getCompletionObject,
getCompletionStatus,
getConnectionID,
getIndex,
getNetworkStatus,
getPipe,
getUndoable,
setAutoComplete,
setCompletionObject,
setCompletionStatus,
setConnectionID,
setIndex,
setNetworkStatus,
setPipe,
setThreadCount,
setUndoable |
kChanged
public static final int kChanged
- Indicates that the password was succesfully changed
kNoUser
public static final int kNoUser
- Indicates that the user could not be found
kWrongPassword
public static final int kWrongPassword
- Indicates that the original password was wrong
BChangePasswordCE
public BChangePasswordCE(Object source,
BUser user,
String oldPassword,
String newPassword,
BCommandComplete complete)
- Creates a new change password event with the old and new passwords along
with the source of the event and the completion object to call when it
is complete with the success or failure of the process.
- Parameters:
source
- The source of the eventoldPassword
- The old password to checknewPassword
- The password to change to if old password matchescomplete
- The object which will be told of the success or failure of the procedure
Please complete the missing tags for BChangePasswordCE
getOldPassword
public String getOldPassword()
- Gets the old password to make sure the real user is updating
- Parameters:
- - Returns:
- The old password as a plain text string
Please complete the missing tags for getOldPassword
- Pre Condition:
-
- Post Condition:
-
getNewPassword
public String getNewPassword()
- Gets the new password to set to
- Parameters:
- - Returns:
- The new password as a plain text String
Please complete the missing tags for getNewPassword
- Pre Condition:
-
- Post Condition:
-
getState
public int getState()
- Gets the state of the update from the server.
- Parameters:
- - Returns:
- The state of the change, kChanged, kNoUser, kWrongPassword
Please complete the missing tags for getState
- Pre Condition:
-
- Post Condition:
-
setState
public void setState(int state)
- Sets the state of the update from the server.
- Parameters:
state
- The state of the change, kChanged, kNoUser, kWrongPassword
Please complete the missing tags for setState- Returns:
-
- Pre Condition:
-
- Post Condition:
-