C# Class Sdl.Web.Modules.ContextExpressions.ContextExpressionEvaluator

Conditional Entity Evaluator which evaluates Context Expression Conditions set as ViewModel.ExtensionData by the ContextExpressionModelBuilder.
Inheritance: IConditionalEntityEvaluator
Datei anzeigen Open project: sdl/dxa-modules

Public Methods

Method Description
IncludeEntity ( EntityModel entity, Sdl.Web.Common.Configuration.Localization localization ) : bool

Determines whether a given Entity Model should be included based on the conditions specified on the Entity Model and the context.

Private Methods

Method Description
EvaluateContextExpressionClaims ( string names, bool include, object>.IDictionary contextClaims ) : bool
GetCachedContextClaims ( Sdl.Web.Common.Configuration.Localization localization ) : object>.IDictionary

Method Details

IncludeEntity() public method

Determines whether a given Entity Model should be included based on the conditions specified on the Entity Model and the context.
public IncludeEntity ( EntityModel entity, Sdl.Web.Common.Configuration.Localization localization ) : bool
entity Sdl.Web.Common.Models.EntityModel The Entity Model to be evaluated.
localization Sdl.Web.Common.Configuration.Localization The context Localization
return bool