C# Class OxxCommerceStarterKit.Web.Business.Search.FindProductUiSearchProvider

Inheritance: ISearchProvider
Show file Open project: episerver/Commerce-Demo-Kit

Protected Properties

Property Type Description
_log ILogger

Public Methods

Method Description
FindProductUiSearchProvider ( EPiServer.Framework.Localization.LocalizationService localizationService, ICatalogSystem catalogSystem ) : System.Collections.Generic
FindProductUiSearchProvider ( EPiServer.Framework.Localization.LocalizationService localizationService, ICatalogSystem catalogSystem, ReferenceConverter referenceConverter, IContentLoader contentLoader ) : System.Collections.Generic
Search ( Query query ) : IEnumerable

Executes a catalog search using EPiServer Find. This search works from the Catalog UI, the global search and

This implementation is not generic, since it knows all about the catalog model, and how the products are indexed. Because of this, we can create a good product search for editors.

Protected Methods

Method Description
GetEditUrl ( EPiServer.Core.ContentReference contentLink ) : string

Gets the edit URL for the content which should work from the different searches

This implementation has knowledge of the UI internals, which should really have been solved by an API call.

Method Details

FindProductUiSearchProvider() public method

public FindProductUiSearchProvider ( EPiServer.Framework.Localization.LocalizationService localizationService, ICatalogSystem catalogSystem ) : System.Collections.Generic
localizationService EPiServer.Framework.Localization.LocalizationService
catalogSystem ICatalogSystem
return System.Collections.Generic

FindProductUiSearchProvider() public method

public FindProductUiSearchProvider ( EPiServer.Framework.Localization.LocalizationService localizationService, ICatalogSystem catalogSystem, ReferenceConverter referenceConverter, IContentLoader contentLoader ) : System.Collections.Generic
localizationService EPiServer.Framework.Localization.LocalizationService
catalogSystem ICatalogSystem
referenceConverter ReferenceConverter
contentLoader IContentLoader
return System.Collections.Generic

GetEditUrl() protected method

Gets the edit URL for the content which should work from the different searches
This implementation has knowledge of the UI internals, which should really have been solved by an API call.
protected GetEditUrl ( EPiServer.Core.ContentReference contentLink ) : string
contentLink EPiServer.Core.ContentReference The content link.
return string

Search() public method

Executes a catalog search using EPiServer Find. This search works from the Catalog UI, the global search and
This implementation is not generic, since it knows all about the catalog model, and how the products are indexed. Because of this, we can create a good product search for editors.
public Search ( Query query ) : IEnumerable
query Query The query to execute
return IEnumerable

Property Details

_log protected property

protected ILogger _log
return ILogger