Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class DefaultCustomViewSettingsService

Default implement of ICustomViewSettingsService.

Inheritance
System.Object
DefaultCustomViewSettingsService
Namespace: EPiServer.Commerce.CustomViewSetting.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class DefaultCustomViewSettingsService : Object, ICustomViewSettingsService

Constructors

DefaultCustomViewSettingsService(CustomViewSettingsDB, FilterExpressionProvider)

Initializes a new instance of the DefaultCustomViewSettingsService class.

Declaration
public DefaultCustomViewSettingsService(CustomViewSettingsDB customViewSettingsDB, FilterExpressionProvider provider)
Parameters
Type Name Description
CustomViewSettingsDB customViewSettingsDB

The custom view settings.

FilterExpressionProvider provider

The filter expression provider

Methods

AddCustomViewSettings(CustomViewSettings)

Adds a custom view settings.

Declaration
public int AddCustomViewSettings(CustomViewSettings customViewSettings)
Parameters
Type Name Description
CustomViewSettings customViewSettings

The custom view settings.

Returns
Type Description
System.Int32

The view identifier.

DeleteCustomViewSettings(Int32)

Deletes a custom view settings.

Declaration
public void DeleteCustomViewSettings(int viewId)
Parameters
Type Name Description
System.Int32 viewId

The custom view id.

DeleteCustomViewSettings(String, String)

Deletes custom view settings by table name.

Declaration
public void DeleteCustomViewSettings(string userName, string tableName)
Parameters
Type Name Description
System.String userName

The user name.

System.String tableName

The table name.

GetCustomViewSettings(Int32, String)

Gets the custom view settings.

Declaration
public CustomViewSettings GetCustomViewSettings(int viewId, string userName)
Parameters
Type Name Description
System.Int32 viewId

The view id.

System.String userName

The user name.

Returns
Type Description
CustomViewSettings

A custom view settings.

GetCustomViewSettings_RecentView(String)

Gets list of recent view for custom column settings.

Declaration
public IEnumerable<CustomViewSettings_RecentView> GetCustomViewSettings_RecentView(string userName)
Parameters
Type Name Description
System.String userName

The user name.

Returns
Type Description
System.Collections.Generic.IEnumerable<CustomViewSettings_RecentView>

A list of recent view for custom column settings.

ListConditions(String, String)

Get list of conditions.

Declaration
public ConditionElementCollection ListConditions(string tableName, string fieldName)
Parameters
Type Name Description
System.String tableName

The table name.

System.String fieldName

The field name.

Returns
Type Description
ConditionElementCollection

A list of conditions.

ListCustomViewSettings(String, String)

Gets list of custom view settings.

Declaration
public IEnumerable<CustomViewSettings> ListCustomViewSettings(string userName, string tableName)
Parameters
Type Name Description
System.String userName

The user name.

System.String tableName

The table name.

Returns
Type Description
System.Collections.Generic.IEnumerable<CustomViewSettings>

A list of custom view settings.

RemoveFilters(String, String)

Removes filters by table name and field name.

Declaration
public void RemoveFilters(string tableName, string fieldName)
Parameters
Type Name Description
System.String tableName

The table name.

System.String fieldName

The field name.

UpdateCustomViewSettings(CustomViewSettings)

Updates a custom view settings.

Declaration
public void UpdateCustomViewSettings(CustomViewSettings customViewSettings)
Parameters
Type Name Description
CustomViewSettings customViewSettings

The custom view settings.

UpdateCustomViewSettings_RecentView(Int32, String, String)

Update recent view.

Declaration
public void UpdateCustomViewSettings_RecentView(int viewId, string tableName, string userName)
Parameters
Type Name Description
System.Int32 viewId

The viewId.

System.String tableName

The table name

System.String userName

The user name.

Implements