Class CustomerFilterExpressionProvider

Represents Customer segments filter expression provider.

Inheritance
System.Object
CustomerFilterExpressionProvider
Inherited Members
Namespace: Mediachase.Commerce.Marketing.Validators.Providers
Assembly: Mediachase.Commerce.Marketing.Validators.dll
Version: 10.8.0
Syntax
public class CustomerFilterExpressionProvider : PromotionFilterExpressionProvider

Constructors

CustomerFilterExpressionProvider()

Initializes a new instance of the CustomerFilterExpressionProvider class.

Declaration
public CustomerFilterExpressionProvider()

Properties

AddressDefs

Address definitions.

Declaration
protected IEnumerable<ElementDefs> AddressDefs { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ElementDefs>

AddressMethodDefs

Address method definitions.

Declaration
protected IEnumerable<ElementDefs> AddressMethodDefs { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ElementDefs>

ConditionCustomerGroupMethodDefs

Gets or sets the condition customer group condition.

Declaration
protected IEnumerable<ElementDefs> ConditionCustomerGroupMethodDefs { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ElementDefs>

ContactDefs

Contact definitions.

Declaration
protected IEnumerable<ElementDefs> ContactDefs { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ElementDefs>

Methods

CreateFilterNodes()

Initializes the provider.

Declaration
protected override void CreateFilterNodes()
Overrides

GetElementConditions(String, FilterExpressionNode)

Gets the element conditions.

Declaration
public override ConditionElementCollection GetElementConditions(string expressionPlace, FilterExpressionNode node)
Parameters
Type Name Description
System.String expressionPlace

The expression place.

FilterExpressionNode node

The node.

Returns
Type Description
ConditionElementCollection
Overrides

GetElementMethods(String, FilterExpressionNode)

Gets the element methods.

Declaration
public override MethodElementCollection GetElementMethods(string expressionPlace, FilterExpressionNode node)
Parameters
Type Name Description
System.String expressionPlace

The expression place.

FilterExpressionNode node

The node.

Returns
Type Description
MethodElementCollection
Overrides

GetNewElements(String, FilterExpressionNode)

Gets the new elements.

Declaration
public override FilterExpressionNodeCollection GetNewElements(string expressionPlace, FilterExpressionNode parent)
Parameters
Type Name Description
System.String expressionPlace

The expression place.

FilterExpressionNode parent

The parent.

Returns
Type Description
FilterExpressionNodeCollection
Overrides

IsStringCondition(ElementDefs)

Determines whether a given definition is a text condition.

Declaration
protected override bool IsStringCondition(ElementDefs conditionDef)
Parameters
Type Name Description
ElementDefs conditionDef

The condition definition.

Returns
Type Description
System.Boolean
Overrides

LoadFilters(String, String)

Loads the filters.

Declaration
public override FilterExpressionNodeCollection LoadFilters(string expressionPlace, string expressionKey)
Parameters
Type Name Description
System.String expressionPlace

The expression place.

System.String expressionKey

The expression key.

Returns
Type Description
FilterExpressionNodeCollection
Overrides

RegisterProviderElementDefinitions()

Registers the provider element definitions.

Declaration
protected override void RegisterProviderElementDefinitions()
Overrides

SaveFilters(String, String, FilterExpressionNodeCollection)

Saves the filters.

Declaration
public override void SaveFilters(string expressionPlace, string expressionKey, FilterExpressionNodeCollection filters)
Parameters
Type Name Description
System.String expressionPlace

The expression place.

System.String expressionKey

The expression key, should be passed in the format of segmentid:expressionid

FilterExpressionNodeCollection filters

The filters.

Overrides

UpdateCustomerGroupConditions()

Updates the customer group conditions.

Declaration
public void UpdateCustomerGroupConditions()