com.ibm.commerce.security.commands
Class SendPasswordNotificationCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.security.commands.SendPasswordNotificationCmdImpl
- All Implemented Interfaces:
- ECCommand, SendPasswordNotificationCmd, TaskCommand
- public class SendPasswordNotificationCmdImpl
- extends TaskCommandImpl
- implements SendPasswordNotificationCmd
Sends an email notification informing the user of their new password.
Before executing this task command, the methods listed below must be invoked.
setLogonId
setPassword
Error View Task: SendPasswordNotificationErrorView
Method Summary |
protected java.lang.String |
getEmail()
Retrieves the email address of the shopper or
administrator to whom a notification will be sent. |
protected java.lang.String |
getLogonId()
Retrieves the logon ID of the shopper or
administrator to whom a notification will be sent. |
protected java.lang.String |
getPassword()
Retrieves the password of the shopper or
administrator to whom a notification will be sent. |
protected java.lang.String |
getSubject()
Retrieves the subject of the email notification to be sent. |
protected java.lang.Long |
getUsersId()
Retrieves the user ID to whom the email notification will be sent. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setLogonId(java.lang.String strLogonId)
Sets the logon ID of the user, to which the password
notification message should be sent. |
void |
setPassword(java.lang.String strPassword)
Sets the new password of the user. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
SendPasswordNotificationCmdImpl
public SendPasswordNotificationCmdImpl()
getEmail
protected java.lang.String getEmail()
- Retrieves the email address of the shopper or
administrator to whom a notification will be sent.
- Returns:
- Email address of user.
getLogonId
protected java.lang.String getLogonId()
- Retrieves the logon ID of the shopper or
administrator to whom a notification will be sent.
- Returns:
- Logon ID of user.
getPassword
protected java.lang.String getPassword()
- Retrieves the password of the shopper or
administrator to whom a notification will be sent.
- Returns:
- Password of user.
getSubject
protected java.lang.String getSubject()
- Retrieves the subject of the email notification to be sent.
- Returns:
- Subject of email.
getUsersId
protected java.lang.Long getUsersId()
- Retrieves the user ID to whom the email notification will be sent.
- Returns:
- User ID.
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 AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setLogonId
public void setLogonId(java.lang.String strLogonId)
- Description copied from interface:
SendPasswordNotificationCmd
- Sets the logon ID of the user, to which the password
notification message should be sent.
- Specified by:
setLogonId
in interface SendPasswordNotificationCmd
- Following copied from interface:
com.ibm.commerce.security.commands.SendPasswordNotificationCmd
- Parameters:
strLogonId
- Logon ID of user to receive notification.
setPassword
public void setPassword(java.lang.String strPassword)
- Description copied from interface:
SendPasswordNotificationCmd
- Sets the new password of the user. This password will be
sent in the notification message.
- Specified by:
setPassword
in interface SendPasswordNotificationCmd
- Following copied from interface:
com.ibm.commerce.security.commands.SendPasswordNotificationCmd
- Parameters:
strPassword
- The password to be sent to the user.
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 AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-