Class UserSmartSearchDataProvider
- Assembly
- Dynamicweb.Core.dll
A smart search data provider. Inherit from ConfigurableAddIn class
[AddInLabel("Users")]
[AddInDescription("Users data provider")]
public class UserSmartSearchDataProvider : SmartSearchDataProvider<IEnumerable<User>>, ICloneable
- Inheritance
-
UserSmartSearchDataProvider
- Implements
- Inherited Members
Constructors
UserSmartSearchDataProvider()
public UserSmartSearchDataProvider()
Methods
ConvertToRuleField(CustomField)
protected static SmartSearchRuleField? ConvertToRuleField(CustomField field)
Parameters
field
CustomField
Returns
GetFieldDataSource(CustomFieldOptions)
protected static ISmartSearchRuleFieldDatasource GetFieldDataSource(CustomFieldOptions fieldOptions)
Parameters
fieldOptions
CustomFieldOptions
Returns
GetPredifinedDataFields()
protected static List<SmartSearchRuleField> GetPredifinedDataFields()
Returns
GetUserCustomDataFields()
protected static List<SmartSearchRuleField> GetUserCustomDataFields()
Returns
OnExecuteQuery(int, SmartSearchRuleGroupCollection, SmartSearchSortInfo[])
Called when execute smart search query.
protected override IEnumerable<User> OnExecuteQuery(int ResultsLimit, SmartSearchRuleGroupCollection QueryRules, SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
intThe results limit.
QueryRules
SmartSearchRuleGroupCollectionThe query rules.
SortParams
SmartSearchSortInfo[]The sort params.
Returns
OnGetCount(int, SmartSearchRuleGroupCollection)
Called when get count of the query results.
protected override int OnGetCount(int ResultsLimit, SmartSearchRuleGroupCollection QueryRules)
Parameters
ResultsLimit
intThe results limit.
QueryRules
SmartSearchRuleGroupCollectionThe query rules.
Returns
OnGetPreviewData(int, SmartSearchRuleGroupCollection, SmartSearchSortInfo[])
Exec query and fill data fields
protected override DataTable OnGetPreviewData(int ResultsLimit, SmartSearchRuleGroupCollection QueryRules, SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
intQueryRules
SmartSearchRuleGroupCollectionSortParams
SmartSearchSortInfo[]
Returns
OnGetRulesDataFields()
Get data fields for rules
protected override List<SmartSearchRuleField> OnGetRulesDataFields()
Returns
OnGetSortingDataFields()
Get data fields for sorting
protected override List<SmartSearchRuleField> OnGetSortingDataFields()