Class ResetPasswordRegisterCmdImpl

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

    public class ResetPasswordRegisterCmdImpl
    extends TaskCommandImpl
    implements ResetPasswordRegisterCmd

    This task command is used to reset the password of a user that is logged onto WebSphereCommerce.

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

    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        The copyright statement.
        See Also:
        Constant Field Values

        public static final java.lang.String ERRTASK_NAME
        The error task view.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResetPasswordRegisterCmdImpl

        public ResetPasswordRegisterCmdImpl()
    • Method Detail

      • setErrorRedirectURL

        public void setErrorRedirectURL(java.lang.String newErrorRedirectURL)
        Sets the error URL to which to redirect if specified. This is used in case of user errors in the parameters.
        Specified by:
        setErrorRedirectURL in interface ResetPasswordRegisterCmd
        strNewPassword - New password.
      • setNewPassword

        public void setNewPassword(java.lang.String strNewPassword)
        Sets the new password of the user whose password is being changed.
        Specified by:
        setNewPassword in interface ResetPasswordRegisterCmd
        strNewPassword - The new password.
      • setNewPasswordVerify

        public void setNewPasswordVerify(java.lang.String strNewPasswordVerify)
        Sets the confirm new password string of the user whose password is being changed.
        Specified by:
        setNewPasswordVerify in interface ResetPasswordRegisterCmd
        strNewPasswrdVerify - Confirmation of new password.
      • setOldPassword

        public void setOldPassword(java.lang.String strOldPassword)
        Sets the old password of the user whose password is being changed.
        Specified by:
        setOldPassword in interface ResetPasswordRegisterCmd
        strOldPassword - Old password to be changed.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Validates the parameters. Ensures that oldPassword, password, and passwordVerify are non-zero length strings. Next, it ensures that password and passwordVerify match. Finally, it checks to ensure that the new password satisfies all defined password policies.
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand