SaaS CMS has officially launched! Learn more now.

Class DefaultViewManager

Handles the finding and composing of ICompositeView with IComponent.

Inheritance
System.Object
DefaultViewManager
Implements
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: 7.19.2
Syntax
[ServiceConfiguration(typeof(IViewManager), Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultViewManager : IViewManager

Constructors

DefaultViewManager(IEnumerable<IViewProvider>, IEnumerable<IViewTransformer>, IComponentManager)

Initializes a new instance of the DefaultViewManager class.

Declaration
public DefaultViewManager(IEnumerable<IViewProvider> viewProviders, IEnumerable<IViewTransformer> viewTransformers, IComponentManager componentManager)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IViewProvider> viewProviders

The view providers.

System.Collections.Generic.IEnumerable<IViewTransformer> viewTransformers

The view transformers used when transforming the views returned.

IComponentManager componentManager

The component manager providing components for populating the views.

Methods

CreateView(String, IPrincipal)

Gets the view.

Declaration
public ICompositeView CreateView(string viewName, IPrincipal principal)
Parameters
Type Name Description
System.String viewName

The name of the view.

System.Security.Principal.IPrincipal principal

The principal.

Returns
Type Description
ICompositeView

An ICompositeView populated with IComponents.

GetView(ShellModule, String)

Gets the view name.

Declaration
public ICompositeView GetView(ShellModule shellModule, string urlSegment)
Parameters
Type Name Description
ShellModule shellModule

the module

System.String urlSegment

the segment to match

Returns
Type Description
ICompositeView

The view name if exist, otherwise null.

Implements

Extension Methods