Class PromotionFilterExpressionProvider

Represents Promotion filter expression provider. This provider will be used to construct windows workflow foundation rules using the Expression Builder User Interface DHTML Control.

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

Constructors

PromotionFilterExpressionProvider()

Declaration
public PromotionFilterExpressionProvider()

Properties

CollectionMethodDefs

Gets or sets the collection method defs.

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

The collection method defs.

ConditionShippingMethodDefs

Gets or sets the condition shipping method.

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

The condition shipping method.

LineItemDefs

Definitions maping fields MC LineItem -> PromotionEntry

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

LineItemWithAddressDefs

Gets or sets the line item with address defs.

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

The line item with address defs.

MethodAllDef

Gets or sets the method all def.

Declaration
protected ElementDefs MethodAllDef { get; }
Property Value
Type Description
ElementDefs

The method all def.

MethodAnyDef

Gets or sets the method any def.

Declaration
protected ElementDefs MethodAnyDef { get; }
Property Value
Type Description
ElementDefs

The method any def.

MethodCountDef

Gets or sets the method count def.

Declaration
protected ElementDefs MethodCountDef { get; }
Property Value
Type Description
ElementDefs

The method count def.

MethodSumDef

Gets or sets the method sum def.

Declaration
protected ElementDefs MethodSumDef { get; }
Property Value
Type Description
ElementDefs

The method sum def.

OrderAddressDefs

Definitions maping fields MC OrderAddress -> indexed property PromotionEntry

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

OrderFormDefs

Gets or sets the order form defs.

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

The order form defs.

RunningTotalDefs

Gets or sets the running total defs.

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

The running total defs.

ShipmentChildDefs

Definitions used exclusively as child defs.

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

ShipmentDefs

Gets or sets the shipment defs.

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

The shipment defs.

ShipmentOrderFormDefs

Gets or sets the shipment order form defs.

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

The shipment order form defs.

ShoppingCartDefs

Gets or sets the shopping cart defs.

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

The shopping cart defs.

TargetLineItemDefs

Definitions maping fields TargetLineItem -> PromotionEntry

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

Methods

ConvertNodeToStringExpression(FilterExpressionNode)

Converts the node to string expression.

Declaration
protected override string ConvertNodeToStringExpression(FilterExpressionNode node)
Parameters
Type Name Description
FilterExpressionNode node

The node.

Returns
Type Description
System.String
Overrides

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
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

SaveExpression(RuleSet, Int32)

Saves the expression.

Declaration
protected virtual void SaveExpression(RuleSet set, int expressionId)
Parameters
Type Name Description
System.Workflow.Activities.Rules.RuleSet set

The set.

System.Int32 expressionId

The expression id.

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