public class ContractSetInSessionCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements ContractSetInSessionCmd
ContractSetInSessionCmd
controller command.
| Name | Description |
|---|---|
ContractIdList |
The contracts to use in the current section. Mandatory. |
RequestProperties |
The request properties. Possible values include redirecturl, ContractIdList. Optional. |
Url |
The redirect url to be called when the command completes successfully. Mandatory. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ContractSetInSessionCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl()
Gets the redirection URL to be called when the command completes successfully.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setContractIdList(java.lang.String[] asaContractId)
Sets the contracts to use in the current section.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void |
setUrl(java.lang.String astrUrl)
Sets the redirect url to be called when the command completes successfully.
|
void |
validateParameters()
Checks if the user logon to a store.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.String getUrl()
public 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.ECException - Raised with message _ERR_NOT_ENTITLE_TO_THIS_CONTRACT if the user does not entitle to one of
the contracts in the list.AbstractECTargetableCommand.performExecute()public void setContractIdList(java.lang.String[] asaContractId)
setContractIdList in interface ContractSetInSessionCmdasaContractId - list of contract IDspublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties in interface com.ibm.commerce.command.ControllerCommandsetRequestProperties in class com.ibm.commerce.command.ControllerCommandImplaRequestProperties - An TypedProperty object contains the input parameters.
For this default implementation, contractId is required parameter.com.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER when contractId is missed from the URL.ControllerCommandImpl.setRequestProperties(TypedProperty)public void setUrl(java.lang.String astrUrl)
setUrl in interface ContractSetInSessionCmdastrUrl - the redirect url stringpublic void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - Raised with message _ERR_DIDNT_LOGON if the user did not logon to a store.AbstractECTargetableCommand.validateParameters()