SaaS CMS has officially launched! Learn more now.

Class EntryLoaderBase

Base class for loading specialized properties from an entry.

Inheritance
System.Object
EntryLoaderBase
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
Assembly: EPiServer.Business.Commerce.dll
Version: 11.8.3
Syntax
public abstract class EntryLoaderBase

Constructors

EntryLoaderBase(ReferenceConverter, ICatalogSystem)

Base constructor.

Declaration
[Obsolete("This constructor is no longer used. Use overload with IContentLoader instead. Will remain at least until October 2017.")]
protected EntryLoaderBase(ReferenceConverter referenceConverter, ICatalogSystem catalogSystem)
Parameters
Type Name Description
ReferenceConverter referenceConverter

The reference converter.

ICatalogSystem catalogSystem

The catalog system.

EntryLoaderBase(ReferenceConverter, ICatalogSystem, IContentLoader)

Base constructor.

Declaration
protected EntryLoaderBase(ReferenceConverter referenceConverter, ICatalogSystem catalogSystem, IContentLoader contentLoader)
Parameters
Type Name Description
ReferenceConverter referenceConverter

The reference converter.

ICatalogSystem catalogSystem

The catalog system.

EPiServer.IContentLoader contentLoader

The content loader.

Fields

ContentLoader

Declaration
protected readonly IContentLoader ContentLoader
Field Value
Type Description
EPiServer.IContentLoader

Methods

GetAllVariants(ContentReference)

Gets all variants from a content link. If content link is a CatalogNode, then return variants and variants of products which are direct children of it If content link is a Product, then return variants of it If content link is a variant/package, then return content of it

Declaration
protected IEnumerable<EntryContentBase> GetAllVariants(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IEnumerable<EntryContentBase>

System.Collections.IEnumerable of EntryContentBase

GetCatalogContentType(ContentReference)

Gets the type of the catalog content.

Declaration
protected CatalogContentType GetCatalogContentType(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
CatalogContentType

GetCatalogKey(ContentReference)

Gets the catalog key for a contentLink

Declaration
protected CatalogKey GetCatalogKey(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link to receive the key for.

Returns
Type Description
CatalogKey

The catalog key for a contentLink

GetCode(ContentReference)

Declaration
public string GetCode(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink
Returns
Type Description
System.String

Gets the content link from a catalogKey by loading the entry.

Declaration
protected ContentReference GetContentLink(CatalogKey catalogKey)
Parameters
Type Name Description
CatalogKey catalogKey

The catalog key.

Returns
Type Description
EPiServer.Core.ContentReference

GetEntryContent(ContentReference)

Gets the entry content base.

Declaration
protected EntryContentBase GetEntryContent(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The entry content link.

Returns
Type Description
EntryContentBase

GetEntryContent(CatalogKey)

Gets the entry content base.

Declaration
protected EntryContentBase GetEntryContent(CatalogKey catalogKey)
Parameters
Type Name Description
CatalogKey catalogKey

The catalog key.

Returns
Type Description
EntryContentBase

GetProductVariants(EntryContentBase)

Gets the product variants.

Declaration
protected IEnumerable<ContentReference> GetProductVariants(EntryContentBase productContent)
Parameters
Type Name Description
EntryContentBase productContent

Product contents.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference>

An enumerable ContentReference list of variants belong to that product.