java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.me.commands.SendShoppingCartCmdImpl
The SendShoppingCartCmdImpl class is defined in this file. It prepares the shopping cart Quote to be sent to procurement systems. Actual composition of the response message will be done by the view tasks this command forwards to.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
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.me.commands. SendShoppingCartCmd |
defaultCommandClassName,
messageName,
NAME |
Constructor Summary | |
---|---|
SendShoppingCartCmdImpl() |
Method Summary | |
---|---|
protected
void |
doProcess() Create a new instance of CIQuoteImpl. |
java.lang.Long |
getBuyerId() Gets buyer id. |
java.lang.String |
getErrorTask() Gets error task name |
java.lang.Long |
getOrderId() Gets OrderId |
java.lang.Integer |
getProtocolId() Gets protocol Id |
AccessVector |
getResources() Puts order access beans into AccessVector |
boolean |
isRetriable() Check to see if this command is retriable on transaction rollback exception. |
void |
performExecute() This method contains the business logic for this command. |
void |
setBuyerId(java.lang.Long aBuyerId) Sets buyerId |
void |
setOrderId(java.lang.Long orderId) Sets orderId |
void |
setProtocolId(java.lang.Integer aProtocolId) Sets protocolId |
void |
setRequestProperties(
TypedProperty p) The WebController calls the setRequestProperties method before invoking the execute method in this command. |
void |
validateParameters() The default implementation of checkParameters is just a no op. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
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,
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,
isGeneric,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SendShoppingCartCmdImpl()
Method Detail |
---|
protected void doProcess() throws ECException
ECException
- The exception description.public java.lang.Long getBuyerId()
public java.lang.String getErrorTask()
public java.lang.Long getOrderId()
public java.lang.Integer getProtocolId()
public AccessVector getResources() throws ECException
AccessVector
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
public boolean isRetriable()
isRetriable
in interface
ControllerCommand
isRetriable
in class
ControllerCommandImpl
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
CommandException.
ECException
public void setBuyerId(java.lang.Long aBuyerId)
aBuyerId
- The buyer idpublic void setOrderId(java.lang.Long orderId)
setOrderId
in interface
SendShoppingCartCmd
orderId
- The order id.public void setProtocolId(java.lang.Integer aProtocolId)
aProtocolId
- The protocol id.public void setRequestProperties(TypedProperty p) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
p
- request propertiescom.ibm.commerce.exception.ECException.
ECException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException.
ECException