|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
static java.lang.String |
ERRTASK_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()
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 |
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)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
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
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.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
strLoginID
- LoginID to be set.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
strNewPasswrdVerify
- 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
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |