public class SubmitShoppingCartCmdImpl extends ControllerCommandImpl implements SubmitShoppingCartCmd
SubmitShoppingCart
command.
The SubmitShoppingCart
command is invoked when the
procurement buyer submits or checks out their order
during catalog browsing. This command changes the status
of the order and order items to W (awaiting approval)
from P (pending). Together with the SendShoppingCart
command, the SubmitShoppingCart
command
alters the shopping flow to send the procurement buyer order
to the procurement system.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SubmitShoppingCartCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorTask()
This method gets the error task name.
|
java.lang.Long |
getOrderId()
This method gets the order ID.
|
AccessVector |
getResources()
This method gets an AccessVector that contain OrderAccessBeans.
|
java.lang.String |
getViewTask()
This method gets the view task name.
|
void |
performExecute()
This method changes the status order in the orders and order items table
from status pending (P) to waiting approval (W).
|
void |
setOrderId(java.lang.Long orderId)
This method sets the order ID.
|
void |
setRequestProperties(TypedProperty p)
The Web controller calls the setRequestProperties method before invoking the execute method in this command.
|
void |
validateParameters()
This method checks for the existence of the order ID.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public java.lang.String getErrorTask()
public java.lang.Long getOrderId()
orders_Id
The order ID.public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public java.lang.String getViewTask()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
CommandException.
ECException
public void setOrderId(java.lang.Long orderId)
setOrderId
in interface SubmitShoppingCartCmd
orderId
- The order IDpublic void setRequestProperties(TypedProperty p) throws ECException
1. orderRefNumber 2. userID 3. password
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Raised when the order ID is null.