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
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_ATTRIBUTEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTargetCustomersConditions(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, de.hybris.platform.ruledefinitions.CollectionOperator customerGroupsOperator, List<String> customerGroups, List<String> customers, RuleIrGroupCondition irTargetCustomersCondition) Gets not allowed booking journey types.Gets not allowed order type.voidsetNotAllowedBookingJourneyTypes(List<String> notAllowedBookingJourneyTypes) Deprecated.since version 2003.voidsetNotAllowedOrderTypes(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
addTargetCustomersConditionsMethods inherited from class de.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator
addContainsAllCustomerGroupConditions, addExcludedCustomersAndCustomerGroupsConditions, getCustomerConditions, getCustomerGroupConditions, getUserRAOAttribute, isUsePk, setUsePkMethods inherited from class de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
covertToNullIfEmptyCollection, covertToNullIfEmptyMap, getConsumptionSupport, setConsumptionSupport, verifyAllPresent, verifyAnyPresent
-
Constructor Details
-
RuleCustomersCartConditionTranslator
public RuleCustomersCartConditionTranslator()
-
-
Method Details
-
translate
public RuleIrCondition translate(de.hybris.platform.ruleengineservices.compiler.RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) - Specified by:
translatein interfacede.hybris.platform.ruleengineservices.compiler.RuleConditionTranslator- Overrides:
translatein classde.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:
addTargetCustomersConditionsin classde.hybris.platform.ruledefinitions.conditions.RuleTargetCustomersConditionTranslator
-
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
Gets not allowed order type.- Returns:
- the not allowed order type
-
setNotAllowedOrderTypes
Sets not allowed order type.- Parameters:
notAllowedOrderTypes- the not allowed order type
-