Class AbstractRuleConditionTranslator
- java.lang.Object
-
- de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
-
- All Implemented Interfaces:
RuleConditionTranslator
- Direct Known Subclasses:
RuleCartTotalConditionTranslator
,RuleCustomerSupportConditionTranslator
,RuleEntryGroupTypeConditionTranslator
,RuleOrderThresholdPerfectPartnerConditionTranslator
,RuleProductPriceConditionTranslator
,RuleQualifyingCategoriesConditionTranslator
,RuleQualifyingProductsConditionTranslator
,RuleTargetCustomersConditionTranslator
public abstract class AbstractRuleConditionTranslator extends java.lang.Object implements RuleConditionTranslator
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
AVAILABLE_QUANTITY_PARAM
protected static java.lang.String
BASE_PRODUCT_CODES_ATTRIBUTE
protected static java.lang.String
CART_RAO_CURRENCY_ATTRIBUTE
protected static java.lang.String
CART_RAO_ENTRIES_ATTRIBUTE
protected static java.lang.String
CART_RAO_TOTAL_ATTRIBUTE
protected static java.lang.String
CATEGORIES_OPERATOR_PARAM
protected static java.lang.String
CATEGORIES_PARAM
protected static java.lang.String
CATEGORY_RAO_CODE_ATTRIBUTE
protected static java.lang.String
OPERATOR_PARAM
protected static java.lang.String
ORDER_CONSUMED_RAO_CART_ATTRIBUTE
Deprecated, for removal: This API element is subject to removal in a future version.since 1905protected static java.lang.String
ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE
protected static java.lang.String
ORDER_ENTRY_RAO_PRODUCT_ATTRIBUTE
protected static java.lang.String
PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE
protected static java.lang.String
PRODUCT_RAO_CATEGORIES_ATTRIBUTE
protected static java.lang.String
PRODUCT_RAO_CODE_ATTRIBUTE
protected static java.lang.String
PRODUCTS_PARAM
protected static java.lang.String
QUANTITY_PARAM
protected static java.lang.String
VALUE_PARAM
-
Constructor Summary
Constructors Constructor Description AbstractRuleConditionTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.Object
covertToNullIfEmptyCollection(java.lang.Object seedObject)
protected java.lang.Object
covertToNullIfEmptyMap(java.lang.Object seedObject)
protected java.util.List<RuleIrCondition>
createProductConsumedCondition(RuleCompilerContext context, java.lang.String orderEntryRaoVariable)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRuleConditionConsumptionSupport.newProductConsumedCondition(RuleCompilerContext, String)
protected RuleConditionConsumptionSupport
getConsumptionSupport()
protected boolean
isConsumptionEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRAOConsumptionSupport.isConsumptionEnabled()
void
setConsumptionEnabled(boolean consumptionEnabled)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905void
setConsumptionSupport(RuleConditionConsumptionSupport consumptionSupport)
protected boolean
verifyAllPresent(java.lang.Object... objects)
protected boolean
verifyAnyPresent(java.lang.Object... objects)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.ruleengineservices.compiler.RuleConditionTranslator
translate
-
-
-
-
Field Detail
-
ORDER_CONSUMED_RAO_CART_ATTRIBUTE
@Deprecated(since="1905", forRemoval=true) protected static final java.lang.String ORDER_CONSUMED_RAO_CART_ATTRIBUTE
Deprecated, for removal: This API element is subject to removal in a future version.since 1905- See Also:
- Constant Field Values
-
OPERATOR_PARAM
protected static final java.lang.String OPERATOR_PARAM
- See Also:
- Constant Field Values
-
VALUE_PARAM
protected static final java.lang.String VALUE_PARAM
- See Also:
- Constant Field Values
-
CART_RAO_CURRENCY_ATTRIBUTE
protected static final java.lang.String CART_RAO_CURRENCY_ATTRIBUTE
- See Also:
- Constant Field Values
-
CART_RAO_TOTAL_ATTRIBUTE
protected static final java.lang.String CART_RAO_TOTAL_ATTRIBUTE
- See Also:
- Constant Field Values
-
CART_RAO_ENTRIES_ATTRIBUTE
protected static final java.lang.String CART_RAO_ENTRIES_ATTRIBUTE
- See Also:
- Constant Field Values
-
PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE
protected static final java.lang.String PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE
- See Also:
- Constant Field Values
-
ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE
protected static final java.lang.String ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE
- See Also:
- Constant Field Values
-
QUANTITY_PARAM
protected static final java.lang.String QUANTITY_PARAM
- See Also:
- Constant Field Values
-
AVAILABLE_QUANTITY_PARAM
protected static final java.lang.String AVAILABLE_QUANTITY_PARAM
- See Also:
- Constant Field Values
-
CATEGORIES_OPERATOR_PARAM
protected static final java.lang.String CATEGORIES_OPERATOR_PARAM
- See Also:
- Constant Field Values
-
CATEGORIES_PARAM
protected static final java.lang.String CATEGORIES_PARAM
- See Also:
- Constant Field Values
-
CATEGORY_RAO_CODE_ATTRIBUTE
protected static final java.lang.String CATEGORY_RAO_CODE_ATTRIBUTE
- See Also:
- Constant Field Values
-
ORDER_ENTRY_RAO_PRODUCT_ATTRIBUTE
protected static final java.lang.String ORDER_ENTRY_RAO_PRODUCT_ATTRIBUTE
- See Also:
- Constant Field Values
-
PRODUCT_RAO_CODE_ATTRIBUTE
protected static final java.lang.String PRODUCT_RAO_CODE_ATTRIBUTE
- See Also:
- Constant Field Values
-
PRODUCT_RAO_CATEGORIES_ATTRIBUTE
protected static final java.lang.String PRODUCT_RAO_CATEGORIES_ATTRIBUTE
- See Also:
- Constant Field Values
-
PRODUCTS_PARAM
protected static final java.lang.String PRODUCTS_PARAM
- See Also:
- Constant Field Values
-
BASE_PRODUCT_CODES_ATTRIBUTE
protected static final java.lang.String BASE_PRODUCT_CODES_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
verifyAllPresent
protected boolean verifyAllPresent(java.lang.Object... objects)
-
verifyAnyPresent
protected boolean verifyAnyPresent(java.lang.Object... objects)
-
covertToNullIfEmptyCollection
protected java.lang.Object covertToNullIfEmptyCollection(java.lang.Object seedObject)
-
covertToNullIfEmptyMap
protected java.lang.Object covertToNullIfEmptyMap(java.lang.Object seedObject)
-
createProductConsumedCondition
@Deprecated(since="1905", forRemoval=true) protected java.util.List<RuleIrCondition> createProductConsumedCondition(RuleCompilerContext context, java.lang.String orderEntryRaoVariable)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRuleConditionConsumptionSupport.newProductConsumedCondition(RuleCompilerContext, String)
-
isConsumptionEnabled
@Deprecated(since="1905", forRemoval=true) protected boolean isConsumptionEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRAOConsumptionSupport.isConsumptionEnabled()
-
setConsumptionEnabled
@Deprecated(since="1905", forRemoval=true) public void setConsumptionEnabled(boolean consumptionEnabled)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
getConsumptionSupport
protected RuleConditionConsumptionSupport getConsumptionSupport()
-
setConsumptionSupport
public void setConsumptionSupport(RuleConditionConsumptionSupport consumptionSupport)
-
-