Class PageDataBuilder
Default implementation of PageDataBuilder
Inherited Members
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IPageDataBuilder))]
public class PageDataBuilder : ContentDataBuilder, IPageDataBuilder, IContentDataBuilder
Constructors
PageDataBuilder(IPropertyDataFactory, BlockTypeRepository, IContentDataFactory<BlockData>, ILanguageBranchRepository, IFolderIDGenerator)
Initializes a new instance of the PageDataBuilder class.
Declaration
public PageDataBuilder(IPropertyDataFactory propertyDataFactory, BlockTypeRepository blockTypeRepository, IContentDataFactory<BlockData> blockContentFactory, ILanguageBranchRepository languageBranchRepository, IFolderIDGenerator folderIdGenerator)
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. |
IFolderIDGenerator | folderIdGenerator | The folder id generator. |
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 |
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. |