Class CatalogContentStructureProvider

Provides information about the structure of the catalog content in the content provider.

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

Constructors

CatalogContentStructureProvider(ReferenceConverter, IContentProviderManager, ISynchronizedObjectInstanceCache)

Initializes a new instance of the CatalogContentStructureProvider class.

Declaration
public CatalogContentStructureProvider(ReferenceConverter referenceConverter, IContentProviderManager contentProviderManager, ISynchronizedObjectInstanceCache objectInstanceCache)
Parameters
Type Name Description
ReferenceConverter referenceConverter

The reference converter.

EPiServer.Core.IContentProviderManager contentProviderManager

The content provider manager.

EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache objectInstanceCache

The object instance cache.

Methods

GetChildEntryCount(CatalogContentBase)

Gets the number of child entries of the catalog content.

Declaration
public virtual int GetChildEntryCount(CatalogContentBase content)
Parameters
Type Name Description
CatalogContentBase content

The catalog content.

Returns
Type Description
System.Int32

For CatalogContent: The number of entries directly under the catalog. For NodeContent: The number of entries that reference this node as parent via a Relation, filtered by matching catalogs. For other catalog content: 0.

Exceptions
Type Condition
System.ArgumentException

The content has to belong to the catalog content provider.

GetChildEntryCount(Int32, Int32)

Gets the child entry count through cache.

Declaration
protected virtual int GetChildEntryCount(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.Int32

GetChildNodeCount(CatalogContentBase)

Gets the number of child nodes of the catalog content.

Declaration
public virtual int GetChildNodeCount(CatalogContentBase content)
Parameters
Type Name Description
CatalogContentBase content

The catalog content.

Returns
Type Description
System.Int32

For RootContent: The number of catalogs. For CatalogContent: The number of nodes directly under the catalog. For NodeContent: The number of nodes that reference this node as parent either directly or via a Relation, filtered by matching catalogs. For other catalog content: 0.

Exceptions
Type Condition
System.ArgumentException

The content has to belong to the catalog content provider.

GetChildNodeCount(Int32, Int32)

Gets the child node count through cache.

Declaration
protected virtual int GetChildNodeCount(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.Int32