public class DiscountCalculationRuleQualifyCmdImpl extends CalculationCmdImpl implements DiscountCalculationRuleQualifyCmd
The default implementation of DiscountCalculationRuleQualifyCmd.
It returns all items as qualified if the current user is in at least one of the member groups associated with the calculation rule (see CALRULEMGP). The current user is in a member group if the following conditions are met:
CheckCurrentUserInMemberGroupCmd returns true.CalculationHelper.isCurrentUserInMemberGroup(Long, CommandContext).
Commands used:
Access beans used:OrderItemAccessBeanCalculationRuleAccessBeanCalculationRuleMemberGroupRelationshipAccessBeanRecognizedMemberGroupAccessBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
DiscountCalculationRuleQualifyCmdImpl()
Constructor for DiscountCalculationRuleQualifyCmdImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Item[] |
getQualifiedItems()
Returns the items that are qualified.
|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.
|
getCurrency, 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, waitgetCurrency, 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 DiscountCalculationRuleQualifyCmdImpl()
public Item[] getQualifiedItems()
getQualifiedItems in interface CalculationRuleQualifyCmdpublic void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionECCommand.performExecute()public void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class CalculationCmdImplCommand.reset()public void setItems(Item[] aItems)
setItems in interface CalculationRuleQualifyCmdaItems - the items.public void setRule(CalculationRuleAccessBean aabRule)
setRule in interface CalculationRuleQualifyCmdaabRule - the calculation rule.