public class RetrieveShoppingCartCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements RetrieveShoppingCartCmd
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
Class name
|
static java.lang.String |
COPYRIGHT
IBM copyright info
|
static java.lang.String |
ERRTASK_NAME
Error task name
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
RetrieveShoppingCartCmdImpl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
boolean |
isGeneric()
This controller command can not be called by a generic user.
|
boolean |
isReadyToCallExecute()
Always true.
|
void |
performExecute()
This method will retrieve the shopping cart information and put into responseProperties
1.
|
void |
validateParameters()
Checks for the required parameters
validated parameters are:
userId user Id (required)
storeId store Id (required)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public RetrieveShoppingCartCmdImpl()
public com.ibm.commerce.accesscontrol.AccessVector getResources()
throws com.ibm.commerce.exception.ECException
getResources in interface com.ibm.commerce.command.ECCommandgetResources in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - System errorpublic boolean isGeneric()
isGeneric in interface com.ibm.commerce.command.ControllerCommandisGeneric in class com.ibm.commerce.command.ControllerCommandImplpublic boolean isReadyToCallExecute()
isReadyToCallExecute in class com.ibm.commerce.command.AbstractECTargetableCommandpublic void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECSystemException - Raised with message key :
ECMessage._ERR_CREATE_EXCEPTION or ECMessage._ERR_FINDER_EXCEPTION or ECMessage._ERR_FINDER_EXCEPTION
or ECMessage._ERR_NAMING_EXCEPTION or ECMessage._ERR_REMOTE_EXCEPTION or ECMessage._ERR_REMOVE_EXCEPTION
if anything goes wrong with the data resources being queried.com.ibm.commerce.exception.ECExceptionpublic void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandECApplicationException - Raised with message key ECMessage._ERR_MISSING_PARMS if fails the validation,com.ibm.commerce.exception.ECException