Class SmartSearchManager
- Namespace
- Dynamicweb.Smart
Search
- Assembly
- Dynamicweb.Core.dll
Represents smart search manager
- Inheritance
-
Smart
Search Manager
- Inherited Members
Methods
CompareDataFields(SmartSearchRuleField, SmartSearchRuleField)
Compare data fields for sorting
Parameters
xSmartSearch Rule Field The first object to compare
ySmartSearch Rule Field The second object to compare
Returns
DeleteSmartSearch(Guid)
Deletes the smart search.
Parameters
idGuidThe ID.
GetAllDataProvidersInfo(bool)
Gets all data providers info.
Parameters
isAutoTranslateboolif set to
trueis auto translate.
Returns
GetAllSmartSearches(bool, int)
Gets all smart searches.
Parameters
Returns
GetDataProviderDescription(string)
Gets the data provider description.
Parameters
providerTypeNamestringName of the provider type.
Returns
GetDataProviderInstanceObject(string)
Gets the data provider instance object.
Parameters
providerTypeNamestringName of the provider type.
Returns
GetDataProviderInstance<T>(string)
Gets the data provider instance.
public static SmartSearchDataProvider<T>? GetDataProviderInstance<T>(string providerTypeName) where T : class
Parameters
providerTypeNamestringName of the provider type.
Returns
Type Parameters
T
GetDefaultConditionOptions(SmartSearchRuleControlType)
Get default operators for control type
public static List<SmartSearchRuleOperator> GetDefaultConditionOptions(SmartSearchRuleControlType controlType)
Parameters
controlTypeSmartSearch Rule Control Type The control type
Returns
GetRulesConditionOptions(string)
Get the conditions for the provider
Parameters
dataProviderTypeNamestringData provider type name
Returns
GetRulesDataField(string, string)
Get the rules data field for the provider by id
Parameters
Returns
GetRulesDataFields(string)
Get the rules data fields for the provider
Parameters
dataProviderTypeNamestringData provider type name
Returns
GetSmartSearchById(Guid)
Gets the smart search by id.
Parameters
idGuidThe smart search ID.
Returns
GetSmartSearchFileName(SmartSearch)
Gets the name of the smart search file.
Parameters
smartSearchSmartSearch The smart search.
Returns
GetSmartSearchFileName(string)
Gets the name of the smart search file.
Parameters
smartSearchNamestringName of the smart search.
Returns
GetSmartSearchesByDataProvider(string, bool, int)
Gets the smart searches by data provider.
public static SmartSearchCollection GetSmartSearchesByDataProvider(string dataProviderName, bool hidden = false, int userId = -1)
Parameters
dataProviderNamestringName of the data provider.
hiddenboolif set to
truereturns hidden smart searches.userIdintThe user ID.
Returns
GetSortingDataFields(string)
Get data fields for sorting
Parameters
dataProviderTypeNamestringData provider type name
Returns
GetUserProviderType()
Gets the type of the user provider.
Returns
InitCaches()
Initialize the caches for smart searches and data providers
IsUniqueSmartSearchFile(SmartSearch)
Determines whether is unique smart search file.
Parameters
smartSearchSmartSearch The smart search.
Returns
- bool
trueis unique smart search file otherwise,false.
IsUniqueSmartSearchFile(SmartSearch, string)
Determines whether is unique smart search file.
Parameters
smartSearchSmartSearch The smart search.
folderPathstringThe path to the folder to look, relative to the provider folder
Returns
- bool
trueis unique smart search file otherwise,false.
RemoveIllegalCharacters(string)
Removes illegal characters.
Parameters
fileNamestringName of the file.
Returns
SaveSmartSearch(SmartSearch)
Saves the smart search.
Parameters
smartSearchSmartSearch The smart search instance.
SaveSmartSearch(SmartSearch, string)
Saves the smart search.
Parameters
smartSearchSmartSearch The smart search instance.
pathstringThe path