java.lang.Object
de.hybris.platform.marketplaceservices.dataimport.batch.util.DataIntegrationUtils

public class DataIntegrationUtils extends Object
Utility methods used in Marketplace
  • Field Details

  • Method Details

    • resolveVendorCode

      public static String resolveVendorCode(File file)
      resolve vendor code from file parent directories
      Parameters:
      file - the csv being imported
      Returns:
      the vendor code
    • getLogFile

      public static File getLogFile(File file)
      get the log file for an imported csv file
      Parameters:
      file - the csv being imported
      Returns:
      the log file
    • getTempLogFile

      public static File getTempLogFile(File file)
      get the temp log file for an imported csv file
      Parameters:
      file - the csv being imported
      Returns:
      the log temp file
    • createFile

      public static File createFile(File file, String dir, String ext)
      Parameters:
      file - the csv being imported
      dir - the directory where the file to be created
      extension - the file suffix
      Returns:
      the log file