Class FreetextResultProviderBase<RootExtender, OwnerTableInfo>
Base class for all providers that return free text search results (not counts, but the actual contacts or whatever)
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public abstract class FreetextResultProviderBase<RootExtender, OwnerTableInfo> : TypedQueryProviderBase<ArchiveRow, RootExtender>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveTypedProvider<ArchiveRow>, IArchiveTypedProviderBase, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities, IPlugin where RootExtender : IArchiveExtender, new()
where OwnerTableInfo : TableInfo
Type Parameters
Name | Description |
---|---|
RootExtender | Data extender that will fetch the actual results |
OwnerTableInfo | Owner table/entity in the freetext system |
Remarks
This class handles all the functionality, and is simply parameterized with the extender that is to fetch data, and the (single!) tableinfo that represents the owner entity we are searching on behalf of. A maximum of 1000 rows is fetched, subject to the usual Sentry filtering.
Use the 'searchwords' restriction with one or more words to specify what to search for. The operator is ignored, the freetext search will apply the 'begins' operator to each word and 'AND' between them.
Constructors
FreetextResultProviderBase()
Declaration
public FreetextResultProviderBase()
Fields
_colWords
Declaration
protected ArchiveColumnInfo _colWords
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
Methods
GetAvailableEntities()
Declaration
public override List<ArchiveRowTypeInfo> GetAvailableEntities()
Returns
Type | Description |
---|---|
List<ArchiveRowTypeInfo> |
Overrides
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Override: Add link hint, corresponding to row entity
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | |
ArchiveRow | row |
Overrides
PostProcessQuery()
Declaration
public override void PostProcessQuery()
Overrides
SetRestriction(ArchiveRestrictionInfo[])
Override: Extract search word reststrictions
Declaration
public override bool SetRestriction(params ArchiveRestrictionInfo[] restrictions)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRestrictionInfo[] | restrictions |
Returns
Type | Description |
---|---|
Boolean |