Class PageDataBuilder
Default implementation of PageDataBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IPageDataBuilder))]
[Obsolete("Use IContentDataBuilder to buildup IContentData instances")]
public class PageDataBuilder : ContentDataBuilder, IPropertyBlockBuilder, IPageDataBuilder, IContentDataBuilder
Constructors
PageDataBuilder(IPropertyDataFactory, IContentTypeRepository, IContentDataFactory<BlockData>, ILanguageBranchRepository, IPageDataMetadataBuilder, IContentLanguageAccessor, IPrincipalAccessor)
Declaration
public PageDataBuilder(IPropertyDataFactory propertyDataFactory, IContentTypeRepository contentTypeRepository, IContentDataFactory<BlockData> blockContentFactory, ILanguageBranchRepository languageBranchRepository, IPageDataMetadataBuilder pageDataMetadataBuilder, IContentLanguageAccessor languageResolver, IPrincipalAccessor principalAccessor)
Parameters
Type | Name | Description |
---|---|---|
IPropertyDataFactory | propertyDataFactory | |
IContentTypeRepository | contentTypeRepository | |
IContentDataFactory<BlockData> | blockContentFactory | |
ILanguageBranchRepository | languageBranchRepository | |
IPageDataMetadataBuilder | pageDataMetadataBuilder | |
IContentLanguageAccessor | 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 |
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. |