C# Class VirtoCommerce.ModulesPublishing.Import.ModuleImporter

Inheritance: IModuleImporter
Mostra file Open project: VirtoCommerce/vc-internal

Public Methods

Method Description
DoImport ( ImportManifest importManifest, Action progressCallback ) : void
ModuleImporter ( ICatalogService catalogService, ICategoryService categoryService, IItemService productService, IBlobStorageProvider blobStorageProvider, IPushNotificationManager pushNotificationManager, ICatalogSearchService searchService, IPropertyService propertyService, IItemService itemService ) : System

Private Methods

Method Description
AddAsset ( VirtoCommerce.Domain.Catalog.Model.CatalogProduct product, string path ) : void

Add asset to given product

AddIcon ( VirtoCommerce.Domain.Catalog.Model.CatalogProduct product, string extention, byte icon ) : void

Add icon to given product

AddProperty ( VirtoCommerce.Domain.Catalog.Model.CatalogProduct product, string propertyName, object value, PropertyValueType propertyValueType ) : void

Add property value to product

AddVariation ( VirtoCommerce.Domain.Catalog.Model.CatalogProduct product, VirtoCommerce.Platform.Core.Modularity.ModuleManifest manifest, byte icon, string zipModulePath, PublishingResult publishingResult ) : PublishingResult

Add variation to given product + asset + icon + properties

GetCategoriesByCode ( string code, string catalogId ) : VirtoCommerce.Domain.Catalog.Model.Category

Get category by Code from given catalog

GetProductByCode ( string code, string catalogId ) : VirtoCommerce.Domain.Catalog.Model.CatalogProduct

Get product by Code from given catalog

Publish ( VirtoCommerce.Platform.Core.Modularity.ModuleManifest manifest, string zipModulePath, byte icon ) : PublishingResult

Publish given module to AppStore catalog

ReadIcon ( ZipArchive archive, string iconPath ) : byte[]

Read icon of module from archive

Method Details

DoImport() public method

public DoImport ( ImportManifest importManifest, Action progressCallback ) : void
importManifest ImportManifest
progressCallback Action
return void

ModuleImporter() public method

public ModuleImporter ( ICatalogService catalogService, ICategoryService categoryService, IItemService productService, IBlobStorageProvider blobStorageProvider, IPushNotificationManager pushNotificationManager, ICatalogSearchService searchService, IPropertyService propertyService, IItemService itemService ) : System
catalogService ICatalogService
categoryService ICategoryService
productService IItemService
blobStorageProvider IBlobStorageProvider
pushNotificationManager IPushNotificationManager
searchService ICatalogSearchService
propertyService IPropertyService
itemService IItemService
return System