public class ResetPasswordCmdImpl extends ControllerCommandImpl implements ResetPasswordCmd
This controller command is used to reset the password of a user.
Before executing this task command, run the following set methods:
If the user is currently logged into the system, the following set methods should be invoked before calling execute on the command.
If a user is currently not logged onto the system, the following set methods should be invoked before calling execute on the command.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The copyright statement.
|
static java.lang.String |
ERRTASK_NAME
The error task name.
|
static java.lang.String |
VALIDATION_CODE |
defaultCommandClassName, NAME
Constructor and Description |
---|
ResetPasswordCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isGeneric()
This method returns true since this command can be invoked by a generic user.
|
void |
performExecute()
This method executes this command.
|
void |
setChallengeAnswer(java.lang.String strChallengeAnswer)
This method sets the answer to the challenge question
used to confirm the identity of the user.
|
void |
setErrorRedirectURL(java.lang.String newErrorURL)
This method sets the URL to redirect the user in case of error.
|
void |
setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the shopper or administrator
whose password needs to be reset.
|
void |
setLogonPassword(java.lang.String strNewPassword)
This method sets the new password of the user whose
password is being changed.
|
void |
setLogonPasswordOld(java.lang.String strOldPassword)
This method sets the old password of the user whose
password is being changed.
|
void |
setLogonPasswordVerify(java.lang.String strNewPasswordVerify)
This method sets the confirmation of the new password of the user
whose password is being changed.
|
void |
setRedirectURL(java.lang.String strRedirectURL)
This method sets the URL to redirect the user after a
successful password reset.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
This method sets the following request properties:
logonID
logonPasswordOld
logonPassword
logonPasswordVerify
challengeAnswer
from the supplied hshReqParameters.
|
void |
setValidationCode(java.lang.String strValidationCode)
This method sets the validation code used to update the password
by a guest user after the challenge answer has been answered.
|
void |
validateParameters()
This method validates the parameters through the following operations.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public static final java.lang.String VALIDATION_CODE
public void performExecute() throws ECException
validationCode
is specified, it
delegates to ResetPasswordGuestValidationCmd, otherwise it calls ResetPasswordGuestCmd.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- is thrown if an error occurs and ErrorRedirectURL is not specifiedpublic void setChallengeAnswer(java.lang.String strChallengeAnswer)
setChallengeAnswer
in interface ResetPasswordCmd
strChallengeAnswer
- The answer to the challenge question.public void setValidationCode(java.lang.String strValidationCode)
strValidationCode
- The validation code.public void setErrorRedirectURL(java.lang.String newErrorURL)
newErrorURL
- The ErrorRedirectURL to be set.public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface ResetPasswordCmd
strLogonId
- The Login ID to be set.public void setLogonPassword(java.lang.String strNewPassword)
setLogonPassword
in interface ResetPasswordCmd
strNewPassword
- The new password.public void setLogonPasswordOld(java.lang.String strOldPassword)
setLogonPasswordOld
in interface ResetPasswordCmd
strOldPassword
- The old password to be changed.public void setLogonPasswordVerify(java.lang.String strNewPasswordVerify)
setLogonPasswordVerify
in interface ResetPasswordCmd
strNewPasswordVerify
- Confirmation of the new password.public void setRedirectURL(java.lang.String strRedirectURL)
setRedirectURL
in interface ResetPasswordCmd
strRedirectURL
- The URL to which to redirect.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
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl