public class PromotionEngineOrderCalculateCmdImpl extends ControllerCommandImpl implements OrderCalculateCmd
OrderCalculateCmd
controller command. Name | Description |
---|---|
orderId |
The reference number of the order to be displayed. If this parameter is omitted, this command behaves as if all of the customer's orders with the specified status for the specified store were specified. Abbreviations may be used, but only with pending orders (status is P for standard orders or NEW for advanced orders). This parameter can be repeated. |
calculationUsageId |
Predefined codes for calculation of discounts (-1), shipping (-2), sales tax (-3), shipping tax (-4), coupons (-5), surcharge (-6), shipping adjustment (-7). This parameter can be repeated. |
outOrderName |
Specifies the names of name-value pairs to be passed to a JSP. The value of each added name-value pair is
the reference number of the order to be displayed. If the name is not provided, the default name orderId is used.
This parameter can be repeated. |
calculationUsageId |
Predefined codes for calculation of discounts (-1), shipping (-2), sales tax (-3), shipping tax (-4), coupons (-5), surcharge (-6), shipping adjustment (-7). This parameter can be repeated. |
updatePrices |
This flag indicates whether the prices of order items will be refreshed in this command. If the value of the flag is set to "0" (default value), then the prices will not be refreshed. If the value of the flag is set to "1", then the prices will be updated. |
keepAutoAddedOrderItemsBeforeCalculate |
This flag indicates whether the freegift item should be kept in the order before calculating discounts. If the value of the flag is "0" (default value), the freegift item will be removed before calculating discounts and then re-added. If the value of the flag is "1", the freegift item will be kept as is. |
Name | Description |
---|---|
istrOutOrderNames | the order IDs to be displayed |
outOfInventoryCatalogEntryId |
the catalog entrys which are intended to add to the order as freegift but has no inventory now. |
nonBuyableCatalogEntryId |
the catalog entrys which are intended to add to the order as freegift but are non-buyable now. |
OrderItemAddCmd
controller command to add the CatalogEntries to the OrderResolveOrderItemPriceCmd
to update the product total of the Order and its OrderItemssetResponseProperties()
.ResolveOrdersCmd
OrderItemAddCmd
ResolveOrderItemPriceCmd
OrderItemDeleteCmd
DoInventoryActionCmd
RewardChoiceUpdateCmdImpl
SalesOrderPreprocessCmdImpl
GuestUserOrderMigrationEventListener
OrderItemAddCmdImpl
OrderItemUpdateCmdImpl
OrderItemDeleteCmdImpl
MigrateRegisteredUserEntriesCmdImpl
CSROrderPrepareCmdImpl
OrderCalculateCmdImpl
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
PromotionEngineOrderCalculateCmdImpl()
Constructor for PromotionEngineOrderCalculateCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap |
getCustomProperties()
This method returns the customer properties.
|
java.lang.Long[] |
getOutOfInventoryCatalogEntryIds()
This method returns the CatalogEntry identifiers of catalog items that
could not be added to the Order due to insufficient inventory.
|
AccessVector |
getResources()
This method returns an
AccessVector
containing the OrderAccessBean s to be processed. |
void |
performExecute()
This method executes the main business logic of the command implementation.
|
void |
reset()
This method resets instance variables to their initial values.
|
void |
setCustomProperties(java.util.HashMap newhshCustomProperties)
This method sets the customer properties.
|
void |
setOrders(OrderAccessBean[] aabOrders)
This method sets the orders to be calculated.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties to the command.
|
void |
setUsageIds(java.lang.Integer[] anUsageIds)
This method sets the calculation usage ids.
|
void |
validateParameters()
This method calls
ResolveOrdersCmd to
resolve the orders to be processed from the request. |
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
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 PromotionEngineOrderCalculateCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public void setOrders(OrderAccessBean[] aabOrders)
setOrders
in interface OrderCalculateCmd
aabOrders
- the Orders.
OrderCalculateCmd.setOrders(OrderAccessBean[])
public void setUsageIds(java.lang.Integer[] anUsageIds)
setUsageIds
in interface OrderCalculateCmd
anUsageIds
- the CalculationUsage identifiers.
OrderCalculateCmd.setUsageIds(Integer[])
public void setCustomProperties(java.util.HashMap newhshCustomProperties)
setCustomProperties
in interface OrderCalculateCmd
newhshCustomProperties
- the customer propertiespublic java.lang.Long[] getOutOfInventoryCatalogEntryIds()
getOutOfInventoryCatalogEntryIds
in interface OrderCalculateCmd
OrderCalculateCmd.getOutOfInventoryCatalogEntryIds()
public java.util.HashMap getCustomProperties()
getCustomProperties
in interface OrderCalculateCmd
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- the request properties.
ECApplicationException
- The _ERR_BAD_MISSING_CMD_PARAMETER message is passed, with
the name of the invalid or missing property name.ECException
- ControllerCommand#setRequestProperties(TypedProperty)
public void validateParameters() throws ECException
ResolveOrdersCmd
to
resolve the orders to be processed from the request.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
ECCommand#validateParameters()
public AccessVector getResources() throws ECException
AccessVector
containing the OrderAccessBean
s to be processed.
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
AccessVector
.ECException
ECCommand#getResources()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand