Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ContentQueryBase

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.Cms.Shell.UI.Rest.ContentQuery
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public abstract class ContentQueryBase : IContentQuery, IRestQuery<IContent>

Constructors

ContentQueryBase(IContentRepository, IContentQueryHelper)

Declaration
protected ContentQueryBase(IContentRepository contentRepository, IContentQueryHelper queryHelper)
Parameters
Type Name Description
IContentRepository contentRepository
IContentQueryHelper queryHelper

Properties

DisplayName

Declaration
public virtual string DisplayName { get; }
Property Value
Type Description
System.String

Name

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

PlugInAreas

Declaration
public virtual IEnumerable<string> PlugInAreas { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

Rank

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

SortOrder

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

VersionSpecific

Declaration
public virtual bool VersionSpecific { get; }
Property Value
Type Description
System.Boolean

Methods

CanHandleQuery(IQueryParameters)

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

ExecuteQuery(IQueryParameters)

Declaration
public virtual QueryRange<IContent> ExecuteQuery(IQueryParameters parameters)
Parameters
Type Name Description
IQueryParameters parameters
Returns
Type Description
QueryRange<IContent>

Filter(IEnumerable<IContent>, ContentQueryParameters)

Declaration
protected virtual IEnumerable<IContent> Filter(IEnumerable<IContent> items, ContentQueryParameters parameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IContent> items
ContentQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>

GetChildrenByType(Type, ContentReference, ILanguageSelector)

Declaration
protected virtual IEnumerable<IContent> GetChildrenByType(Type type, ContentReference parentLink, ILanguageSelector selector)
Parameters
Type Name Description
System.Type type
ContentReference parentLink
ILanguageSelector selector
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>

GetContent(ContentQueryParameters)

Declaration
protected abstract IEnumerable<IContent> GetContent(ContentQueryParameters parameters)
Parameters
Type Name Description
ContentQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>

Range(IEnumerable<IContent>, ContentQueryParameters)

Declaration
protected virtual ContentRange Range(IEnumerable<IContent> items, ContentQueryParameters parameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IContent> items
ContentQueryParameters parameters
Returns
Type Description
ContentRange

Sort(IEnumerable<IContent>, ContentQueryParameters)

Declaration
protected virtual IEnumerable<IContent> Sort(IEnumerable<IContent> items, ContentQueryParameters parameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IContent> items
ContentQueryParameters parameters
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>

Implements

Extension Methods