November Happy Hour will be moved to Thursday December 5th.

Class ComponentStore

Inheritance
System.Object
ComponentStore
Implements
System.Web.Mvc.Async.IAsyncController
System.Web.Mvc.IController
System.Web.Mvc.Async.IAsyncManagerContainer
Namespace: EPiServer.Shell.UI.Rest
Assembly: EPiServer.Shell.UI.dll
Version: 11.20.7
Syntax
[RestStore("component")]
public class ComponentStore : RestControllerBase, IAsyncController, IController, IAsyncManagerContainer

Constructors

ComponentStore(IComponentManager, IViewManager, PersonalizedViewSettingsManager)

Declaration
public ComponentStore(IComponentManager componentManager, IViewManager viewManager, PersonalizedViewSettingsManager personalizedViewSettingsManager)
Parameters
Type Name Description
IComponentManager componentManager
IViewManager viewManager
PersonalizedViewSettingsManager personalizedViewSettingsManager

Methods

Delete(Guid, String)

Declaration
public RestResult Delete(Guid id, string viewName)
Parameters
Type Name Description
System.Guid id
System.String viewName
Returns
Type Description
RestResult

Get(String, Nullable<Guid>, Nullable<Guid>, String)

Declaration
public RestResult Get(string viewName, Guid? parentId, Guid? componentId, string componentTypeName)
Parameters
Type Name Description
System.String viewName
System.Nullable<System.Guid> parentId
System.Nullable<System.Guid> componentId
System.String componentTypeName
Returns
Type Description
RestResult

Post(ComponentViewModel)

Declaration
public RestResult Post(ComponentViewModel data)
Parameters
Type Name Description
ComponentViewModel data
Returns
Type Description
RestResult

PrepareForSaveRecursive(IComponent)

Declaration
protected void PrepareForSaveRecursive(IComponent component)
Parameters
Type Name Description
IComponent component

Put(ComponentViewModel)

Declaration
public RestResult Put(ComponentViewModel data)
Parameters
Type Name Description
ComponentViewModel data
Returns
Type Description
RestResult

Save(IEnumerable<ComponentViewModel>)

Declaration
public RestResult Save(IEnumerable<ComponentViewModel> components)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ComponentViewModel> components
Returns
Type Description
RestResult

UpdateSettings(IComponent)

Declaration
protected void UpdateSettings(IComponent component)
Parameters
Type Name Description
IComponent component

Implements

System.Web.Mvc.Async.IAsyncController
System.Web.Mvc.IController
System.Web.Mvc.Async.IAsyncManagerContainer

Extension Methods