Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

au.edu.educationau.belts.command.user.action
Class ResetUserPasswordAction  view ResetUserPasswordAction download ResetUserPasswordAction.java

java.lang.Object
  extended byau.edu.educationau.belts.command.AbstractCommand
      extended byau.edu.educationau.belts.command.container.AbstractContainerCommand
          extended byau.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
              extended byau.edu.educationau.belts.command.AbstractIdCommand
                  extended byau.edu.educationau.belts.command.user.AbstractUserCommand
                      extended byau.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 $

Field Summary
protected  java.lang.String _password
           
protected static java.lang.String PASSWORD
           
 
Fields inherited from class au.edu.educationau.belts.command.AbstractIdCommand
_id, ID
 
Fields inherited from class au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
_log
 
Fields inherited from class au.edu.educationau.belts.command.container.AbstractContainerCommand
 
Fields inherited from class au.edu.educationau.belts.command.AbstractCommand
_outcome, _result, ENTITY_NOT_FOUND_ERROR, SECURITY_ERROR, SYSTEM_ERROR, VALIDATION_ERROR
 
Constructor Summary
ResetUserPasswordAction()
           
 
Method Summary
 void execute()
          Updates the specified user's password
 void setPassword(java.lang.String password)
          Sets the password.
 boolean validate()
          Ensures that the password is a non empty String
 
Methods inherited from class au.edu.educationau.belts.command.user.AbstractUserCommand
fetchRole, fetchTitle, fetchUserIfCurrentUserCanUpdate
 
Methods inherited from class au.edu.educationau.belts.command.AbstractIdCommand
setId
 
Methods inherited from class au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
beltsContainer, currentUser, currentUserIsMemberOfSchool, currentUsersSchool, isManager, isPermitted, isTeacher, permitted
 
Methods inherited from class au.edu.educationau.belts.command.container.AbstractContainerCommand
container, dispatchEvent, hasContainer, prepare, release
 
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
 

Field Detail

PASSWORD

protected static final java.lang.String PASSWORD
See Also:
Constant Field Values

_password

protected java.lang.String _password
Constructor Detail

ResetUserPasswordAction

public ResetUserPasswordAction()
Method Detail

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.