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

Class PageDataBuilder

Default implementation of PageDataBuilder

Inheritance
System.Object
PageDataBuilder
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration(typeof(IPageDataBuilder))]
[Obsolete("Use IContentDataBuilder to buildup IContentData instances")]
public class PageDataBuilder : ContentDataBuilder, IPageDataBuilder, IContentDataBuilder

Constructors

PageDataBuilder(IPropertyDataFactory, BlockTypeRepository, IContentDataFactory<BlockData>, ILanguageBranchRepository)

Initializes a new instance of the PageDataBuilder class.

Declaration
[Obsolete("Use alternative constructor")]
public PageDataBuilder(IPropertyDataFactory propertyDataFactory, BlockTypeRepository blockTypeRepository, IContentDataFactory<BlockData> blockContentFactory, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IPropertyDataFactory propertyDataFactory

The property data factory.

BlockTypeRepository blockTypeRepository

The block data builder used to add properties and property values to blocks.

IContentDataFactory<BlockData> blockContentFactory

The block content factory.

ILanguageBranchRepository languageBranchRepository

The language branch repository.

PageDataBuilder(IPropertyDataFactory, BlockTypeRepository, IContentDataFactory<BlockData>, ILanguageBranchRepository, IPageDataMetadataBuilder, LanguageResolver, IPrincipalAccessor)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the PageDataBuilder class.

Declaration
[Obsolete("Use alternative constructor")]
public PageDataBuilder(IPropertyDataFactory propertyDataFactory, BlockTypeRepository blockTypeRepository, IContentDataFactory<BlockData> blockContentFactory, ILanguageBranchRepository languageBranchRepository, IPageDataMetadataBuilder pageDataMetadataBuilder, LanguageResolver languageResolver, IPrincipalAccessor principalAccessor)
Parameters
Type Name Description
IPropertyDataFactory propertyDataFactory
BlockTypeRepository blockTypeRepository
IContentDataFactory<BlockData> blockContentFactory
ILanguageBranchRepository languageBranchRepository
IPageDataMetadataBuilder pageDataMetadataBuilder
LanguageResolver languageResolver
IPrincipalAccessor principalAccessor

PageDataBuilder(IPropertyDataFactory, IContentTypeRepository, IContentDataFactory<BlockData>, ILanguageBranchRepository, IPageDataMetadataBuilder, LanguageResolver, IPrincipalAccessor)

Declaration
public PageDataBuilder(IPropertyDataFactory propertyDataFactory, IContentTypeRepository contentTypeRepository, IContentDataFactory<BlockData> blockContentFactory, ILanguageBranchRepository languageBranchRepository, IPageDataMetadataBuilder pageDataMetadataBuilder, LanguageResolver languageResolver, IPrincipalAccessor principalAccessor)
Parameters
Type Name Description
IPropertyDataFactory propertyDataFactory
IContentTypeRepository contentTypeRepository
IContentDataFactory<BlockData> blockContentFactory
ILanguageBranchRepository languageBranchRepository
IPageDataMetadataBuilder pageDataMetadataBuilder
LanguageResolver languageResolver
IPrincipalAccessor principalAccessor

Methods

AddMetaDataProperties(PageReference, PageData, PageType, ContentReference, Boolean)

Adds the meta data properties.

Declaration
public virtual void AddMetaDataProperties(PageReference pageLink, PageData page, PageType pageType, ContentReference parentContentLink, bool setPropertyValues)
Parameters
Type Name Description
PageReference pageLink

The page link.

PageData page

The page.

PageType pageType

Type of the page.

ContentReference parentContentLink

The parent page link.

System.Boolean setPropertyValues

if set to true [set required].

AddPageTypeProperties(PageData, PageType)

Inserts properties defined for the given page type into page data.

Declaration
public virtual void AddPageTypeProperties(PageData page, PageType pageType)
Parameters
Type Name Description
PageData page

The PageData object to update

PageType pageType

The type of the page.

Remarks

This method is primarily intended for EPiServer internal use.

AddProperties(IContentData, BuildingContext)

Adds properties to the contentData according to the buildingContext

Declaration
public override void AddProperties(IContentData contentData, BuildingContext buildingContext)
Parameters
Type Name Description
IContentData contentData

The contentData to populate with properties.

BuildingContext buildingContext

The building context.

Overrides

SetInheritedData(IContent, IContent, ContentType)

Adds inherited property data.

Declaration
protected override void SetInheritedData(IContent content, IContent parentData, ContentType contentType)
Parameters
Type Name Description
IContent content

The content.

IContent parentData

The parent page data.

ContentType contentType

Type of the content.

Overrides

SetInheritedPageData(PageData, IContent, PageType)

Adds inherited property data.

Declaration
public virtual void SetInheritedPageData(PageData page, IContent parentData, PageType pageType)
Parameters
Type Name Description
PageData page

The page data.

IContent parentData

The parent page data.

PageType pageType

Type of the page.

Implements

Extension Methods