public class RuleTargetCustomersConditionTranslator extends Object implements RuleConditionTranslator
| Modifier and Type | Field and Description |
|---|---|
static String |
CART_RAO_USER_ATTRIBUTE |
static String |
CUSTOMER_GROUPS_OPERATOR_PARAM |
static String |
CUSTOMER_GROUPS_PARAM |
static String |
CUSTOMERS_PARAM |
static String |
EXCLUDED_CUSTOMER_GROUPS_PARAM |
static String |
EXCLUDED_USERS_PARAM |
static String |
USER_GROUP_RAO_ID_ATTRIBUTE |
static String |
USER_RAO_GROUPS_ATTRIBUTE |
static String |
USER_RAO_ID_ATTRIBUTE |
| Constructor and Description |
|---|
RuleTargetCustomersConditionTranslator() |
public static final String CUSTOMER_GROUPS_OPERATOR_PARAM
public static final String CUSTOMER_GROUPS_PARAM
public static final String CUSTOMERS_PARAM
public static final String EXCLUDED_CUSTOMER_GROUPS_PARAM
public static final String EXCLUDED_USERS_PARAM
public static final String USER_GROUP_RAO_ID_ATTRIBUTE
public static final String USER_RAO_ID_ATTRIBUTE
public static final String USER_RAO_GROUPS_ATTRIBUTE
public static final String CART_RAO_USER_ATTRIBUTE
public RuleTargetCustomersConditionTranslator()
public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) throws RuleCompilerException
RuleConditionTranslatortranslate in interface RuleConditionTranslatorcontext - - the compiler contextcondition - - the conditionconditionDefinition - - the condition definitionRuleCompilerException - if an error occurs during the translation processprotected void addTargetCustomersConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, List<String> customerGroups, List<String> customers, RuleIrGroupCondition irTargetCustomersCondition)
protected RuleIrGroupCondition getCustomerGroupConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, List<String> customerGroups)
protected void addContainsAllCustomerGroupConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, List<String> customerGroups, List<RuleIrCondition> irCustomerGroupsConditions)
protected RuleIrAttributeCondition getCustomerConditions(RuleCompilerContext context, List<String> customers)
protected void addExcludedCustomersAndCustomerGroupsConditions(RuleCompilerContext context, RuleParameterData excludedCustomerGroupsParameter, RuleParameterData excludedCustomersParameter, RuleIrGroupCondition irTargetCustomersCondition)
Copyright © 2017 SAP SE. All Rights Reserved.