C# Class Nop.Services.ExportImport.ImportManager

Import manager
Inheritance: IImportManager
Mostra file Open project: grandnode/grandnode

Public Methods

Method Description
ImportCategoryFromXlsx ( Stream stream ) : void

Import categories from XLSX file

ImportManager ( IProductService productService, ICategoryService categoryService, IManufacturerService manufacturerService, IPictureService pictureService, IUrlRecordService urlRecordService, IStoreContext storeContext, INewsLetterSubscriptionService newsLetterSubscriptionService, ICountryService countryService, IStateProvinceService stateProvinceService ) : System
ImportManufacturerFromXlsx ( Stream stream ) : void

Import manufacturers from XLSX file

ImportNewsletterSubscribersFromTxt ( Stream stream ) : int

Import newsletter subscribers from TXT file

ImportProductsFromXlsx ( Stream stream ) : void

Import products from XLSX file

ImportStatesFromTxt ( Stream stream ) : int

Import states from TXT file

Protected Methods

Method Description
ConvertColumnToString ( object columnValue ) : string
GetColumnIndex ( string properties, string columnName ) : int
GetMimeTypeFromFilePath ( string filePath ) : string
LoadPicture ( string picturePath, string name, int picId = null ) : Picture

Creates or loads the image

Method Details

ConvertColumnToString() protected method

protected ConvertColumnToString ( object columnValue ) : string
columnValue object
return string

GetColumnIndex() protected method

protected GetColumnIndex ( string properties, string columnName ) : int
properties string
columnName string
return int

GetMimeTypeFromFilePath() protected method

protected GetMimeTypeFromFilePath ( string filePath ) : string
filePath string
return string

ImportCategoryFromXlsx() public method

Import categories from XLSX file
public ImportCategoryFromXlsx ( Stream stream ) : void
stream Stream Stream
return void

ImportManager() public method

public ImportManager ( IProductService productService, ICategoryService categoryService, IManufacturerService manufacturerService, IPictureService pictureService, IUrlRecordService urlRecordService, IStoreContext storeContext, INewsLetterSubscriptionService newsLetterSubscriptionService, ICountryService countryService, IStateProvinceService stateProvinceService ) : System
productService IProductService
categoryService ICategoryService
manufacturerService IManufacturerService
pictureService IPictureService
urlRecordService IUrlRecordService
storeContext IStoreContext
newsLetterSubscriptionService INewsLetterSubscriptionService
countryService ICountryService
stateProvinceService IStateProvinceService
return System

ImportManufacturerFromXlsx() public method

Import manufacturers from XLSX file
public ImportManufacturerFromXlsx ( Stream stream ) : void
stream Stream Stream
return void

ImportNewsletterSubscribersFromTxt() public method

Import newsletter subscribers from TXT file
public ImportNewsletterSubscribersFromTxt ( Stream stream ) : int
stream Stream Stream
return int

ImportProductsFromXlsx() public method

Import products from XLSX file
public ImportProductsFromXlsx ( Stream stream ) : void
stream Stream Stream
return void

ImportStatesFromTxt() public method

Import states from TXT file
public ImportStatesFromTxt ( Stream stream ) : int
stream Stream Stream
return int

LoadPicture() protected method

Creates or loads the image
protected LoadPicture ( string picturePath, string name, int picId = null ) : Picture
picturePath string The path to the image file
name string The name of the object
picId int Image identifier, may be null
return Picture