com.ibm.commerce.security.commands
Class ResetPasswordAdministratorCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.security.commands.ResetPasswordAdministratorCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ResetPasswordAdministratorCmd
- public class ResetPasswordAdministratorCmdImpl
- extends ControllerCommandImpl
- implements ResetPasswordAdministratorCmd
This task command is used by an administrator to reset the password of a shopper.
Before executing this task command, the methods listed below must be invoked.
setLogonId
setAdministratorPassword
setRedirectURL
Method Summary |
java.lang.String |
getAdminPassword()
Retrieves the password of the administrator whose 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 that the user should
be redirected after successful password
reset. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setAdministratorPassword(java.lang.String strAdminPassword)
Sets the administrator’s password, who will be
resetting the password of the shopper. |
void |
setLogonId(java.lang.String strLogonId)
Sets the logon ID of the shopper whose password will be reset. |
void |
setRedirectURL(java.lang.String strRedirectURL)
Sets the URL to which 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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
ResetPasswordAdministratorCmdImpl
public ResetPasswordAdministratorCmdImpl()
getAdminPassword
public java.lang.String getAdminPassword()
- Retrieves the password of the administrator whose is resetting the shopper's password.
- Returns:
- The administrator password.
getLogonId
public java.lang.String getLogonId()
- Retrieves the logon ID of the shopper whose password needs to be reset.
- Returns:
- Logon ID.
getRedirectURL
public java.lang.String getRedirectURL()
- Retrieves the URL that the user should
be redirected after successful password
reset.
- Returns:
- URL which to redirect.
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setAdministratorPassword
public void setAdministratorPassword(java.lang.String strAdminPassword)
- Description copied from interface:
ResetPasswordAdministratorCmd
- Sets the administrator’s password, who will be
resetting the password of the shopper.
- Specified by:
setAdministratorPassword
in interface ResetPasswordAdministratorCmd
- Following copied from interface:
com.ibm.commerce.security.commands.ResetPasswordAdministratorCmd
- Parameters:
strAdminPassword
- The administrator password.
setLogonId
public void setLogonId(java.lang.String strLogonId)
- Description copied from interface:
ResetPasswordAdministratorCmd
- Sets the logon ID of the shopper whose password will be reset.
- Specified by:
setLogonId
in interface ResetPasswordAdministratorCmd
- Following copied from interface:
com.ibm.commerce.security.commands.ResetPasswordAdministratorCmd
- Parameters:
strLoginID
- LoginID to be set.
setRedirectURL
public void setRedirectURL(java.lang.String strRedirectURL)
- Description copied from interface:
ResetPasswordAdministratorCmd
- Sets the URL to which the user should
be redirected after, successful password
reset.
- Specified by:
setRedirectURL
in interface ResetPasswordAdministratorCmd
- Following copied from interface:
com.ibm.commerce.security.commands.ResetPasswordAdministratorCmd
- Parameters:
strRedirectURL
- URL to redirect to.
setRequestProperties
public void setRequestProperties(TypedProperty hshReqParameters)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-