public class DiscountCalculationCodeCombineCmdImpl extends CalculationCodeCombineCmdImpl implements DiscountCalculationCodeCombineCmd
The default implementation of CalculationCodeCombineCmd.
If rule based discount is enabled, its behaviour is as follows:
InvokePersonalizationRuleServiceCommand to invoke the discount rule service.Discount, DiscountContext):
Group) that contains the following:
MonetaryDiscount),
adds its monetary values to the group by calling addMonetaryDiscount(Group, MonetaryDiscount).FixedPriceItem),
adds its monetary values to the group by calling addFixedPriceItem(Group, FixedPriceItem).FreebieItem),
adds its monetary values to the group by calling addFreebieItem(Group, FreebieItem).ServiceDiscount),
adds the service discount to the custom property "vecServiceDiscounts" by calling addServiceDiscount(ServiceDiscount).If rule based discount is not enabled, its behaviour is the same as that of CalculationCodeCombineCmdImpl.
Commands used:
InvokePersonalizationRuleServiceCommandCalculationCodeQualifyCmdOrderItemAccessBeanStoreEntityCalculationUsageAccessBeanCalculationMethodAccessBeanCalculationCodeAccessBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
DiscountCalculationCodeCombineCmdImpl()
Constructor for DiscountCalculationCodeCombineCmdImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
Resets the command properties.
|
getGroups, setItems, setTaxCategoryIdsgetCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, waitgetGroups, setItems, setTaxCategoryIdsgetCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public DiscountCalculationCodeCombineCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class CalculationCodeCombineCmdImplCommand.reset()public void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class CalculationCodeCombineCmdImplECExceptionECCommand#performExecute()