Class SendPasswordNotificationCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, SendPasswordNotificationCmd,,,,,,

    public class SendPasswordNotificationCmdImpl
    extends TaskCommandImpl
    implements SendPasswordNotificationCmd

    Sends an e-mail notification informing the user of one of the following:

    • The user's new password (default)
    • Validation code. If an administrator initiated the reset password process, then a link to the store's ResetPasswordForm is also sent.

      Before executing this task command, the methods listed below must be invoked.

      Error View Task: SendPasswordNotificationErrorView
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String ERRTASK_NAME
        The error task name.
        See Also:
        Constant Field Values

        public static final java.lang.String RESET_PASSWORD_FORM_URL
        The parameter used in the email JSP to specify where the customer needs to go to reset their password when validation code is being used.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendPasswordNotificationCmdImpl

        public SendPasswordNotificationCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Executes this command. Sends a message to the user to notify them of their new password or validation code. Message is sent using SendTransacted.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
      • setLogonId

        public void setLogonId(java.lang.String strLogonId)
        Sets the logon ID of the user, to which the password notification message is sent.
        Specified by:
        setLogonId in interface SendPasswordNotificationCmd
        strLogonId - Logon ID of the user who receives the notification.
      • setPassword

        public void setPassword(java.lang.String strPassword)
        Sets the new password of the user. This password will be sent in the notification message.
        Specified by:
        setPassword in interface SendPasswordNotificationCmd
        strPassword - The password to be sent to the user.
      • setEmail

        public void setEmail(java.lang.String strEmail)
        Sets the email of the user. If email is not set, program will retrieve email from database
        Specified by:
        setEmail in interface SendPasswordNotificationCmd
        strEmail - The email address of user.