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.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ResetPasswordAdministratorCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
AccessVector |
getResources()
Gets the resources accessed by this command.
|
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.
|
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.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic 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 AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - If the resource can not be retrieved.public void performExecute()
throws ECException
validationCode=true in CMDREG table:
Sends a validation code along with a URL for ResetPasswordForm, so that the validation code and new
password can be specified.
byPassAdminPassword=true in CMDREG table:
Bypass the validation for administrator's password. The administrator's password is not a mandatory input and
VerifyCredentialsCmd will be bypassed.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setAdministratorPassword(java.lang.String strAdminPassword)
setAdministratorPassword in interface ResetPasswordAdministratorCmdstrAdminPassword - The administrator's password.public void setLogonId(java.lang.String strLogonId)
setLogonId in interface ResetPasswordAdministratorCmdstrLogonId - Login ID to set.public void setRedirectURL(java.lang.String strRedirectURL)
setRedirectURL in interface ResetPasswordAdministratorCmdstrRedirectURL - URL to redirect to.public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplhshReqParameters - The request parameters.ECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException