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 GetQueryBase<T>

Inheritance
System.Object
GetQueryBase<T>
Implements
EPiServer.Shell.Rest.IRestQuery<T>
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.Commerce.Shell.Rest.Query
Assembly: EPiServer.Commerce.Shell.dll
Version: 13.30.0
Syntax
public abstract class GetQueryBase<T> : IRestQuery<T> where T : ICloneable
Type Parameters
Name Description
T

Constructors

GetQueryBase(ReferenceConverter)

Declaration
public GetQueryBase(ReferenceConverter referenceConverter)
Parameters
Type Name Description
ReferenceConverter referenceConverter

Properties

Name

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

Rank

Declaration
public virtual int Rank { get; }
Property Value
Type Description
System.Int32

Methods

CanHandleQuery(IQueryParameters)

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

ExecuteQuery(IQueryParameters)

Declaration
public virtual QueryRange<T> ExecuteQuery(IQueryParameters parameters)
Parameters
Type Name Description
EPiServer.Shell.Rest.IQueryParameters parameters
Returns
Type Description
EPiServer.Shell.Rest.QueryRange<T>

Filter(IEnumerable<T>, DefaultQueryParameters)

Declaration
protected virtual IEnumerable<T> Filter(IEnumerable<T> items, DefaultQueryParameters parameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> items
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

GetItems(DefaultQueryParameters)

Declaration
protected virtual IEnumerable<T> GetItems(DefaultQueryParameters parameters)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

GetItems(ContentReference, DefaultQueryParameters)

Declaration
protected abstract IEnumerable<T> GetItems(ContentReference contentLink, DefaultQueryParameters parameters)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

GetItems(ContentReference, DefaultQueryParameters, Int32, Int32, out Int32)

Declaration
protected abstract IEnumerable<T> GetItems(ContentReference contentLink, DefaultQueryParameters parameters, int start, int numberOfRecord, out int total)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters parameters
System.Int32 start
System.Int32 numberOfRecord
System.Int32 total
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

Range(IEnumerable<T>, ItemRange)

Declaration
protected QueryRange<T> Range(IEnumerable<T> items, ItemRange requestedRange)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> items
EPiServer.Shell.Services.Rest.ItemRange requestedRange
Returns
Type Description
EPiServer.Shell.Rest.QueryRange<T>

Implements

EPiServer.Shell.Rest.IRestQuery<>