public class ComparisonConditionElementCmdImpl extends PriceRuleElementCmdImpl implements ComparisonConditionElementCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ComparisonConditionElementCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject | calculatePriceEquationValue(java.lang.String priceEquationId)
The method calculates the value of the price equation.
|
protected java.math.BigDecimal | getOfferPriceFromPriceList(java.lang.String priceListId, java.lang.String catentryId, java.lang.String storeId, java.lang.String currency, java.lang.String uom, java.lang.Double quantity, java.util.Map runtimeParameters)
Get offer price from a price list for a catalog entry.
|
java.math.BigDecimal | getPriceConstantValue(java.lang.String prconstantId, java.lang.String targetCurrency)
This method retrieve value of a price constant.
|
protected boolean | isPriceConstantCurrencyType(java.lang.String priceConstantId)
The method judges if the price constant is of currency type.
|
void | performExecute()
The main logic to execute the command.
|
java.util.List | validateParameters(java.util.Map elementParameters)
This method performs validations.
|
protected boolean | validatePriceConstantAndEquation(java.lang.String prconstantId, java.lang.String equationType)
This method validates if the price constant and the price equation are comparable.
|
protected boolean | validatePriceConstantComparison(java.lang.String inputPriceConstantId, java.lang.String comparingPriceConstantId)
Validate the two price constant are comparable in a compare element.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws java.lang.Exception
protected java.math.BigDecimal getOfferPriceFromPriceList(java.lang.String priceListId, java.lang.String catentryId, java.lang.String storeId, java.lang.String currency, java.lang.String uom, java.lang.Double quantity, java.util.Map runtimeParameters) throws ECException
protected boolean isPriceConstantCurrencyType(java.lang.String priceConstantId)
protected com.ibm.commerce.price.rule.runtime.objects.PriceEquationResultObject calculatePriceEquationValue(java.lang.String priceEquationId) throws java.lang.Exception
protected boolean validatePriceConstantAndEquation(java.lang.String prconstantId, java.lang.String equationType) throws java.lang.Exception
public java.math.BigDecimal getPriceConstantValue(java.lang.String prconstantId, java.lang.String targetCurrency) throws java.lang.Exception
protected boolean validatePriceConstantComparison(java.lang.String inputPriceConstantId, java.lang.String comparingPriceConstantId) throws java.lang.Exception
public java.util.List validateParameters(java.util.Map elementParameters)