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.StringAVAILABLE_QUANTITY_PARAMprotected static java.lang.StringBASE_PRODUCT_CODES_ATTRIBUTEprotected static java.lang.StringCART_RAO_CURRENCY_ATTRIBUTEprotected static java.lang.StringCART_RAO_ENTRIES_ATTRIBUTEprotected static java.lang.StringCART_RAO_TOTAL_ATTRIBUTEprotected static java.lang.StringCATEGORIES_OPERATOR_PARAMprotected static java.lang.StringCATEGORIES_PARAMprotected static java.lang.StringCATEGORY_RAO_CODE_ATTRIBUTEprotected static java.lang.StringOPERATOR_PARAMprotected static java.lang.StringORDER_CONSUMED_RAO_CART_ATTRIBUTEDeprecated, for removal: This API element is subject to removal in a future version.since 1905protected static java.lang.StringORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTEprotected static java.lang.StringORDER_ENTRY_RAO_PRODUCT_ATTRIBUTEprotected static java.lang.StringPRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTEprotected static java.lang.StringPRODUCT_RAO_CATEGORIES_ATTRIBUTEprotected static java.lang.StringPRODUCT_RAO_CODE_ATTRIBUTEprotected static java.lang.StringPRODUCTS_PARAMprotected static java.lang.StringQUANTITY_PARAMprotected static java.lang.StringVALUE_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.ObjectcovertToNullIfEmptyCollection(java.lang.Object seedObject)protected java.lang.ObjectcovertToNullIfEmptyMap(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 RuleConditionConsumptionSupportgetConsumptionSupport()protected booleanisConsumptionEnabled()Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRAOConsumptionSupport.isConsumptionEnabled()voidsetConsumptionEnabled(boolean consumptionEnabled)Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetConsumptionSupport(RuleConditionConsumptionSupport consumptionSupport)protected booleanverifyAllPresent(java.lang.Object... objects)protected booleanverifyAnyPresent(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_ATTRIBUTEDeprecated, 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)
-
-