Class ImportProductServices
java.lang.Object
org.apache.ofbiz.product.spreadsheetimport.ImportProductServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionproductImportFromSpreadsheet
(DispatchContext dctx, Map<String, ? extends Object> context) This method is responsible to import spreadsheet data into "Product" and "InventoryItem" entities into database.
-
Constructor Details
-
ImportProductServices
public ImportProductServices()
-
-
Method Details
-
productImportFromSpreadsheet
public static Map<String,Object> productImportFromSpreadsheet(DispatchContext dctx, Map<String, ? extends Object> context) throws IOExceptionThis method is responsible to import spreadsheet data into "Product" and "InventoryItem" entities into database. The method uses the ImportProductHelper class to perform its operation. The method uses "Apache POI" api for importing spreadsheet (xls files) data. Note : Create the spreadsheet directory in the ofbiz home folder and keep your xls files in this folder only.- Parameters:
dctx
- the dispatch contextcontext
- the context- Returns:
- the result of the service execution
- Throws:
IOException
-