java.lang.Object
au.edu.educationau.belts.command.AbstractCommand
au.edu.educationau.belts.command.container.AbstractContainerCommand
au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
au.edu.educationau.belts.command.AbstractIdCommand
au.edu.educationau.belts.command.user.AbstractUserCommand
au.edu.educationau.belts.command.user.action.ResetUserPasswordAction
- All Implemented Interfaces:
- au.edu.educationau.belts.command.Action, au.edu.educationau.belts.command.Command, au.edu.educationau.belts.container.Containable, java.io.Serializable
- public class ResetUserPasswordAction
- extends au.edu.educationau.belts.command.user.AbstractUserCommand
- implements au.edu.educationau.belts.command.Action
This class performs the action of resetting a User's password.
Required Roles:
A person resetting a user's password must be a
belts:system-administrator,
a belts:school-administrator or a belts:teacher
Required Parameters:
- id
- the id (user login) for the user
- password
- the new password for the user
Outcomes
- OK
- the password was updated OK
- ERROR
- an error occurred during update
- VALIDATION
- a validation error occurred
The following errors may occur while resetting password:
- User Not Found
- a user with that id does not exist
- Not Allowed to Update User Password
- the current user is not allowed to update user passwords
Results
No results are returned from this action.
- Version:
- $Revision: 1.5 $ - $Date: 2003/02/28 06:47:58 $
| Methods inherited from class au.edu.educationau.belts.command.AbstractCommand |
addDuplicateEntityFoundError, addEmailFieldValidationError, addEntityNotFoundError, addError, addError, addError, addFieldValidationError, addIdValidationError, addSecurityError, addSystemError, addValidationError, addWarning, result |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface au.edu.educationau.belts.command.Command |
result |
PASSWORD
protected static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
_password
protected java.lang.String _password
ResetUserPasswordAction
public ResetUserPasswordAction()
validate
public boolean validate()
- Ensures that the password is a non empty String
- Specified by:
validate in interface au.edu.educationau.belts.command.Command
execute
public void execute()
- Updates the specified user's password
- Specified by:
execute in interface au.edu.educationau.belts.command.Command
setPassword
public void setPassword(java.lang.String password)
- Sets the password.