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.CompleteOrderCmdImpl
OrderDisplayCmdImpl
SalesOrderPreprocessCmdImpl
ScheduledOrderProcessCmdImpl
RFQToOrderCreateCmdImpl
RequisitionListSubmitCmdImpl
CSROrderPrepareImpl
RFQCompleteCmdImpl
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, setUrl
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, 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
setOrderId, setOutOrderIds
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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class OrderPrepareBaseImpl
ECException
public void setRequestProperties(TypedProperty aReqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class OrderPrepareBaseImpl
aReqParms
- request properties.ECApplicationException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public boolean getCommit()
public void setCommit(boolean aCommit)
setCommit
in interface OrderPrepareCmd
aCommit
- The ibCommit to setpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException