public interface CalculationRuleCalculateCmd extends CalculationCmd
Given a calculation rule and a list of items, this command will calculate the value of the calculation rule for each item.
For more information, refer to the default implementation of this command,
CalculationRuleCalculateCmdImpl
.
This is also the base interface that commands registered as calculation methods of type "CalculationRuleCalculate" must extend.
This command is registered as the following bootstrap calculation methods:
Calculation Method ID | Calculation Usage ID | Name |
---|---|---|
-7 | -1 | CalculationRuleCalculate (discount) |
-27 | -2 | CalculationRuleCalculate (shipping) |
-47 | -3 | CalculationRuleCalculate (sales tax) |
-67 | -4 | CalculationRuleCalculate (shipping tax) |
-5007 | -5 | CalculationRuleCalculate (coupon) |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright field notice.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
FILTER_SCALES_BY_STORE
The "filterScalesByStore" default property.
|
static java.lang.String |
NAME
The name of this command.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal[] |
getValues()
Returns the values corresponding to the items.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
static final java.lang.String FILTER_SCALES_BY_STORE
java.math.BigDecimal[] getValues()
void setItems(Item[] aItems)
aItems
- the items.void setRule(CalculationRuleAccessBean aabRule)
aabRule
- the calculation rule.