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 GetPromotionsQuery

Inheritance
System.Object
GetPromotionsQuery
Namespace: EPiServer.Commerce.Shell.Rest.Query
Assembly: EPiServer.Commerce.Shell.dll
Version: 13.30.0
Syntax
public class GetPromotionsQuery : ContentQueryBase

Constructors

GetPromotionsQuery(IContentProviderManager, IContentQueryHelper, IContentRepository, LanguageSelectorFactory, GetContentsBatchedHandler)

Declaration
public GetPromotionsQuery(IContentProviderManager contentProviderManager, IContentQueryHelper queryHelper, IContentRepository contentRepository, LanguageSelectorFactory languageSelectorFactory, GetContentsBatchedHandler getContentsBatchedHandler)
Parameters
Type Name Description
EPiServer.Core.IContentProviderManager contentProviderManager
EPiServer.Cms.Shell.UI.Rest.ContentQuery.IContentQueryHelper queryHelper
EPiServer.IContentRepository contentRepository
EPiServer.Core.LanguageSelectorFactory languageSelectorFactory
GetContentsBatchedHandler getContentsBatchedHandler

Properties

BatchSize

Declaration
protected virtual int BatchSize { get; }
Property Value
Type Description
System.Int32

Name

Declaration
public override string Name { get; }
Property Value
Type Description
System.String

Methods

CanHandleQuery(IQueryParameters)

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

GetChildrenReferences(ContentReference)

Declaration
protected virtual IList<GetChildrenReferenceResult> GetChildrenReferences(ContentReference parentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference parentLink
Returns
Type Description
System.Collections.Generic.IList<EPiServer.Core.GetChildrenReferenceResult>

GetContent(ContentQueryParameters)

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

Sort(IEnumerable<IContent>, ContentQueryParameters)

Declaration
protected override IEnumerable<IContent> Sort(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>