Class PersonalizationViewTransformer

Transforms a view according to a users settings.

Inheritance
System.Object
PersonalizationViewTransformer
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: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[ViewTransformer]
public class PersonalizationViewTransformer : IViewTransformer, ISortable

Constructors

PersonalizationViewTransformer(IPersonalizedViewSettingsRepository, IComponentManager)

Initializes a new instance of the PersonalizationViewTransformer class.

Declaration
public PersonalizationViewTransformer(IPersonalizedViewSettingsRepository settingsRepository, IComponentManager componentManager)
Parameters
Type Name Description
IPersonalizedViewSettingsRepository settingsRepository

The settings repository.

IComponentManager componentManager

The component manager.

Properties

SortOrder

Used to select the order of execution when there are several IViewTransformers.

Declaration
public int SortOrder { get; }
Property Value
Type Description
System.Int32

PersonalizationViewTransformer has a sort order of 10000.

Methods

TransformView(ICompositeView, IPrincipal)

Transforms the view according to the rules for the transformer.

Declaration
public void TransformView(ICompositeView view, IPrincipal principal)
Parameters
Type Name Description
ICompositeView view

The view.

System.Security.Principal.IPrincipal principal

The principal.

Implements