With Opticon around the corner, we'll be canceling this month's (Sept) Happy Hour.

Class CatalogContentModelTransform

Inheritance
System.Object
CatalogContentModelTransform
Implements
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransform
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.Shell.Rest
Assembly: EPiServer.Commerce.Shell.dll
Version: 13.30.0
Syntax
public class CatalogContentModelTransform : IModelTransform

Constructors

CatalogContentModelTransform(ExpressionHelper, IPriceService, IMarketService, IInventoryService, LocalizationService, ICatalogSystem, IRelationRepository, ThumbnailUrlResolver, CustomerContext)

Declaration
public CatalogContentModelTransform(ExpressionHelper expressionHelper, IPriceService priceService, IMarketService marketService, IInventoryService inventoryService, LocalizationService localizationService, ICatalogSystem catalogContext, IRelationRepository relationRepository, ThumbnailUrlResolver thumbnailUrlResolver, CustomerContext customerContext)
Parameters
Type Name Description
ExpressionHelper expressionHelper
IPriceService priceService
IMarketService marketService
IInventoryService inventoryService
EPiServer.Framework.Localization.LocalizationService localizationService
ICatalogSystem catalogContext
IRelationRepository relationRepository
ThumbnailUrlResolver thumbnailUrlResolver
CustomerContext customerContext

Properties

Order

Declaration
public virtual TransformOrder Order { get; }
Property Value
Type Description
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.TransformOrder

Methods

AddDisplayName(IDictionary<String, Object>, CatalogContentBase)

Declaration
protected virtual void AddDisplayName(IDictionary<string, object> properties, CatalogContentBase catalogContent)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Object> properties
CatalogContentBase catalogContent

AddInterfaceProperties(IDictionary<String, Object>, CatalogContentBase)

Declaration
protected virtual void AddInterfaceProperties(IDictionary<string, object> properties, CatalogContentBase content)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Object> properties
CatalogContentBase content

AddMetaClassName(IDictionary<String, Object>, IMetaClass)

Declaration
protected virtual void AddMetaClassName(IDictionary<string, object> properties, IMetaClass metaClassContent)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Object> properties
IMetaClass metaClassContent

AddPrices(IEnumerable<CatalogKey>, IDictionary<CatalogKey, PropertyDictionary>, DefaultQueryParameters)

Declaration
protected virtual void AddPrices(IEnumerable<CatalogKey> catalogKeys, IDictionary<CatalogKey, PropertyDictionary> propertiesByCatalogKey, DefaultQueryParameters queryParameters)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<CatalogKey> catalogKeys
System.Collections.Generic.IDictionary<CatalogKey, EPiServer.Cms.Shell.UI.Rest.Models.PropertyDictionary> propertiesByCatalogKey
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters queryParameters

AddStocksInfo(IEnumerable<CatalogKey>, IDictionary<CatalogKey, PropertyDictionary>)

Declaration
protected virtual void AddStocksInfo(IEnumerable<CatalogKey> catalogKeys, IDictionary<CatalogKey, PropertyDictionary> propertiesByCatalogKey)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<CatalogKey> catalogKeys
System.Collections.Generic.IDictionary<CatalogKey, EPiServer.Cms.Shell.UI.Rest.Models.PropertyDictionary> propertiesByCatalogKey

CanExecute(Type, DefaultQueryParameters)

Declaration
public bool CanExecute(Type targetType, DefaultQueryParameters queryParameters)
Parameters
Type Name Description
System.Type targetType
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters queryParameters
Returns
Type Description
System.Boolean

Execute(IEnumerable<IModelTransformContext>)

Declaration
public virtual IEnumerable<IModelTransformContext> Execute(IEnumerable<IModelTransformContext> models)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransformContext> models
Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransformContext>

GetSelectedMarket(DefaultQueryParameters)

Declaration
protected virtual IMarket GetSelectedMarket(DefaultQueryParameters queryParameters)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.DefaultQueryParameters queryParameters
Returns
Type Description
IMarket

GetThumbnailUrl(IAssetContainer)

Declaration
protected virtual string GetThumbnailUrl(IAssetContainer assetContainer)
Parameters
Type Name Description
IAssetContainer assetContainer
Returns
Type Description
System.String

SetToolTip(IModelTransformContext, PropertyDictionary, EntryContentBase)

Declaration
protected virtual void SetToolTip(IModelTransformContext context, PropertyDictionary properties, EntryContentBase content)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransformContext context
EPiServer.Cms.Shell.UI.Rest.Models.PropertyDictionary properties
EntryContentBase content

ShouldTransformInstance(IModelTransformContext)

Declaration
protected virtual bool ShouldTransformInstance(IModelTransformContext model)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransformContext model
Returns
Type Description
System.Boolean

TransformInstance(IModelTransformContext)

Declaration
protected virtual void TransformInstance(IModelTransformContext context)
Parameters
Type Name Description
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransformContext context

Implements

EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransform