Class GetPromotionsQuery
Inheritance
System.Object
GetPromotionsQuery
Assembly: EPiServer.Commerce.Shell.dll
Version: 14.26.0
public class GetPromotionsQuery : ContentQueryBase
Constructors
GetPromotionsQuery(IContentProviderManager, IContentQueryHelper, IContentRepository, GetContentsBatchedHandler, CampaignInfoExtractor, FacetFilterProvider)
Declaration
public GetPromotionsQuery(IContentProviderManager contentProviderManager, IContentQueryHelper queryHelper, IContentRepository contentRepository, GetContentsBatchedHandler getContentsBatchedHandler, CampaignInfoExtractor campaignInfoExtractor, FacetFilterProvider facetFilterProvider)
Parameters
Type |
Name |
Description |
EPiServer.Core.IContentProviderManager |
contentProviderManager |
|
EPiServer.Cms.Shell.UI.Rest.ContentQuery.IContentQueryHelper |
queryHelper |
|
EPiServer.IContentRepository |
contentRepository |
|
GetContentsBatchedHandler |
getContentsBatchedHandler |
|
CampaignInfoExtractor |
campaignInfoExtractor |
|
FacetFilterProvider |
facetFilterProvider |
|
Properties
Declaration
protected virtual int BatchSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
protected IEnumerable<GetContentsByFacet> FacetFunctions { get; }
Property Value
Declaration
public override string Name { get; }
Property Value
Type |
Description |
System.String |
|
Methods
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> |
|
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> |
|