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:
Commands used:
Access beans used:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
DiscountCalculationRuleQualifyCmdImpl()
Constructor for DiscountCalculationRuleQualifyCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected Item[] | getItems()
Returns the items.
|
Item[] | getQualifiedItems()
Returns the items that are qualified.
|
protected CalculationRuleAccessBean | getRule()
Returns the calculation rule.
|
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.
|
protected void | setQualifiedItems(Item[] aItems)
Sets the items that are qualified.
|
void | setRule(CalculationRuleAccessBean aabRule)
Sets the calculation rule.
|
public static final java.lang.String COPYRIGHT
public DiscountCalculationRuleQualifyCmdImpl()
protected Item[] getItems()
public Item[] getQualifiedItems()
protected CalculationRuleAccessBean getRule()
public void performExecute() throws ECException
public void reset()
public void setItems(Item[] aItems)
protected void setQualifiedItems(Item[] aItems)
public void setRule(CalculationRuleAccessBean aabRule)