Class PersonalizedViewSettingsRepository
Repository for PersonalizedViewSettings objects
Inheritance
System.Object
PersonalizedViewSettingsRepository
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: 9.12.2Syntax
public class PersonalizedViewSettingsRepository : IPersonalizedViewSettingsRepository
Constructors
PersonalizedViewSettingsRepository(DynamicDataStoreFactory, IComponentManager)
Initializes a new instance of the PersonalizedViewSettingsRepository class.
Declaration
public PersonalizedViewSettingsRepository(DynamicDataStoreFactory dynamicDataStoreFactory, IComponentManager componentManager)
Parameters
Type | Name | Description |
---|---|---|
DynamicDataStoreFactory | dynamicDataStoreFactory | The dynamic data store factory. |
IComponentManager | componentManager | The component manager that is used to create components. |
Methods
Delete(IPrincipal, String)
Deletes the settings object for the specified user and view thus restoring the view settings to system default.
Declaration
public void Delete(IPrincipal principal, string viewName)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | The principal. |
System.String | viewName | Name of the view. |
Load(IPrincipal)
Loads the specified principal.
Declaration
public IEnumerable<PersonalizedViewSettings> Load(IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | The principal. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalizedViewSettings> | All view settings for the specified user. |
Load(IPrincipal, String)
Loads settings given specified view name.
Declaration
public PersonalizedViewSettings Load(IPrincipal principal, string viewName)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | The principal. |
System.String | viewName | Name of the view. |
Returns
Type | Description |
---|---|
PersonalizedViewSettings |
Save(PersonalizedViewSettings)
Saves the specified settings.
Declaration
public void Save(PersonalizedViewSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PersonalizedViewSettings | settings | The settings. |