A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class CatalogContentFactory

Extends EPiServer.Construction.ContentFactory to do processing specific to CatalogContentBase instances.

Inheritance
System.Object
CatalogContentFactory
Namespace: EPiServer.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 9.24.1
Syntax
public class CatalogContentFactory : ContentFactory

Constructors

CatalogContentFactory(ISharedBlockFactory, IContentDataFactory<IContent>, IContentDataFactory<PageData>, IContentDataBuilder, IPropertyDataFactory, CatalogLanguageLoader)

Initializes a new instance of the CatalogContentFactory class.

Declaration
public CatalogContentFactory(ISharedBlockFactory sharedblockFactory, IContentDataFactory<IContent> contentFactory, IContentDataFactory<PageData> pageDataFactory, IContentDataBuilder contentDataBuilder, IPropertyDataFactory propertyDataFactory, CatalogLanguageLoader languageLoader)
Parameters
Type Name Description
EPiServer.Construction.ISharedBlockFactory sharedblockFactory

The sharedblock factory.

EPiServer.Construction.IContentDataFactory<EPiServer.Core.IContent> contentFactory

The content factory.

EPiServer.Construction.IContentDataFactory<EPiServer.Core.PageData> pageDataFactory

The page data factory.

EPiServer.Construction.IContentDataBuilder contentDataBuilder

The content data builder.

EPiServer.Construction.IPropertyDataFactory propertyDataFactory

The property data factory.

CatalogLanguageLoader languageLoader

The language loader.

CatalogContentFactory(ISharedBlockFactory, IContentDataFactory<IContent>, IContentDataFactory<PageData>, IPageDataBuilder, IContentDataBuilder, IPropertyDataFactory, CatalogLanguageLoader)

Initializes a new instance of the CatalogContentFactory class.

Declaration
[Obsolete("Use constructor without IPageDataBuilder. Will remain at least until April 2017.")]
public CatalogContentFactory(ISharedBlockFactory sharedblockFactory, IContentDataFactory<IContent> contentFactory, IContentDataFactory<PageData> pageDataFactory, IPageDataBuilder pageDataBuilder, IContentDataBuilder contentDataBuilder, IPropertyDataFactory propertyDataFactory, CatalogLanguageLoader languageLoader)
Parameters
Type Name Description
EPiServer.Construction.ISharedBlockFactory sharedblockFactory

The sharedblock factory.

EPiServer.Construction.IContentDataFactory<EPiServer.Core.IContent> contentFactory

The content factory.

EPiServer.Construction.IContentDataFactory<EPiServer.Core.PageData> pageDataFactory

The page data factory.

EPiServer.Construction.IPageDataBuilder pageDataBuilder

The page data builder.

EPiServer.Construction.IContentDataBuilder contentDataBuilder

The content data builder.

EPiServer.Construction.IPropertyDataFactory propertyDataFactory

The property data factory.

CatalogLanguageLoader languageLoader

The language loader.

Methods

CreateContent(ContentType, BuildingContext)

Creates the content, using base implementation but verifying the languge setup according to the catalog.

Declaration
public override IContent CreateContent(ContentType contentType, BuildingContext buildingContext)
Parameters
Type Name Description
EPiServer.DataAbstraction.ContentType contentType

Type of the content.

EPiServer.Construction.BuildingContext buildingContext

The building context.

Returns
Type Description
EPiServer.Core.IContent