Class ImportProductServices

java.lang.Object
org.apache.ofbiz.product.spreadsheetimport.ImportProductServices

public class ImportProductServices extends Object
  • Constructor Details

    • ImportProductServices

      public ImportProductServices()
  • Method Details

    • productImportFromSpreadsheet

      public static Map<String,Object> productImportFromSpreadsheet(DispatchContext dctx, Map<String,? extends Object> context) throws IOException
      This 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 context
      context - the context
      Returns:
      the result of the service execution
      Throws:
      IOException