Class EntryBuilder

Handles creation of CatalogContentBase that is a CatalogEntry. NOTE: All operations is in this class are uncached!

Inheritance
System.Object
EntryBuilder
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.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class EntryBuilder : MetaDataContentBuilder, ICatalogContentBuilder

Constructors

EntryBuilder(ICatalogSystem, MetaClassContentFactory, ICatalogPropertyLoader, ReferenceConverter, CatalogContentVersionDB)

Declaration
[Obsolete("This constructor is no longer used, will remain at least until December 2017.")]
public EntryBuilder(ICatalogSystem catalogContext, MetaClassContentFactory metaClassContentFactory, ICatalogPropertyLoader catalogPropertyLoader, ReferenceConverter referenceConverter, CatalogContentVersionDB contentVersionDB)
Parameters
Type Name Description
ICatalogSystem catalogContext
MetaClassContentFactory metaClassContentFactory
ICatalogPropertyLoader catalogPropertyLoader
ReferenceConverter referenceConverter
CatalogContentVersionDB contentVersionDB

EntryBuilder(ICatalogSystem, MetaClassContentFactory, ICatalogPropertyLoader, ReferenceConverter, CatalogContentVersionDB, CatalogMetaObjectRepository)

Initializes a new instance of the EntryBuilder class.

Declaration
public EntryBuilder(ICatalogSystem catalogContext, MetaClassContentFactory metaClassContentFactory, ICatalogPropertyLoader catalogPropertyLoader, ReferenceConverter referenceConverter, CatalogContentVersionDB contentVersionDB, CatalogMetaObjectRepository metaObjectRepository)
Parameters
Type Name Description
ICatalogSystem catalogContext

The catalog context.

MetaClassContentFactory metaClassContentFactory

The meta class content factory.

ICatalogPropertyLoader catalogPropertyLoader

The catalog property loader.

ReferenceConverter referenceConverter

The reference converter.

CatalogContentVersionDB contentVersionDB

The catalog content Database access.

CatalogMetaObjectRepository metaObjectRepository

The meta object repository.

EntryBuilder(ICatalogSystem, IPriceService, IWarehouseInventoryService, MetaClassContentFactory, ICatalogPropertyLoader, ReferenceConverter, CatalogContentVersionDB)

Declaration
[Obsolete("This constructor is no longer used. Use overload without IPriceService and IWarehouseInventoryService. Will remain at least until March 2017.")]
public EntryBuilder(ICatalogSystem catalogContext, IPriceService priceService, IWarehouseInventoryService inventoryService, MetaClassContentFactory metaClassContentFactory, ICatalogPropertyLoader catalogPropertyLoader, ReferenceConverter referenceConverter, CatalogContentVersionDB contentVersionDB)
Parameters
Type Name Description
ICatalogSystem catalogContext
IPriceService priceService
IWarehouseInventoryService inventoryService
MetaClassContentFactory metaClassContentFactory
ICatalogPropertyLoader catalogPropertyLoader
ReferenceConverter referenceConverter
CatalogContentVersionDB contentVersionDB

EntryBuilder(ICatalogSystem, IPriceService, IWarehouseInventoryService, MetaClassContentFactory, ICatalogPropertyLoader, ReferenceConverter, CatalogGuidMapping)

Declaration
[Obsolete("This constructor is no longer used, will remain at least until August 2016.")]
public EntryBuilder(ICatalogSystem catalogContext, IPriceService priceService, IWarehouseInventoryService inventoryService, MetaClassContentFactory metaClassContentFactory, ICatalogPropertyLoader catalogPropertyLoader, ReferenceConverter referenceConverter, CatalogGuidMapping catalogGuidMapping)
Parameters
Type Name Description
ICatalogSystem catalogContext
IPriceService priceService
IWarehouseInventoryService inventoryService
MetaClassContentFactory metaClassContentFactory
ICatalogPropertyLoader catalogPropertyLoader
ReferenceConverter referenceConverter
CatalogGuidMapping catalogGuidMapping

Methods

Create(IList<ContentReference>, String)

Creates a list of CatalogContentBase according to each of the specified EPiServer.Core.ContentReference in contentLinks, regardless content version.

Declaration
public override IList<CatalogContentBase> Create(IList<ContentReference> contentLinks, string language)
Parameters
Type Name Description
System.Collections.Generic.IList<EPiServer.Core.ContentReference> contentLinks

The content links.

System.String language

The content language.

Returns
Type Description
System.Collections.Generic.IList<CatalogContentBase>

A list of CatalogContentBase.

Overrides

CreateVersions(IList<ContentReference>)

Creates a list of CatalogContentBase version based on the list of content references

Declaration
public override IList<CatalogContentBase> CreateVersions(IList<ContentReference> contentLinks)
Parameters
Type Name Description
System.Collections.Generic.IList<EPiServer.Core.ContentReference> contentLinks

The content links.

Returns
Type Description
System.Collections.Generic.IList<CatalogContentBase>

A list of CatalogContentBase.

Overrides

GetEntryNodeRelations(IEnumerable<Int32>)

Gets the entry node relations.

Declaration
protected virtual IEnumerable<CatalogRelationDto.NodeEntryRelationRow> GetEntryNodeRelations(IEnumerable<int> entryIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> entryIds

The entry ids.

Returns
Type Description
System.Collections.Generic.IEnumerable<CatalogRelationDto.NodeEntryRelationRow>

HandleType(CatalogContentType)

Checks if this builder handles the specified catalogContentType.

Declaration
public override bool HandleType(CatalogContentType catalogContentType)
Parameters
Type Name Description
CatalogContentType catalogContentType

Type of the commerce content.

Returns
Type Description
System.Boolean

true if catalogContentType can be handled by this instance; otherwise false.

Overrides

SetChangeTrackingProperties(CatalogEntryDto.CatalogEntryRow, EntryContentBase)

Sets the change tracking properties.

Declaration
[Obsolete("This method is no longer used, use ICatalogPropertyLoader.SetChangeTrackingProperties instead. Will remain at least until August 2016.")]
protected virtual void SetChangeTrackingProperties(CatalogEntryDto.CatalogEntryRow entryRow, EntryContentBase entry)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow entryRow

The entry row.

EntryContentBase entry

The entry.

Implements