C# Class Nop.Services.ExportImport.ImportManager

Import manager
Inheritance: IImportManager
Afficher le fichier Open project: grandnode/grandnode

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

protected ConvertColumnToString ( object columnValue ) : string
columnValue object
Résultat string

GetColumnIndex() protected méthode

protected GetColumnIndex ( string properties, string columnName ) : int
properties string
columnName string
Résultat int

GetMimeTypeFromFilePath() protected méthode

protected GetMimeTypeFromFilePath ( string filePath ) : string
filePath string
Résultat string

ImportCategoryFromXlsx() public méthode

Import categories from XLSX file
public ImportCategoryFromXlsx ( Stream stream ) : void
stream Stream Stream
Résultat void

ImportManager() public méthode

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
Résultat System

ImportManufacturerFromXlsx() public méthode

Import manufacturers from XLSX file
public ImportManufacturerFromXlsx ( Stream stream ) : void
stream Stream Stream
Résultat void

ImportNewsletterSubscribersFromTxt() public méthode

Import newsletter subscribers from TXT file
public ImportNewsletterSubscribersFromTxt ( Stream stream ) : int
stream Stream Stream
Résultat int

ImportProductsFromXlsx() public méthode

Import products from XLSX file
public ImportProductsFromXlsx ( Stream stream ) : void
stream Stream Stream
Résultat void

ImportStatesFromTxt() public méthode

Import states from TXT file
public ImportStatesFromTxt ( Stream stream ) : int
stream Stream Stream
Résultat int

LoadPicture() protected méthode

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
Résultat Picture