public class OrderPrepareCmdImpl extends OrderPrepareBaseImpl implements OrderPrepareCmd
OrderPrepareCmd.
It prepares the specified orders for display (by the OrderDisplayCmd) or
processing (by the OrderProcessCmd).
If no order numbers are specified, then the command prepares all the current pending
orders of the current customer that belong to the specified store.
| Name | Description |
|---|---|
URL |
optional, the URL to be called when the command completes successfully. |
orderId |
optional, the order Id specified, this parameter can be repeated. |
outOrderName |
Specifies the names of name-value pairs to be added to the redirection URL. |
retainOrderCurrency |
The currency to be retained. |
| Name | Description |
|---|---|
warningErrorMessageKey |
return this parameter if shopping cart has changed, _WARNING_ORDER_PREPARE_AN_ITEM_IN_PRE_SHIPPING_MODE |
warningErrorMessage |
return this parameter if shopping cart has changed, the ECMessage of key WARNING_ORDER_PREPARE_AN_ITEM_IN_PRE_SHIPPING_MODE |
ValidateShippingAdjustmentCmd to validate that
the order hasn't changed since a shipping adjustment was added.PrepareOrderCmd task command to do pricing, calculation and inventory actions.CompleteOrderCmdImplOrderDisplayCmdImplSalesOrderPreprocessCmdImplScheduledOrderProcessCmdImplRFQToOrderCreateCmdImplRequisitionListSubmitCmdImplCSROrderPrepareImplRFQCompleteCmdImpl| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
OrderPrepareCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCommit()
This method returns the commit flag
|
void |
performExecute()
This method contains the actual business logic of the command.
|
void |
reset()
This method should be called after a command has been executed to reset its states variables.
|
void |
setCommit(boolean aCommit)
This method sets the commit flag to control whether each order is processed in a separate
database transaction
|
void |
setRequestProperties(TypedProperty aReqParms)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
|
void |
validateParameters()
This method performs server side parameter checking.
|
addOrderRn, checkPendingOrderParameters, getATPParms, getMerchantNumber, getMerchantRn, getOrderProcessingUtility, getOrderRn, getOutOrderIds, getPage, getResources, getRetainCurrency, getStatus, getUrl, setATPParms, setMerchantNumber, setMerchantRn, setOrderId, setOrderProcessingUtility, setOutOrderIds, setPage, setRetainCurrency, setStatus, setUrlcheckPermission, 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, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOrderId, setOutOrderIdscheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public void performExecute()
throws ECException
checkStatus(OrderAccessBean) to verify the status of the order.
It then checks to see if the Order was generated from a Quote.
If so, check if the Quote is still within its expire date.
If not, calls resetSkipRepricingPrepareFlagsForOrder(OrderAccessBean) to
reset all the SKIP_REPRICING prepare flags for the items.
Then it calls ValidateShippingAdjustmentCmd to validate that the order hasn't
changed since a shipping adjustment was added.
Finally it calls the PrepareOrderCmd task command to do pricing,
calculation and inventory actions.performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class OrderPrepareBaseImplECExceptionpublic void setRequestProperties(TypedProperty aReqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class OrderPrepareBaseImplaReqParms - request properties.ECApplicationExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic boolean getCommit()
public void setCommit(boolean aCommit)
setCommit in interface OrderPrepareCmdaCommit - The ibCommit to setpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException