London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class GetSalesCampaignQueryBase

Inheritance
System.Object
GetSalesCampaignQueryBase
Namespace: EPiServer.Commerce.Shell.Rest.Query
Assembly: EPiServer.Commerce.Shell.dll
Version: 13.30.0
Syntax
public abstract class GetSalesCampaignQueryBase : GetChildrenQuery

Constructors

GetSalesCampaignQueryBase(IContentQueryHelper, IContentRepository, LanguageSelectorFactory, CampaignInfoExtractor, FacetQueryHandler)

Declaration
public GetSalesCampaignQueryBase(IContentQueryHelper queryHelper, IContentRepository contentRepository, LanguageSelectorFactory languageSelectorFactory, CampaignInfoExtractor campaignInfoExtractor, FacetQueryHandler facetQueryHandler)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.ContentQuery.IContentQueryHelper queryHelper
EPiServer.IContentRepository contentRepository
EPiServer.Core.LanguageSelectorFactory languageSelectorFactory
CampaignInfoExtractor campaignInfoExtractor
FacetQueryHandler facetQueryHandler

Fields

_campaignInfoExtractor

Declaration
protected readonly CampaignInfoExtractor _campaignInfoExtractor
Field Value
Type Description
CampaignInfoExtractor

_contentRepository

Declaration
protected readonly IContentRepository _contentRepository
Field Value
Type Description
EPiServer.IContentRepository

Properties

FacetFunctions

Declaration
protected abstract IEnumerable<GetContentsByFacet> FacetFunctions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<GetContentsByFacet>

Methods

CanHandleQuery(IQueryParameters)

Declaration
public override bool CanHandleQuery(IQueryParameters parameters)
Parameters
Type Name Description
EPiServer.Shell.Rest.IQueryParameters parameters
Returns
Type Description
System.Boolean

Filter(IEnumerable<IContent>, ContentQueryParameters)

Declaration
protected override IEnumerable<IContent> Filter(IEnumerable<IContent> items, ContentQueryParameters parameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.Core.IContent> items
EPiServer.Cms.Shell.UI.Rest.ContentQuery.ContentQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Core.IContent>

GetCampaignRoot()

Declaration
protected virtual ContentReference GetCampaignRoot()
Returns
Type Description
EPiServer.Core.ContentReference