com.ibm.commerce.pvc.commands
Class ReEnterPasswordCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.pvc.commands.ReEnterPasswordCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ReEnterPasswordCmd

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"

Sentds redirect instruction to the rebuilt URL.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.pvc.commands.ReEnterPasswordCmd
defaultCommandClassName, NAME
 
Constructor Summary
ReEnterPasswordCmdImpl()
           
 
Method Summary
 boolean isGeneric()
          Check to see if this is a generic command.
 boolean isRetriable()
          Check to see if this command is retriable on transaction rollback exception.
 void performExecute()
          The business logic for this command.
 void setRequestProperties(TypedProperty hshReqParameters)
          Recieve the parameters for this command, and stored into member varilables.
 void validateParameters()
          Check the parameters for this command.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

ReEnterPasswordCmdImpl

public ReEnterPasswordCmdImpl()
Method Detail

isGeneric

public boolean isGeneric()
Check 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.

isRetriable

public boolean isRetriable()
Check to see if this command is retriable on transaction rollback exception. A retriable command will be retried once on transaction rollback exception.
Specified by:
isRetriable in interface ControllerCommand
Overrides:
isRetriable in class ControllerCommandImpl
Returns:
Always false.

performExecute

public void performExecute()
                    throws ECException
The business logic for this command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - If an error occures while processing this method.

setRequestProperties

public void setRequestProperties(TypedProperty hshReqParameters)
                          throws ECApplicationException
Recieve the parameters for this command, and stored into member varilables. 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
Check 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, thows 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