java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.security.commands.ResetPasswordCmdImpl
This controller command is used to reset the password of a user.
Before executing this task command run the following set commands:
If the user is currently logged into the system, to reset their password the following set methods should be invoked before calling execute on the command.
setLogonPassword setLogonPasswordOld setLogonPasswordVerify setRedirectURL
If the user is currently not logged into the system, to reset the password of the user's registered identity, the following set methods should be invoked before calling the execute method on the command.
setLogonId setChallengeAnswer setRedirectURL
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. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands. ResetPasswordCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
ResetPasswordCmdImpl() |
Method Summary | |
---|---|
protected
java.lang.String |
getChallengeAnswer() Retrieves the answer to the challenge question; used to confirm identity. |
protected
java.lang.String |
getErrorRedirectURL() Retrieves optional URL that the user should be redirected to on error conditions. |
protected
java.lang.String |
getLogonId() Retrieves the logon ID of the shopper or administrator whose password needs to be reset. |
protected
java.lang.String |
getLogonPassword() Retrieves the new password of the user whose password is being changed. |
protected
java.lang.String |
getLogonPasswordOld() Retrieves the old password of the user whose password is being changed. |
protected
java.lang.String |
getLogonPasswordVerify() Retrieves the confirm new password of the user whose password is being changed. |
protected
java.lang.String |
getRedirectURL() Retrieves the URL to which the user should be redirected after a successful password reset. |
void |
performExecute() Executes the command. |
void |
setChallengeAnswer(java.lang.String strChallengeAnswer) Sets the answer to the challenge question; used to confirm identity. |
void |
setErrorRedirectURL(java.lang.String newErrorURL) Sets the URL specified in the request to redirect in cases of user errror. |
void |
setLogonId(java.lang.String strLogonId) Sets the logon ID of the shopper or administrator whose password needs to be reset. |
void |
setLogonPassword(java.lang.String strNewPassword) Sets the new password of the user whose password is being changed. |
void |
setLogonPasswordOld(java.lang.String strOldPassword) Sets the old password of the user whose password is being changed. |
void |
setLogonPasswordVerify(java.lang.String strNewPasswordVerify) Sets the confirm new password of the user whose password is being changed. |
void |
setRedirectURL(java.lang.String strRedirectURL) Sets the URL that the user should be redirected after successful password reset. |
void |
setRequestProperties(
TypedProperty hshReqParameters) Sets the request properties. |
void |
validateParameters() Validates the parameters. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
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 |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
---|
public ResetPasswordCmdImpl()
Method Detail |
---|
protected java.lang.String getChallengeAnswer()
protected java.lang.String getErrorRedirectURL()
protected java.lang.String getLogonId()
protected java.lang.String getLogonPassword()
protected java.lang.String getLogonPasswordOld()
protected java.lang.String getLogonPasswordVerify()
protected java.lang.String getRedirectURL()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setChallengeAnswer(java.lang.String strChallengeAnswer)
setChallengeAnswer
in interface
ResetPasswordCmd
strChallengeAnswer
- The answer to the challenge
question.public void setErrorRedirectURL(java.lang.String newErrorURL)
newErrorURL
- ErrorRedirectURL to be set.public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface
ResetPasswordCmd
public void setLogonPassword(java.lang.String strNewPassword)
setLogonPassword
in interface
ResetPasswordCmd
strNewPassword
- Password.public void setLogonPasswordOld(java.lang.String strOldPassword)
setLogonPasswordOld
in interface
ResetPasswordCmd
strOldPassword
- Old password to be
changed.public void setLogonPasswordVerify(java.lang.String strNewPasswordVerify)
setLogonPasswordVerify
in interface
ResetPasswordCmd
strNewPasswordVerify
- Confirmation of new
password.public void setRedirectURL(java.lang.String strRedirectURL)
setRedirectURL
in interface
ResetPasswordCmd
strRedirectURL
- URL to redirect to.public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
hshReqParameters
- The request parameters.
ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException