Class CatalogHelper

CatalogHelper, to get CatalogNode from database to bind in ProductPicker

Inheritance
System.Object
CatalogHelper
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.Business.Commerce
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("Use 'EPiServer.IContentLoader' and 'Mediachase.Commerce.Catalog.ReferenceConverter' instead. ICatalogLoader contains methods for getting content by a 'ContentReference'. The 'ReferenceConverter' can be used to get a 'ContentReference'. There are also several extension methods in the namespace 'EPiServer.Commerce.Catalog.ContentTypes', which can be used to load a 'CatalogNode' object from a 'NodeContent'. Will remain at least until November 2015.")]
public class CatalogHelper

Properties

Instance

Singleton object

Declaration
[Obsolete("Use 'EPiServer.IContentLoader' and 'Mediachase.Commerce.Catalog.ReferenceConverter' instead. ICatalogLoader contains methods for getting content by a 'ContentReference'. The 'ReferenceConverter' can be used to get a 'ContentReference'. There are also several extension methods in the namespace 'EPiServer.Commerce.Catalog.ContentTypes', which can be used to load a 'CatalogNode' object from a 'NodeContent'. Will remain at least until November 2015.")]
public static CatalogHelper Instance { get; }
Property Value
Type Description
CatalogHelper

The only instance of the class.

Methods

GetCatalogNodes(Int32)

Gets the nodes for catalog id with specific parent.

Declaration
[Obsolete("Use GetChildren<NodeContent> on IContentLoader instead. Will remain at least until November 2015.")]
public CatalogNodes GetCatalogNodes(int catalogId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog id.

Returns
Type Description
CatalogNodes

A CatalogNodes instance

GetCatalogNodes(Int32, Int32)

Gets the nodes for catalog id with specific parent.

Declaration
[Obsolete("Use GetChildren<NodeContent> on IContentLoader instead. Will remain at least until November 2015.")]
public CatalogNodes GetCatalogNodes(int catalogId, int parentNodeId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog id.

System.Int32 parentNodeId

The parent node id.

Returns
Type Description
CatalogNodes

A CatalogNodes instance

GetCatalogNodesFromCache(Int32, Int32)

Gets the catalog nodes from cache.

Declaration
[Obsolete("This method will not be called from the EPiServer API or UI, and should not be overwritten. Will remain at least until November 2015.")]
protected virtual CatalogNodes GetCatalogNodesFromCache(int catalogId, int parentNodeId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog id.

System.Int32 parentNodeId

The parent node id.

Returns
Type Description
CatalogNodes

A CatalogNodes instance, null if not existed in cache

GetCatalogNodesFromDatabase(DataCommand)

Gets the catalog nodes from database.

Declaration
[Obsolete("This method will not be called from the EPiServer API or UI, and should not be overwritten. Will remain at least until November 2015.")]
protected virtual Collection<CatalogNode> GetCatalogNodesFromDatabase(DataCommand command)
Parameters
Type Name Description
DataCommand command

DataCommand to execute.

Returns
Type Description
System.Collections.ObjectModel.Collection<CatalogNode>

List of CatalogNode

GetCatalogNodesFromDatabase(Int32)

Gets CatalogNodes from database.

Declaration
[Obsolete("This method will not be called from the EPiServer API or UI, and should not be overwritten. Will remain at least until November 2015.")]
protected virtual Collection<CatalogNode> GetCatalogNodesFromDatabase(int catalogId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog id.

Returns
Type Description
System.Collections.ObjectModel.Collection<CatalogNode>

List of CatalogNode

GetCatalogNodesFromDatabase(Int32, Int32)

Gets CatalogNodes with specific parent from database.

Declaration
[Obsolete("This method will not be called from the EPiServer API or UI, and should not be overwritten. Will remain at least until November 2015.")]
protected virtual Collection<CatalogNode> GetCatalogNodesFromDatabase(int catalogId, int parentNodeId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog id.

System.Int32 parentNodeId

The parent node id.

Returns
Type Description
System.Collections.ObjectModel.Collection<CatalogNode>

List of CatalogNode