Class RootBuilder
Handles creation of CatalogContentBase that is a Root.
Inheritance
System.Object
RootBuilder
Implements
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.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class RootBuilder : ICatalogContentBuilder
Constructors
RootBuilder(MetaClassContentFactory)
Initializes a new instance of the RootBuilder class.
Declaration
public RootBuilder(MetaClassContentFactory metaClassContentFactory)
Parameters
Type | Name | Description |
---|---|---|
MetaClassContentFactory | metaClassContentFactory | The meta class content factory. |
RootBuilder(LocalizationService, MetaClassContentFactory)
Initializes a new instance of the RootBuilder class.
Declaration
[Obsolete("Use RootBuilder(MetaClassContentFactory metaClassContentFactory) instead. Will remain at least until February 2018.")]
public RootBuilder(LocalizationService localizationService, MetaClassContentFactory metaClassContentFactory)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Framework.Localization.LocalizationService | localizationService | Ignored. |
MetaClassContentFactory | metaClassContentFactory | The meta class content factory. |
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 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. |
CreateVersions(IList<ContentReference>)
Creates a list of CatalogContentBase version based on the list of content references
Declaration
public 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. |
HandleType(CatalogContentType)
Checks if this builder handles the specified catalogContentType
.
Declaration
public bool HandleType(CatalogContentType catalogContentType)
Parameters
Type | Name | Description |
---|---|---|
CatalogContentType | catalogContentType | Type of the commerce content. |
Returns
Type | Description |
---|---|
System.Boolean |
|