Class ContentSearchProviderBase<TContentData, TContentType>

Inheritance
System.Object
ContentSearchProviderBase<TContentData, TContentType>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Cms.Shell.Search
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public abstract class ContentSearchProviderBase<TContentData, TContentType> : ISearchProvider where TContentData : IContentData where TContentType : ContentType
Type Parameters
Name Description
TContentData
TContentType

Constructors

ContentSearchProviderBase(LocalizationService, ISiteDefinitionResolver, IContentTypeRepository<TContentType>, EditUrlResolver, ServiceAccessor<SiteDefinition>, LanguageResolver, UrlResolver, TemplateResolver, UIDescriptorRegistry)

Declaration
protected ContentSearchProviderBase(LocalizationService localizationService, ISiteDefinitionResolver siteDefinitionResolver, IContentTypeRepository<TContentType> contentTypeRepository, EditUrlResolver editUrlResolver, ServiceAccessor<SiteDefinition> currentSiteDefinition, LanguageResolver languageResolver, UrlResolver urlResolver, TemplateResolver templateResolver, UIDescriptorRegistry uiDescriptorRegistry)
Parameters
Type Name Description
LocalizationService localizationService
ISiteDefinitionResolver siteDefinitionResolver
IContentTypeRepository<TContentType> contentTypeRepository
EditUrlResolver editUrlResolver
ServiceAccessor<SiteDefinition> currentSiteDefinition
LanguageResolver languageResolver
UrlResolver urlResolver
TemplateResolver templateResolver
UIDescriptorRegistry uiDescriptorRegistry

Fields

ContentTypeRepository

Declaration
protected readonly IContentTypeRepository<TContentType> ContentTypeRepository
Field Value
Type Description
IContentTypeRepository<TContentType>

EditPath

Declaration
public Func<TContentData, ContentReference, string, string> EditPath
Field Value
Type Description
System.Func<TContentData, ContentReference, System.String, System.String>

LanguageResolver

Declaration
protected readonly LanguageResolver LanguageResolver
Field Value
Type Description
LanguageResolver

Properties

Area

Declaration
public abstract string Area { get; }
Property Value
Type Description
System.String

BlobResolver

Declaration
protected Injected<IBlobResolver> BlobResolver { get; set; }
Property Value
Type Description
Injected<IBlobResolver>

Category

Declaration
public abstract string Category { get; }
Property Value
Type Description
System.String

IconCssClass

Declaration
protected abstract string IconCssClass { get; }
Property Value
Type Description
System.String

LocalizationService

Declaration
protected LocalizationService LocalizationService { get; }
Property Value
Type Description
LocalizationService

SiteResolver

Declaration
protected ISiteDefinitionResolver SiteResolver { get; }
Property Value
Type Description
ISiteDefinitionResolver

ToolTipContentTypeNameResourceKey

Declaration
protected virtual string ToolTipContentTypeNameResourceKey { get; }
Property Value
Type Description
System.String

ToolTipResourceKeyBase

Declaration
protected virtual string ToolTipResourceKeyBase { get; }
Property Value
Type Description
System.String

Methods

CreatePreviewText(IContentData)

Declaration
protected virtual string CreatePreviewText(IContentData content)
Parameters
Type Name Description
IContentData content
Returns
Type Description
System.String

CreateSearchResult(TContentData)

Declaration
protected virtual SearchResult CreateSearchResult(TContentData contentData)
Parameters
Type Name Description
TContentData contentData
Returns
Type Description
SearchResult

GetEditUrl(TContentData, out Boolean)

Declaration
protected virtual string GetEditUrl(TContentData contentData, out bool onCurrentHost)
Parameters
Type Name Description
TContentData contentData
System.Boolean onCurrentHost
Returns
Type Description
System.String

GetPreviewTextFromFirstLongString(IContentData)

Declaration
protected virtual string GetPreviewTextFromFirstLongString(IContentData content)
Parameters
Type Name Description
IContentData content
Returns
Type Description
System.String

Search(Query)

Declaration
public abstract IEnumerable<SearchResult> Search(Query query)
Parameters
Type Name Description
Query query
Returns
Type Description
System.Collections.Generic.IEnumerable<SearchResult>

Implements

Extension Methods