Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class ContentListDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load information from database about an entire list of PageData objects.

Inheritance
System.Object
ContentListDB
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.DataAccess.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentListDB : ContentDB

Constructors

ContentListDB(ServiceAccessor<IDatabaseExecutor>, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, IContentFactory, IBlobFactory, PropertyValueConverterFactory, IContentProviderManager, DatabaseDateTimeHandler, ContentOptions, IContentTypeBaseResolver)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public ContentListDB(ServiceAccessor<IDatabaseExecutor> databaseHandlerAccessor, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDataFactory propertyDataFactory, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, IContentFactory contentFactory, IBlobFactory blobFactory, PropertyValueConverterFactory propertyValueConverterFactory, IContentProviderManager contentProviderManager, DatabaseDateTimeHandler dateTimeHandler, ContentOptions contentOptions, IContentTypeBaseResolver contentTypeBaseResolver)
Parameters
Type Name Description
ServiceAccessor<IDatabaseExecutor> databaseHandlerAccessor
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDataFactory propertyDataFactory
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
IContentFactory contentFactory
IBlobFactory blobFactory
PropertyValueConverterFactory propertyValueConverterFactory
IContentProviderManager contentProviderManager
DatabaseDateTimeHandler dateTimeHandler
ContentOptions contentOptions
IContentTypeBaseResolver contentTypeBaseResolver

Methods

CountDescendants(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Count all descendants to this page (children and grandchildren). This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public int CountDescendants(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

Start page where counting starts. This page is not included in the count.

Returns
Type Description
System.Int32

Number of descendant pages.

IsContentTypeUsed(ContentType, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Checks whether a content type is used anyhwere.

Declaration
public bool IsContentTypeUsed(ContentType contentType, bool onlyPublished)
Parameters
Type Name Description
ContentType contentType

Type of the content.

System.Boolean onlyPublished

if set to true only published versions are checked.

Returns
Type Description
System.Boolean

ListAll()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all pages in the database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<ContentReference> ListAll()
Returns
Type Description
System.Collections.Generic.IList<ContentReference>

A array with pages

ListAll(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all pages in the database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<ContentReference> ListAll(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IList<ContentReference>

An array with pages

ListAll(ContentReference, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<ContentReference> ListAll(ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
ContentReference contentLink
System.String languageBranch
Returns
Type Description
System.Collections.Generic.IList<ContentReference>

ListBlobUris(ContentReference, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all external folder id in database This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<string> ListBlobUris(ContentReference root, bool includeRoot)
Parameters
Type Name Description
ContentReference root
System.Boolean includeRoot
Returns
Type Description
System.Collections.Generic.IList<System.String>

A array of blob ids

ListContentOfContentType(ContentType, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists all references to pages of a certain page type.

Declaration
public IList<ContentUsage> ListContentOfContentType(ContentType contentType, bool onlyPublished)
Parameters
Type Name Description
ContentType contentType

Type of the content.

System.Boolean onlyPublished

if set to true only published versions are returned.

Returns
Type Description
System.Collections.Generic.IList<ContentUsage>

ListMatchingSegments(ContentReference, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists references to all children content items that have matching routing/url segments.

Declaration
public virtual IList<MatchingSegmentResult> ListMatchingSegments(ContentReference parentLink, string urlSegment)
Parameters
Type Name Description
ContentReference parentLink

The parent link.

System.String urlSegment

The URL segment.

Returns
Type Description
System.Collections.Generic.IList<MatchingSegmentResult>

ListOwnedContentAssetReferences(IEnumerable<Guid>)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. List all existing content asset references that are related to ownedContentIds. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public virtual IList<ContentReference> ListOwnedContentAssetReferences(IEnumerable<Guid> ownedContentIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Guid> ownedContentIds

The owned content ids.

Returns
Type Description
System.Collections.Generic.IList<ContentReference>

A list of asset ids

LoadChildrenReferencesAndTypes(Int32, String, out FilterSortOrder)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<GetChildrenReferenceResult> LoadChildrenReferencesAndTypes(int pageId, string languageID, out FilterSortOrder parentSortOrder)
Parameters
Type Name Description
System.Int32 pageId
System.String languageID
FilterSortOrder parentSortOrder
Returns
Type Description
System.Collections.Generic.IList<GetChildrenReferenceResult>

LoadDefaultSystemRoots()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads the system default Roots.

Declaration
public virtual IDictionary<string, ContentReference> LoadDefaultSystemRoots()
Returns
Type Description
System.Collections.Generic.IDictionary<System.String, ContentReference>

LoadSpecificContentInstances(IList<ContentReference>, Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<IContent> LoadSpecificContentInstances(IList<ContentReference> contentLinks, int languageBranchID)
Parameters
Type Name Description
System.Collections.Generic.IList<ContentReference> contentLinks
System.Int32 languageBranchID
Returns
Type Description
System.Collections.Generic.IList<IContent>

LoadVersions(IList<ContentReference>)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IList<IContent> LoadVersions(IList<ContentReference> contentVersions)
Parameters
Type Name Description
System.Collections.Generic.IList<ContentReference> contentVersions
Returns
Type Description
System.Collections.Generic.IList<IContent>

Extension Methods