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 : ContentDB
Constructors
ContentListDB(IDatabaseHandler, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, ContentFactory, BlobFactory, IContentProviderManager)
Initializes a new instance of the Content
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 |
---|---|---|
IDatabase |
databaseHandler | The database handler. |
IPermanent |
permanentLinkMapper | The permanent link mapper. |
IContent |
contentTypeRepository | The page type repository. |
ILanguage |
languageBranchRepository | The language branch repository. |
IProperty |
propertyDataFactory | The property data factory. |
IProperty |
propertyDefinitionRepository | The property definition repository. |
IProperty |
propertyDefinitionTypeRepository | The property definition type repository. |
Content |
contentFactory | The content factory. |
Blob |
blobFactory | The blob factory. |
IContent |
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 |
---|---|---|
Content |
contentLink | Start page where counting starts. This page is not included in the count. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Content |
contentType | Type of the content. |
System. |
onlyPublished | if set to |
Returns
Type | Description |
---|---|
System. |
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. |
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 |
---|---|---|
Content |
contentLink |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Content |
contentLink | |
System. |
languageBranch |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Content |
root | |
System. |
includeRoot |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Content |
contentType | Type of the content. |
System. |
onlyPublished | if set to |
Returns
Type | Description |
---|---|
System. |
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. |
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 |
---|---|---|
Content |
parentLink | The parent link. |
System. |
urlSegment | The URL segment. |
Returns
Type | Description |
---|---|
System. |
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. |
ownedContentIds | The owned content ids. |
Returns
Type | Description |
---|---|
System. |
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. |
pageId | |
System. |
languageID | |
Filter |
parentSortOrder |
Returns
Type | Description |
---|---|
System. |
LoadDefaultSystemDefinition()
Loads the system default definitions.
Declaration
public virtual SystemDefinition LoadDefaultSystemDefinition()
Returns
Type | Description |
---|---|
System |
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. |
contentLinks | |
System. |
languageBranchID |
Returns
Type | Description |
---|---|
System. |
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. |
contentLinks |
Returns
Type | Description |
---|---|
System. |
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. |
contentLinks | |
System. |
languageBranchID |
Returns
Type | Description |
---|---|
System. |
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. |
contentVersions |
Returns
Type | Description |
---|---|
System. |