Class CatalogContentModelTransform
Inheritance
System.Object
CatalogContentModelTransform
Implements
EPiServer.Cms.Shell.UI.Rest.Models.Transforms.IModelTransform
Assembly: EPiServer.Commerce.Shell.dll
Version: 14.26.0
Syntax
public class CatalogContentModelTransform : Object, IModelTransform
Constructors
CatalogContentModelTransform(ExpressionHelper, IPriceService, IMarketService, IInventoryService, LocalizationService, ICatalogSystem, IRelationRepository, ThumbnailUrlResolver, CustomerContext, MetaClassToContentTypeMap)
Declaration
public CatalogContentModelTransform(ExpressionHelper expressionHelper, IPriceService priceService, IMarketService marketService, IInventoryService inventoryService, LocalizationService localizationService, ICatalogSystem catalogContext, IRelationRepository relationRepository, ThumbnailUrlResolver thumbnailUrlResolver, CustomerContext customerContext, MetaClassToContentTypeMap metaClassToContentTypeMap)
Parameters
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
GetThumbnailUrl(IAssetContainer)
Declaration
protected virtual string GetThumbnailUrl(IAssetContainer assetContainer)
Parameters
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