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:
InvokePersonalizationRuleServiceCommand
CalculationCodeQualifyCmd
OrderItemAccessBean
StoreEntityCalculationUsageAccessBean
CalculationMethodAccessBean
CalculationCodeAccessBean
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, setTaxCategoryIds
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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
getGroups, setItems, setTaxCategoryIds
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, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public DiscountCalculationCodeCombineCmdImpl()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class CalculationCodeCombineCmdImpl
Command.reset()
public void performExecute() throws ECException
AbstractECTargetableCommand
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class CalculationCodeCombineCmdImpl
ECException
ECCommand#performExecute()