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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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, isGeneric, 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, 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 java.lang.String getAdminPassword()
public java.lang.String getLogonId()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setAdministratorPassword(java.lang.String strAdminPassword)
setAdministratorPassword
in interface ResetPasswordAdministratorCmd
strAdminPassword
- The administrator's password.public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface ResetPasswordAdministratorCmd
strLogonId
- Login ID to set.public void setRedirectURL(java.lang.String strRedirectURL)
setRedirectURL
in interface ResetPasswordAdministratorCmd
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