com.ibm.commerce.pvc.commands

Class ReEnterPasswordCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ReEnterPasswordCmd, Protectable, 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 ReEnterPasswordCmdImpl
    extends ControllerCommandImpl
    implements ReEnterPasswordCmd
    Reenter password to execute password protected command.

    Behavior

    Extracts parameter reenterpw and "URL" from request. If parameters are not found ParameterNotFoundException will be thrown.

    Appends pair of name and value of reenterpw to value of "URL"

    Sends redirect instruction to the rebuilt URL.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReEnterPasswordCmdImpl

        public ReEnterPasswordCmdImpl()
    • Method Detail

      • isGeneric

        public boolean isGeneric()
        Checks to see if this is a generic command. A generic command is a command that can be invoked by a generic user. The default is false for all controller commands and true for all view commands.
        Specified by:
        isGeneric in interface ControllerCommand
        Overrides:
        isGeneric in class ControllerCommandImpl
        Returns:
        Always false.
      • setRequestProperties

        public void setRequestProperties(TypedProperty hshReqParameters)
                                  throws ECApplicationException
        Receives the parameters for this command, and stored into member variables. The WebController calls the setRequestProperties method before invoking the execute method in this command.

        This method does the following in the list.

        1. Store the reentpw parameter value, and remove it from the requestProperties.
        2. Store the URL parameter value, and remove it from the requestProperties.

        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class ControllerCommandImpl
        Parameters:
        reqProp - The parameters for this command.
        Throws:
        ECApplicationException - If an error occurs while processing this method.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Checks the parameters for this command. The WebController calls the validateParameters method before invoking the execute method in this command.

        This method checks the following in the list.

        1. If URL parameter value is null, throws exception.
        2. If reentpw parameter value is null, throws exception.

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - If an error occurs while processing this method