java.lang.Object
de.hybris.platform.acceleratorservices.dataimport.batch.task.CleanupHelper

public class CleanupHelper extends Object
Cleanup for the impex import process. Deletes the transformed file and moves the processed file to the archive directory.
  • Constructor Details

    • CleanupHelper

      public CleanupHelper()
  • Method Details

    • cleanup

      public void cleanup(BatchHeader header, boolean error)
      Performs the cleanup of given header
      Parameters:
      header - to clean up
      error - flag indicating if there was an error
    • cleanupFile

      public void cleanupFile(File file)
      Deletes a file
      Parameters:
      file -
    • cleanupSourceFile

      protected void cleanupSourceFile(BatchHeader header, boolean error)
      Removes the transformed file
      Parameters:
      header -
      error -
    • cleanupTransformedFiles

      protected void cleanupTransformedFiles(BatchHeader header)
      Removes the transformed file
      Parameters:
      header -
    • getDestFile

      protected File getDestFile(File file, boolean error)
      Returns the destination location of the file
      Parameters:
      file -
      error - flag indicating if there was an error
      Returns:
      the destination file
    • setTimeStampFormat

      public void setTimeStampFormat(String timeStampFormat)
      Parameters:
      timeStampFormat - the timeStampFormat to set
    • getTimeStampFormat

      protected String getTimeStampFormat()
      Returns:
      timeStampFormat