com.ibm.commerce.security.commands

Class SendPasswordNotificationCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, SendPasswordNotificationCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    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.

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

      • ERRTASK_NAME

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

        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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • 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
        Parameters:
        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
        Parameters:
        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
        Parameters:
        strEmail - The email address of user.