public class ResetPasswordAdministratorCmdImpl extends ControllerCommandImpl implements ResetPasswordAdministratorCmd
Before executing this task command, the methods listed below must be invoked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The copyright statement.
|
static java.lang.String | ERRTASK_NAME
The error task name.
|
Constructor and Description |
---|
ResetPasswordAdministratorCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | generateValidationCode(java.lang.String astrGeneratedPassword, java.lang.String astrLogonId)
Generates the validation code based on the logonId, the new generated password, and expiry time.
|
java.lang.String | getAdminPassword()
Retrieves the password of the administrator who is resetting the shopper's password.
|
java.lang.String | getLogonId()
Retrieves the logon ID of the shopper whose password needs to be reset.
|
java.lang.String | getRedirectURL()
Retrieves the URL to redirect the user to after a successful password reset.
|
void | performExecute()
This method executes the command to reset the password of user in one of two ways: Default: Generates a new random password and email's it to the user.
|
protected TypedProperty | removeSensitiveDataFromRequestProperties()
Remove sensitive data from request properties so that they will not show up in the krypto parameter in the URL.
|
void | setAdministratorPassword(java.lang.String strAdminPassword)
This method sets the administrator's password, who resets the password of the shopper.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the shopper whose password is reset.
|
void | setRedirectURL(java.lang.String strRedirectURL)
This method sets the URL to redirect the user to after a successful password reset.
|
void | setRequestProperties(TypedProperty hshReqParameters)
This method sets the request properties.
|
void | validateParameters()
This method validates the parameters by ensuring the following: The redirectURL is specified.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public java.lang.String getAdminPassword()
public java.lang.String getLogonId()
public java.lang.String getRedirectURL()
public void performExecute() throws ECException
protected java.lang.String generateValidationCode(java.lang.String astrGeneratedPassword, java.lang.String astrLogonId)
public void setAdministratorPassword(java.lang.String strAdminPassword)
public void setLogonId(java.lang.String strLogonId)
public void setRedirectURL(java.lang.String strRedirectURL)
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
public void validateParameters() throws ECException
protected TypedProperty removeSensitiveDataFromRequestProperties()