com.ibm.commerce.security.commands
Class ResetPasswordGuestCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.security.commands.ResetPasswordGuestCmdImpl
- All Implemented Interfaces:
- ECCommand, 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
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 logon ID of the shopper or
administrator whose password needs to be reset. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
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()
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 |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
ResetPasswordGuestCmdImpl
public ResetPasswordGuestCmdImpl()
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 logon ID of the shopper or
administrator whose password needs to be reset.
- Returns:
- Logon ID to be set.
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.
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)
- Description copied from interface:
ResetPasswordGuestCmd
- Sets the logon ID of the shopper or administrator
whose password needs to be reset.
- Specified by:
setLogonId
in interface ResetPasswordGuestCmd
- Following copied from interface:
com.ibm.commerce.security.commands.ResetPasswordGuestCmd
- Parameters:
strLoginID
- The logon ID to be set.
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.
-