Class ContentListDB
Load information from database about an entire list of PageData objects.
Inherited Members
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class ContentListDB : ContentDB
Constructors
ContentListDB(ServiceAccessor<IDatabaseExecutor>, IPermanentLinkMapper, IContentTypeRepository, ILanguageBranchRepository, IPropertyDataFactory, IPropertyDefinitionRepository, IPropertyDefinitionTypeRepository, IContentFactory, IBlobFactory, PropertyValueConverterFactory, IContentProviderManager, DatabaseDateTimeHandler, ContentOptions, IContentTypeBaseResolver)
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)
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> |
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> |
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> |
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> |