public class RuleTargetCustomersConditionTranslator extends AbstractRuleConditionTranslator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CART_RAO_USER_ATTRIBUTE |
static java.lang.String |
CUSTOMER_GROUPS_OPERATOR_PARAM |
static java.lang.String |
CUSTOMER_GROUPS_PARAM |
static java.lang.String |
CUSTOMERS_PARAM |
static java.lang.String |
EXCLUDED_CUSTOMER_GROUPS_PARAM |
static java.lang.String |
EXCLUDED_USERS_PARAM |
static java.lang.String |
USER_GROUP_RAO_ID_ATTRIBUTE |
static java.lang.String |
USER_RAO_GROUPS_ATTRIBUTE |
static java.lang.String |
USER_RAO_ID_ATTRIBUTE |
static java.lang.String |
USER_RAO_PK_ATTRIBUTE |
AVAILABLE_QUANTITY_PARAM, BASE_PRODUCT_CODES_ATTRIBUTE, CART_RAO_CURRENCY_ATTRIBUTE, CART_RAO_ENTRIES_ATTRIBUTE, CART_RAO_TOTAL_ATTRIBUTE, CATEGORIES_OPERATOR_PARAM, CATEGORIES_PARAM, CATEGORY_RAO_CODE_ATTRIBUTE, OPERATOR_PARAM, ORDER_CONSUMED_RAO_CART_ATTRIBUTE, ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE, ORDER_ENTRY_RAO_PRODUCT_ATTRIBUTE, PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE, PRODUCT_RAO_CATEGORIES_ATTRIBUTE, PRODUCT_RAO_CODE_ATTRIBUTE, PRODUCTS_PARAM, QUANTITY_PARAM, VALUE_PARAM| Constructor and Description |
|---|
RuleTargetCustomersConditionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addContainsAllCustomerGroupConditions(RuleCompilerContext context,
CollectionOperator customerGroupsOperator,
java.util.List<java.lang.String> customerGroups,
java.util.List<RuleIrCondition> irCustomerGroupsConditions) |
protected void |
addExcludedCustomersAndCustomerGroupsConditions(RuleCompilerContext context,
RuleParameterData excludedCustomerGroupsParameter,
RuleParameterData excludedCustomersParameter,
RuleIrGroupCondition irTargetCustomersCondition) |
protected void |
addTargetCustomersConditions(RuleCompilerContext context,
CollectionOperator customerGroupsOperator,
java.util.List<java.lang.String> customerGroups,
java.util.List<java.lang.String> customers,
RuleIrGroupCondition irTargetCustomersCondition) |
protected RuleIrAttributeCondition |
getCustomerConditions(RuleCompilerContext context,
java.util.List<java.lang.String> customers) |
protected RuleIrGroupCondition |
getCustomerGroupConditions(RuleCompilerContext context,
CollectionOperator customerGroupsOperator,
java.util.List<java.lang.String> customerGroups) |
protected java.lang.String |
getUserRAOAttribute() |
protected boolean |
isUsePk() |
void |
setUsePk(boolean usePk) |
RuleIrCondition |
translate(RuleCompilerContext context,
RuleConditionData condition,
RuleConditionDefinitionData conditionDefinition)
Translates a rule condition to the intermediate representation.
|
covertToNullIfEmptyCollection, covertToNullIfEmptyMap, isRuleNonStackable, verifyAllPresent, verifyAnyPresentpublic static final java.lang.String CUSTOMER_GROUPS_OPERATOR_PARAM
public static final java.lang.String CUSTOMER_GROUPS_PARAM
public static final java.lang.String CUSTOMERS_PARAM
public static final java.lang.String EXCLUDED_CUSTOMER_GROUPS_PARAM
public static final java.lang.String EXCLUDED_USERS_PARAM
public static final java.lang.String USER_GROUP_RAO_ID_ATTRIBUTE
public static final java.lang.String USER_RAO_ID_ATTRIBUTE
public static final java.lang.String USER_RAO_PK_ATTRIBUTE
public static final java.lang.String USER_RAO_GROUPS_ATTRIBUTE
public static final java.lang.String CART_RAO_USER_ATTRIBUTE
public RuleTargetCustomersConditionTranslator()
public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition)
RuleConditionTranslatorcontext - - the compiler contextcondition - - the conditionconditionDefinition - - the condition definitionprotected void addTargetCustomersConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, java.util.List<java.lang.String> customerGroups, java.util.List<java.lang.String> customers, RuleIrGroupCondition irTargetCustomersCondition)
protected RuleIrGroupCondition getCustomerGroupConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, java.util.List<java.lang.String> customerGroups)
protected void addContainsAllCustomerGroupConditions(RuleCompilerContext context, CollectionOperator customerGroupsOperator, java.util.List<java.lang.String> customerGroups, java.util.List<RuleIrCondition> irCustomerGroupsConditions)
protected RuleIrAttributeCondition getCustomerConditions(RuleCompilerContext context, java.util.List<java.lang.String> customers)
protected void addExcludedCustomersAndCustomerGroupsConditions(RuleCompilerContext context, RuleParameterData excludedCustomerGroupsParameter, RuleParameterData excludedCustomersParameter, RuleIrGroupCondition irTargetCustomersCondition)
protected java.lang.String getUserRAOAttribute()
protected boolean isUsePk()
public void setUsePk(boolean usePk)
Copyright © 2018 SAP SE. All Rights Reserved.