Class RuleCustomersCartConditionTranslator

java.lang.Object
de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator
de.hybris.platform.travelrulesengine.conditions.AbstractRuleCustomersConditionTranslator
de.hybris.platform.travelrulesengine.conditions.RuleCustomersCartConditionTranslator
All Implemented Interfaces:
de.hybris.platform.ruleengineservices.compiler.RuleConditionTranslator

public class RuleCustomersCartConditionTranslator extends AbstractRuleCustomersConditionTranslator
The type Rule customers cart condition translator.
  • Field Summary

    Fields inherited from class de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator

    CART_RAO_USER_ATTRIBUTE, CUSTOMER_GROUPS_OPERATOR_PARAM, CUSTOMER_GROUPS_PARAM, CUSTOMERS_PARAM, EXCLUDED_CUSTOMER_GROUPS_PARAM, EXCLUDED_USERS_PARAM, USER_GROUP_RAO_ID_ATTRIBUTE, USER_RAO_GROUPS_ATTRIBUTE, USER_RAO_ID_ATTRIBUTE, USER_RAO_PK_ATTRIBUTE

    Fields inherited from class de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator

    AVAILABLE_QUANTITY_PARAM, BASE_PRODUCT_CODES_ATTRIBUTE, CART_RAO_CURRENCY_ATTRIBUTE, CART_RAO_ENTRIES_ATTRIBUTE, CATEGORIES_OPERATOR_PARAM, CATEGORIES_PARAM, OPERATOR_PARAM, ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE, ORDER_ENTRY_RAO_CATEGORY_CODES_ATTRIBUTE, ORDER_ENTRY_RAO_PRODUCT_CODE_ATTRIBUTE, PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE, PRODUCTS_PARAM, QUANTITY_PARAM, VALUE_PARAM
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addTargetCustomersConditions(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, de.hybris.platform.ruledefinitions.CollectionOperator customerGroupsOperator, List<String> customerGroups, List<String> customers, RuleIrGroupCondition irTargetCustomersCondition)
     
    protected List<String>
    Gets not allowed booking journey types.
    protected List<String>
    Gets not allowed order type.
    void
    setNotAllowedBookingJourneyTypes(List<String> notAllowedBookingJourneyTypes)
    Deprecated.
    since version 2003.
    void
    setNotAllowedOrderTypes(List<String> notAllowedOrderTypes)
    Sets not allowed order type.
    translate(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition)
     

    Methods inherited from class de.hybris.platform.travelrulesengine.conditions.AbstractRuleCustomersConditionTranslator

    addTargetCustomersConditions

    Methods inherited from class de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator

    addContainsAllCustomerGroupConditions, addExcludedCustomersAndCustomerGroupsConditions, getCustomerConditions, getCustomerGroupConditions, getUserRAOAttribute, isUsePk, setUsePk

    Methods inherited from class de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator

    covertToNullIfEmptyCollection, covertToNullIfEmptyMap, getConsumptionSupport, setConsumptionSupport, verifyAllPresent, verifyAnyPresent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RuleCustomersCartConditionTranslator

      public RuleCustomersCartConditionTranslator()
  • Method Details

    • translate

      public RuleIrCondition translate(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition)
      Specified by:
      translate in interface de.hybris.platform.ruleengineservices.compiler.RuleConditionTranslator
      Overrides:
      translate in class de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator
    • addTargetCustomersConditions

      protected void addTargetCustomersConditions(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, de.hybris.platform.ruledefinitions.CollectionOperator customerGroupsOperator, List<String> customerGroups, List<String> customers, RuleIrGroupCondition irTargetCustomersCondition)
      Overrides:
      addTargetCustomersConditions in class de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator
    • getNotAllowedBookingJourneyTypes

      protected List<String> getNotAllowedBookingJourneyTypes()
      Gets not allowed booking journey types.
      Returns:
      the not allowed booking journey types
    • setNotAllowedBookingJourneyTypes

      @Deprecated(since="2003") public void setNotAllowedBookingJourneyTypes(List<String> notAllowedBookingJourneyTypes)
      Deprecated.
      since version 2003. Please use setNotAllowedOrderTypes.
      Sets not allowed booking journey types.
      Parameters:
      notAllowedBookingJourneyTypes - the not allowed booking journey types
    • getNotAllowedOrderTypes

      protected List<String> getNotAllowedOrderTypes()
      Gets not allowed order type.
      Returns:
      the not allowed order type
    • setNotAllowedOrderTypes

      public void setNotAllowedOrderTypes(List<String> notAllowedOrderTypes)
      Sets not allowed order type.
      Parameters:
      notAllowedOrderTypes - the not allowed order type