Class NodeBuilder
Handles creation of CatalogContentBase that is a CatalogNode. NOTE: All operations is in this class are uncached!
Implements
Inherited Members
Namespace: EPiServer.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class NodeBuilder : MetaDataContentBuilder, ICatalogContentBuilder
Constructors
NodeBuilder(ReducedCacheCatalogSystemAccessor, MetaClassContentFactory, ICatalogPropertyLoader, ReferenceConverter, CatalogContentVersionDB, CatalogMetaObjectRepository, CatalogContentAccessControlManager)
Initializes a new instance of the NodeBuilder class.
Declaration
public NodeBuilder(ReducedCacheCatalogSystemAccessor catalogContextAccessor, MetaClassContentFactory metaClassContentFactory, ICatalogPropertyLoader catalogPropertyLoader, ReferenceConverter referenceConverter, CatalogContentVersionDB contentVersionDB, CatalogMetaObjectRepository metaObjectRepository, CatalogContentAccessControlManager catalogContentAccessControlManager)
Parameters
Type | Name | Description |
---|---|---|
ReducedCacheCatalogSystemAccessor | catalogContextAccessor | The catalog context accessor. |
MetaClassContentFactory | metaClassContentFactory | The meta class content factory. |
ICatalogPropertyLoader | catalogPropertyLoader | The catalog property loader. |
ReferenceConverter | referenceConverter | The reference converter. |
CatalogContentVersionDB | contentVersionDB | The catalog content Database access. |
CatalogMetaObjectRepository | metaObjectRepository | The meta object repository. |
CatalogContentAccessControlManager | catalogContentAccessControlManager | The catalog content access control manager. |
Fields
NodeResponseGroup
The default node response group
Declaration
public static readonly CatalogNodeResponseGroup NodeResponseGroup
Field Value
Type | Description |
---|---|
CatalogNodeResponseGroup |
Methods
Create(IList<ContentReference>, String)
Creates a list of CatalogContentBase according to each of the specified
EPiServer.Core.ContentReference in contentLinks
, regardless content version.
Declaration
public override IList<CatalogContentBase> Create(IList<ContentReference> contentLinks, string language)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<EPiServer.Core.ContentReference> | contentLinks | The content links. |
System.String | language | The content language. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<CatalogContentBase> | A list of CatalogContentBase. |
Overrides
CreateVersions(IList<ContentReference>)
Creates a list of CatalogContentBase version based on the list of content references
Declaration
public override IList<CatalogContentBase> CreateVersions(IList<ContentReference> contentLinks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<EPiServer.Core.ContentReference> | contentLinks | The content links. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<CatalogContentBase> | A list of CatalogContentBase. |
Overrides
GetLanguageBranches(ContentReference)
Creates a list of CatalogContentBase of a specific EPiServer.Core.ContentReference in all languages that content is available in.
Declaration
public override IList<CatalogContentBase> GetLanguageBranches(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<CatalogContentBase> | A list of CatalogContentBase. |
Overrides
HandleType(CatalogContentType)
Checks if this builder handles the specified catalogContentType
.
Declaration
public override bool HandleType(CatalogContentType catalogContentType)
Parameters
Type | Name | Description |
---|---|---|
CatalogContentType | catalogContentType | Type of the commerce content. |
Returns
Type | Description |
---|---|
System.Boolean |
|