com.ibm.commerce.pvc.commands
Class ReEnterPasswordCmdImpl
java.lang.Object
CacheableCommandImpl
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.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field |
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 |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field
- See Also:
- Constant Field Values
ReEnterPasswordCmdImpl
public ReEnterPasswordCmdImpl()
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.
- Store the reentpw parameter value, and remove it from the requestProperties.
- Store the URL parameter value, and remove it from the requestProperties.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class ControllerCommandImpl
-
- 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.
- If URL parameter value is null, thows exception.
- 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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.