SaaS CMS has officially launched! Learn more now.

Class CatalogPropertyLoader

Handles converting Commerce catalog data to properties

Inheritance
System.Object
CatalogPropertyLoader
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: 11.8.3
Syntax
public class CatalogPropertyLoader : ICatalogPropertyLoader

Constructors

CatalogPropertyLoader(MetaDataPropertyMapper, LocalizationService, MetaDataPropertyConfiguration, IPermanentLinkMapper)

Initializes a new instance of the CatalogPropertyLoader class.

Declaration
public CatalogPropertyLoader(MetaDataPropertyMapper metaDataPropertyMapper, LocalizationService localizationService, MetaDataPropertyConfiguration metaDataPropertyConfiguration, IPermanentLinkMapper permanentLinkMapper)
Parameters
Type Name Description
MetaDataPropertyMapper metaDataPropertyMapper

The meta data property mapper.

EPiServer.Framework.Localization.LocalizationService localizationService

The service used to get localized string resources.

MetaDataPropertyConfiguration metaDataPropertyConfiguration

The catalog meta data property configuration.

EPiServer.Web.IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

Methods

LoadAssetPropertyVersion(DataRow[], CatalogContentBase)

Loads Asset information for a specific draft content.

Declaration
public virtual void LoadAssetPropertyVersion(DataRow[] rowsCollection, CatalogContentBase content)
Parameters
Type Name Description
System.Data.DataRow[] rowsCollection

The row collection to read data from.

CatalogContentBase content

The catalog content to load data to.

LoadAssets(CatalogEntryDto.CatalogEntryRow, EntryContentBase)

Create AssetLinkCollection property from CatalogItemAsset table

Declaration
public virtual void LoadAssets(CatalogEntryDto.CatalogEntryRow entryRow, EntryContentBase content)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow entryRow

The entry row to read attributes from.

EntryContentBase content

The content to populate with properties.

LoadAssets(CatalogNodeDto.CatalogNodeRow, NodeContent)

Create AssetLinkCollection property from CatalogItemAsset table

Declaration
public virtual void LoadAssets(CatalogNodeDto.CatalogNodeRow nodeRow, NodeContent content)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow nodeRow

The node row to read attributes from.

NodeContent content

The content to populate with properties.

LoadCommonPropertyVersion(DataRow, CatalogContentBase)

Loads common property for a specific draft content.

Declaration
public virtual void LoadCommonPropertyVersion(DataRow row, CatalogContentBase content)
Parameters
Type Name Description
System.Data.DataRow row

The datarow to read data from.

CatalogContentBase content

The catalog content to load data to.

LoadContentPropertiesVersion(DataRow[], CatalogContentBase)

Populates the content property for a specific draft content

Declaration
public virtual void LoadContentPropertiesVersion(DataRow[] rowsCollection, CatalogContentBase content)
Parameters
Type Name Description
System.Data.DataRow[] rowsCollection

The row collection ro read data from

CatalogContentBase content

the catalog content to load properties to

LoadEntryPropertyVersion(DataRow, CatalogContentBase)

Loads entry property for a specific draft content.

Declaration
public virtual void LoadEntryPropertyVersion(DataRow row, CatalogContentBase content)
Parameters
Type Name Description
System.Data.DataRow row

The datarow to read data from.

CatalogContentBase content

The catalog content to load data to.

LoadMarkets(MetaObjectAccessor, EntryContentBase)

Loads the available markets in the entry.

Declaration
public virtual void LoadMarkets(MetaObjectAccessor accessor, EntryContentBase content)
Parameters
Type Name Description
MetaObjectAccessor accessor

The meta object accessor.

EntryContentBase content

The content to pouplate with markets.

LoadMetaDataContentProperties(MetaObjectAccessor, CatalogContentBase)

Populates the NodeContent instance with values from the MetaObjectAccessor. Uses the language of the content instance to populate properties corresponding to multi language attributes.

Declaration
public virtual void LoadMetaDataContentProperties(MetaObjectAccessor accessor, CatalogContentBase content)
Parameters
Type Name Description
MetaObjectAccessor accessor

The meta object accessor.

CatalogContentBase content

The content to populate with properties.

LoadMetaDataContentProperties(MetaObjectAccessor, EntryContentBase)

Populates the EntryContentBase instance with values from the MetaObjectAccessor. Uses the language of the content instance to populate properties corresponding to multi language attributes.

Declaration
[Obsolete("This method is no longer used, use LoadMetaDataContentProperties(MetaObjectAccessor accessor, CatalogContentBase content) instead. Will remain at least until November 2017.")]
public virtual void LoadMetaDataContentProperties(MetaObjectAccessor accessor, EntryContentBase content)
Parameters
Type Name Description
MetaObjectAccessor accessor

The meta object accessor.

EntryContentBase content

The content to populate with properties.

LoadProperties(CatalogDto.CatalogRow, CatalogDto.CatalogLanguageRow, CatalogContent)

Creates properties in the specified content instance corresponding to the static properties on the provided data row.

Declaration
public virtual void LoadProperties(CatalogDto.CatalogRow catalogRow, CatalogDto.CatalogLanguageRow languageRow, CatalogContent content)
Parameters
Type Name Description
CatalogDto.CatalogRow catalogRow

The catalog row to read attributes from.

CatalogDto.CatalogLanguageRow languageRow

The catalog language row to read attributes from, if available (otherwise null).

CatalogContent content

The content to populate with properties.

LoadProperties(CatalogEntryDto.CatalogEntryRow, CatalogEntryDto.CatalogItemSeoRow, CatalogEntryDto.VariationRow, EntryContentBase)

