com.ibm.commerce.security.commands
Class ResetPasswordRegisterCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.security.commands.ResetPasswordRegisterCmdImpl
All Implemented Interfaces:
ECCommand, ResetPasswordRegisterCmd, TaskCommand

public class ResetPasswordRegisterCmdImpl
extends TaskCommandImpl
implements ResetPasswordRegisterCmd

This task command is used to reset the password of a logged in user.

Before executing this task command, the methods listed below must be invoked.

		setNewPassword
		setNewPasswordVerify
		setOldPassword
 


Field Summary
static java.lang.String ERRTASK_NAME
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.security.commands.ResetPasswordRegisterCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ResetPasswordRegisterCmdImpl()
           
 
Method Summary
protected  java.lang.String getNewPassword()
          Retrieves the new password of the user whose password is being changed.
protected  java.lang.String getNewPasswordVerify()
          Retrieves the confirm new password of the user whose password is being changed.
protected  java.lang.String getOldPassword()
          Retrieves the old password of the user whose password is being changed.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setErrorRedirectURL(java.lang.String newErrorRedirectURL)
          Sets the error URL to redirect to if specified.
 void setNewPassword(java.lang.String strNewPassword)
          Sets the new password of the user whose password is being changed.
 void setNewPasswordVerify(java.lang.String strNewPasswordVerify)
          Sets the confirm new password of the user whose password is being changed.
 void setOldPassword(java.lang.String strOldPassword)
          Sets the old password of the user whose password is being changed.
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Constructor Detail

ResetPasswordRegisterCmdImpl

public ResetPasswordRegisterCmdImpl()
Method Detail

getNewPassword

protected java.lang.String getNewPassword()
Retrieves the new password of the user whose password is being changed.
Returns:
New password.

getNewPasswordVerify

protected java.lang.String getNewPasswordVerify()
Retrieves the confirm new password of the user whose password is being changed.
Returns:
Confirmation of new password.

getOldPassword

protected java.lang.String getOldPassword()
Retrieves the old password of the user whose password is being changed.
Returns:
Old password to be changed.

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setErrorRedirectURL

public void setErrorRedirectURL(java.lang.String newErrorRedirectURL)
Description copied from interface: ResetPasswordRegisterCmd
Sets the error URL to redirect to if specified. This is used in case of user errors in the parameters.
Specified by:
setErrorRedirectURL in interface ResetPasswordRegisterCmd
Following copied from interface: com.ibm.commerce.security.commands.ResetPasswordRegisterCmd
Parameters:
strNewPassword - New password.

setNewPassword

public void setNewPassword(java.lang.String strNewPassword)
Description copied from interface: ResetPasswordRegisterCmd
Sets the new password of the user whose password is being changed.
Specified by:
setNewPassword in interface ResetPasswordRegisterCmd
Following copied from interface: com.ibm.commerce.security.commands.ResetPasswordRegisterCmd
Parameters:
strNewPassword - New password.

setNewPasswordVerify

public void setNewPasswordVerify(java.lang.String strNewPasswordVerify)
Description copied from interface: ResetPasswordRegisterCmd
Sets the confirm new password of the user whose password is being changed.
Specified by:
setNewPasswordVerify in interface ResetPasswordRegisterCmd
Following copied from interface: com.ibm.commerce.security.commands.ResetPasswordRegisterCmd
Parameters:
strNewPasswrdVerify - Confirmation of new password.

setOldPassword

public void setOldPassword(java.lang.String strOldPassword)
Description copied from interface: ResetPasswordRegisterCmd
Sets the old password of the user whose password is being changed.
Specified by:
setOldPassword in interface ResetPasswordRegisterCmd
Following copied from interface: com.ibm.commerce.security.commands.ResetPasswordRegisterCmd
Parameters:
strOldPassword - Old password to be changed.

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -