Class CmsContentMapping
An import implementation that will import assets according to the the structure of 'asset folder name' / 'asset group' / 'asset file'.
Inherited Members
Namespace: Mediachase.Commerce.Assets.Import
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class CmsContentMapping : ImportBase
Remarks
This is the most efficient way if many product re-use the same image, but may cause maintenance problems if assets are managed from within ECF due to the fact that one image is used in multiple places.
Constructors
CmsContentMapping()
Creates an instance of CmsContentMapping.
Declaration
[Obsolete("This constructor was obsoleted, will remain at least until August 2017.")]
public CmsContentMapping()
CmsContentMapping(IConnectionStringHandler)
Creates an instance of CmsContentMapping.
Declaration
public CmsContentMapping(IConnectionStringHandler connectionHandler)
Parameters
Type | Name | Description |
---|---|---|
IConnectionStringHandler | connectionHandler | The connection handler, which contains connection string to both CMS and Commerce database. |
Methods
DoImport(IEnumerable<AssetMapping>)
The main entry point for import.
Declaration
public override void DoImport(IEnumerable<AssetMapping> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<AssetMapping> | entries |
Overrides
Remarks
Imports each asset file once (according to the information in the mapping file) and associates it with one or more products.
DoImport(IEnumerable<AssetMapping>, IProgressMessenger)
Does the import.
Declaration
public void DoImport(IEnumerable<AssetMapping> entries, IProgressMessenger progressMessenger)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<AssetMapping> | entries | The entries. |
IProgressMessenger | progressMessenger | The progress messenger. |
UpdateAssetType(IProgressMessenger)
Updates the type of the asset for catalog contents.
Declaration
public void UpdateAssetType(IProgressMessenger progressMessenger)
Parameters
Type | Name | Description |
---|---|---|
IProgressMessenger | progressMessenger | The progress messenger. |