Creates properties in the content instance corresponding to the static and metadata attributes of the provided data rows and sets the property values.

Declaration
public virtual void LoadProperties(CatalogEntryDto.CatalogEntryRow entryRow, CatalogEntryDto.CatalogItemSeoRow seoRow, CatalogEntryDto.VariationRow variationRow, EntryContentBase content)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow entryRow

The entry row to read attributes from.

CatalogEntryDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

CatalogEntryDto.VariationRow variationRow

The variation row to read attributes from, if applicable (otherwise null).

EntryContentBase content

The content to populate with properties.

LoadProperties(CatalogEntryDto.CatalogEntryRow, CatalogEntryDto.CatalogItemSeoRow, CatalogEntryDto.VariationRow, EntryContentBase, MetaObjectAccessor)

Creates properties in the content instance corresponding to the static and metadata attributes of the provided data rows and sets the property values.

Declaration
public virtual void LoadProperties(CatalogEntryDto.CatalogEntryRow entryRow, CatalogEntryDto.CatalogItemSeoRow seoRow, CatalogEntryDto.VariationRow variationRow, EntryContentBase content, MetaObjectAccessor metaObjectAccessor)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow entryRow

The entry row to read attributes from.

CatalogEntryDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

CatalogEntryDto.VariationRow variationRow

The variation row to read attributes from, if applicable (otherwise null).

EntryContentBase content

The content to populate with properties.

MetaObjectAccessor metaObjectAccessor

The meta object accessor.

LoadProperties(CatalogNodeDto.CatalogNodeRow, CatalogNodeDto.CatalogItemSeoRow, NodeContent)

Creates properties in the specified content instance corresponding to the static and metadata attributes of the provided data rows and sets the property values.

Declaration
public virtual void LoadProperties(CatalogNodeDto.CatalogNodeRow nodeRow, CatalogNodeDto.CatalogItemSeoRow seoRow, NodeContent content)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow nodeRow

The node to read attributes from.

CatalogNodeDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

NodeContent content

The content to populate with properties.

LoadProperties(CatalogNodeDto.CatalogNodeRow, CatalogNodeDto.CatalogItemSeoRow, NodeContent, MetaObjectAccessor)

Creates properties in the specified content instance corresponding to the static and metadata attributes of the provided data rows and sets the property values.

Declaration
public virtual void LoadProperties(CatalogNodeDto.CatalogNodeRow nodeRow, CatalogNodeDto.CatalogItemSeoRow seoRow, NodeContent content, MetaObjectAccessor metaObjectAccessor)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow nodeRow

The node to read attributes from.

CatalogNodeDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

NodeContent content

The content to populate with properties.

MetaObjectAccessor metaObjectAccessor

The meta object accessor.

LoadProperties(IEnumerable<CatalogDto.CatalogLanguageRow>, CatalogContent)

Creates language properties in the specified content instance corresponding to the languages on the catalogLanguages parameter.

Declaration
public virtual void LoadProperties(IEnumerable<CatalogDto.CatalogLanguageRow> catalogLanguages, CatalogContent content)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<CatalogDto.CatalogLanguageRow> catalogLanguages
CatalogContent content

LoadStaticContentProperties(CatalogDto.CatalogRow, CatalogDto.CatalogLanguageRow, CatalogContent)

Creates properties in the specified content according to the static properties on catalogRow.

Declaration
public virtual void LoadStaticContentProperties(CatalogDto.CatalogRow catalogRow, CatalogDto.CatalogLanguageRow languageRow, CatalogContent content)
Parameters
Type Name Description
CatalogDto.CatalogRow catalogRow

The catalog row to read attributes from.

CatalogDto.CatalogLanguageRow languageRow

The catalog language row to read attributes from, if available (otherwise null).

CatalogContent content

The content to populate with properties.

LoadStaticContentProperties(CatalogEntryDto.CatalogEntryRow, CatalogEntryDto.CatalogItemSeoRow, CatalogEntryDto.VariationRow, EntryContentBase)

Creates properties in the EntryContentBase instance corresponding to the static attributes of the CatalogEntryDto and sets the property values. Uses the language of the content instance to populate properties corresponding to multi language attributes.

Declaration
public virtual void LoadStaticContentProperties(CatalogEntryDto.CatalogEntryRow entryRow, CatalogEntryDto.CatalogItemSeoRow seoRow, CatalogEntryDto.VariationRow variationRow, EntryContentBase content)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow entryRow

The entry row to read attributes from.

CatalogEntryDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

CatalogEntryDto.VariationRow variationRow

The variation row to read attributes from, if applicable (otherwise null).

EntryContentBase content

The content to populate with properties.

LoadStaticContentProperties(CatalogNodeDto.CatalogNodeRow, CatalogNodeDto.CatalogItemSeoRow, NodeContent)

Creates properties in the specified content according to the static properties on nodeRow.

Declaration
public virtual void LoadStaticContentProperties(CatalogNodeDto.CatalogNodeRow nodeRow, CatalogNodeDto.CatalogItemSeoRow seoRow, NodeContent content)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow nodeRow

The node to read attributes from.

CatalogNodeDto.CatalogItemSeoRow seoRow

The seo row to read attributes from.

NodeContent content

The content to populate with properties.

SetChangeTrackingProperties(MetaObjectAccessor, CatalogContentBase)

Sets change tracking properties for a content.

Declaration
public virtual void SetChangeTrackingProperties(MetaObjectAccessor accessor, CatalogContentBase content)
Parameters
Type Name Description
MetaObjectAccessor accessor

The meta accessor to read meta data.

CatalogContentBase content

The content to populate with properties.

Implements