November Happy Hour will be moved to Thursday December 5th.

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
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class ContentListDB : ContentDB

Constructors

ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, ContentFactory, BlobFactory, IContentProviderManager)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use alternative constructor")]
public ContentListDB(IDatabaseHandler databaseHandler, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDataFactory propertyDataFactory, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, ContentFactory contentFactory, BlobFactory blobFactory, IContentProviderManager contentProviderManager)
Parameters
Type Name Description
IDatabaseHandler databaseHandler
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDataFactory propertyDataFactory
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
ContentFactory contentFactory
BlobFactory blobFactory
IContentProviderManager contentProviderManager

ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, ContentFactory, BlobFactory, PropertyValueConverterFactory, IContentProviderManager, DatabaseDateTimeHandler)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use alternative constructor")]
public ContentListDB(IDatabaseHandler databaseHandler, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDataFactory propertyDataFactory, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, ContentFactory contentFactory, BlobFactory blobFactory, PropertyValueConverterFactory propertyValueConverterFactory, IContentProviderManager contentProviderManager, DatabaseDateTimeHandler dateTimeHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDataFactory propertyDataFactory
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
ContentFactory contentFactory
BlobFactory blobFactory
PropertyValueConverterFactory propertyValueConverterFactory
IContentProviderManager contentProviderManager
DatabaseDateTimeHandler dateTimeHandler

ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, IContentFactory, BlobFactory, PropertyValueConverterFactory, IContentProviderManager, DatabaseDateTimeHandler)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use alternative constructor")]
public ContentListDB(IDatabaseHandler databaseHandler, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDataFactory propertyDataFactory, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, IContentFactory contentFactory, BlobFactory blobFactory, PropertyValueConverterFactory propertyValueConverterFactory, IContentProviderManager contentProviderManager, DatabaseDateTimeHandler dateTimeHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDataFactory propertyDataFactory
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
IContentFactory contentFactory
BlobFactory blobFactory
PropertyValueConverterFactory propertyValueConverterFactory
IContentProviderManager contentProviderManager
DatabaseDateTimeHandler dateTimeHandler

ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, IContentFactory, IBlobFactory, PropertyValueConverterFactory, IContentProviderManager, DatabaseDateTimeHandler)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public ContentListDB(IDatabaseHandler databaseHandler, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, ILanguageBranchRepository languageBranchRepository, IPropertyDataFactory propertyDataFactory, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository, IContentFactory contentFactory, IBlobFactory blobFactory, PropertyValueConverterFactory propertyValueConverterFactory, IContentProviderManager contentProviderManager, DatabaseDateTimeHandler dateTimeHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
ILanguageBranchRepository languageBranchRepository
IPropertyDataFactory propertyDataFactory
IPropertyDefinitionRepository propertyDefinitionRepository
IPropertyDefinitionTypeRepository propertyDefinitionTypeRepository
IContentFactory contentFactory
IBlobFactory blobFactory
PropertyValueConverterFactory propertyValueConverterFactory
IContentProviderManager contentProviderManager
DatabaseDateTimeHandler dateTimeHandler

Methods

CountDescendants(ContentReference)

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)

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()

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)

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)

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)

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)

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)

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>)

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)

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>

LoadDefaultSystemDefinition()

Loads the system default definitions.

Declaration
[Obsolete("Use ContentRootService instead")]
public virtual SystemDefinition LoadDefaultSystemDefinition()
Returns
Type Description
SystemDefinition

LoadDefaultSystemRoots()

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)

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>

LoadSpecificContentInstances(Int32[])

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use overload that uses an IList<ContentReference> as parameter")]
public IList<IContent> LoadSpecificContentInstances(int[] contentLinks)
Parameters
Type Name Description
System.Int32[] contentLinks
Returns
Type Description
System.Collections.Generic.IList<IContent>

LoadSpecificContentInstances(Int32[], Int32)

This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
[Obsolete("Use overload that uses an IList<ContentReference> as parameter")]
public IList<IContent> LoadSpecificContentInstances(int[] contentLinks, int languageBranchID)
Parameters
Type Name Description
System.Int32[] contentLinks
System.Int32 languageBranchID
Returns
Type Description
System.Collections.Generic.IList<IContent>

LoadVersions(IList<ContentReference>)

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