Interface IPersonalizedViewSettingsRepository
Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 10.10.4Syntax
public interface IPersonalizedViewSettingsRepository
Methods
Delete(IPrincipal, String)
Deletes the settings object for the specified user and view thus restoring the view settings to system default.
Declaration
void Delete(IPrincipal principal, string viewName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Principal.IPrincipal | principal | The principal to load settings for. |
| System.String | viewName | Name of the view to load settings for. |
Load(IPrincipal)
Loads all settings owned by a specific user.
Declaration
IEnumerable<PersonalizedViewSettings> Load(IPrincipal principal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Principal.IPrincipal | principal | The principal to load settings for. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<PersonalizedViewSettings> | A collection of settings for the supplied principal |
Load(IPrincipal, String)
Load settings for a specific view owned by the supplied user..
Declaration
PersonalizedViewSettings Load(IPrincipal principal, string viewName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Principal.IPrincipal | principal | The principal to load settings for. |
| System.String | viewName | Name of the view to load settings for. |
Returns
| Type | Description |
|---|---|
| PersonalizedViewSettings | Settings for a specific view |
Save(PersonalizedViewSettings)
Save the specified settings to the backing store.
Declaration
void Save(PersonalizedViewSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonalizedViewSettings | settings | The settings to persist. |