Class EntryLoaderBase
Base class for loading specialized properties from an entry.
Inherited Members
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
[Obsolete("This class is no longer used. Will remain at least until August 2019.")]
public abstract class EntryLoaderBase
Constructors
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 |
GetCode(ContentReference)
Declaration
public string GetCode(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink |
Returns
Type | Description |
---|---|
System.String |
GetContentLink(CatalogKey)
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. |