com.ibm.commerce.security.commands
Class ResetPasswordGuestCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.security.commands.ResetPasswordGuestCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, ResetPasswordGuestCmd, TaskCommand

public class ResetPasswordGuestCmdImpl
extends TaskCommandImpl
implements ResetPasswordGuestCmd

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

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

  setLogonId
  setChallengeAnswer
 
Error View Task: ResetPasswordGuestErrorView
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright statement.
static java.lang.String ERRTASK_NAME
Error task name
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.security.commands.ResetPasswordGuestCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
ResetPasswordGuestCmdImpl()
Method Summary
protected java.lang.String getChallengeAnswer()
Retrieves the answer to the challenge question; used to confirm identity.
protected java.lang.String getLogonId()
Retrieves the logonId of the shopper or administrator whose password needs to be reset.
void performExecute()
Executes the command.
void setChallengeAnswer(java.lang.String strChallengeAnswer)
Sets the answer to the challenge question; used to confirm identity.
void setLogonId(java.lang.String strLogonId)
Sets the logon ID of the shopper or administrator whose password needs to be reset.
void validateParameters()
Validate the parameters.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Error task name
See Also:
Constant Field Values
Constructor Detail

ResetPasswordGuestCmdImpl

public ResetPasswordGuestCmdImpl()
Method Detail

getChallengeAnswer

protected java.lang.String getChallengeAnswer()
Retrieves the answer to the challenge question; used to confirm identity.
Returns:
The answer to the challenge question.

getLogonId

protected java.lang.String getLogonId()
Retrieves the logonId of the shopper or administrator whose password needs to be reset.
Returns:
logonId to be set.

performExecute

public void performExecute()
                    throws ECException
Executes the command. If the user entered the correct answer to the challenge question, then reset their password to a new random value and send them a notification message.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setChallengeAnswer

public void setChallengeAnswer(java.lang.String strChallengeAnswer)
Sets the answer to the challenge question; used to confirm identity.
Specified by:
setChallengeAnswer in interface ResetPasswordGuestCmd
Parameters:
strChallengeAnswer - The answer to the challenge question.

setLogonId

public void setLogonId(java.lang.String strLogonId)
Sets the logon ID of the shopper or administrator whose password needs to be reset.
Specified by:
setLogonId in interface ResetPasswordGuestCmd

validateParameters

public void validateParameters()
                        throws ECException
Validate the parameters. Ensures that logonId supplied is valid and belongs to a registered user. Ensure challengeAnswer is a non-zero length String.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback