UserFilterStore

Provides storage services for user filter.

Namespace:
Inetdev.Commons
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object

Constructors

UserFilterStore

Default constructor

Signature:
public Void UserFilterStore()

Methods

ClearFilterAsync

Clears a filter for a page and a user.

Signature:
public Task<Int32> ClearFilterAsync(pageId, userId)
Returns

Quantity of record effectively deleted.

Parameters
Name Type Summary
pageId String Page id.
userId String User id.
Exceptions
Type Summary
ArgumentNullOrEmptyException

Thrown when pageId is null or empty.

-or- userId is null or empty.

LoadAndMergeFilterAsync

Loads a stored filter and merge it data into listing.

Signature:
public Task LoadAndMergeFilterAsync(pageId, userId, listing)
Parameters
Name Type Summary
pageId String Page id.
userId String User id.
listing Listing<T> A Listing into which the filter is merged.
Exceptions
Type Summary
ArgumentNullException Thrown when listing is null.
ArgumentNullOrEmptyException

Thrown when pageId is null or empty.

-or- userId is null or empty.

SaveFilterAsync

Store filter data.

Signature:
public Task SaveFilterAsync(pageId, userId, data)
Parameters
Name Type Summary
pageId String Page id.
userId String User id.
data Object Data to be stored.
Exceptions
Type Summary
ArgumentNullException Thrown when data is null.
ArgumentNullOrEmptyException

Thrown when pageId is null or empty.

-or- userId is null or empty.