Class ExpressionManager

Expression manager acts as proxy between methods that call data layer functions and the facade layer. The methods here check if the appropriate security is set and that the data is cached.

Inheritance
System.Object
ExpressionManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class ExpressionManager

Methods

GetExpressionBySegmentDto(Int32)

Gets the expression dto.

Declaration
public static ExpressionDto GetExpressionBySegmentDto(int segmentId)
Parameters
Type Name Description
System.Int32 segmentId

The segment id.

Returns
Type Description
ExpressionDto

GetExpressionDto()

Gets the expression dto.

Declaration
public static ExpressionDto GetExpressionDto()
Returns
Type Description
ExpressionDto

GetExpressionDto(Int32)

Gets the Expression dto, checks permissions and caches results.

Declaration
public static ExpressionDto GetExpressionDto(int expressionId)
Parameters
Type Name Description
System.Int32 expressionId

The expression id.

Returns
Type Description
ExpressionDto

GetExpressionDto(String)

Gets the ExpressionDto by category. The supported categories now are "Promotion", "Segment", "Policy".

Declaration
public static ExpressionDto GetExpressionDto(string category)
Parameters
Type Name Description
System.String category

The category.

Returns
Type Description
ExpressionDto

SaveExpression(ExpressionDto)

Saves the expression.

Declaration
public static void SaveExpression(ExpressionDto dto)
Parameters
Type Name Description
ExpressionDto dto

The dto.