Class ContentListDB
Load information from database about an entire list of PageData objects. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inherited Members
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ContentListDB : ContentDBConstructors
ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, ContentFactory, BlobFactory, IContentProviderManager)
Initializes a new instance of the ContentListDB class.
Declaration
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 | The database handler. | 
| IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper. | 
| IContentTypeRepository | contentTypeRepository | The page type repository. | 
| ILanguageBranchRepository | languageBranchRepository | The language branch repository. | 
| IPropertyDataFactory | propertyDataFactory | The property data factory. | 
| IPropertyDefinitionRepository | propertyDefinitionRepository | The property definition repository. | 
| IPropertyDefinitionTypeRepository | propertyDefinitionTypeRepository | The property definition type repository. | 
| ContentFactory | contentFactory | The content factory. | 
| BlobFactory | blobFactory | The blob factory. | 
| IContentProviderManager | contentProviderManager | The content provider manager | 
Remarks
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
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  | 
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  | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<ContentUsage> | 
ListExternalFolderIDs()
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<int> ListExternalFolderIDs()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<System.Int32> | A array of folder id | 
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
public virtual SystemDefinition LoadDefaultSystemDefinition()Returns
| Type | Description | 
|---|---|
| SystemDefinition | 
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> | 
