Class CleanupHelper
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.dataimport.batch.task.CleanupHelper
-
public class CleanupHelper extends java.lang.ObjectCleanup for the impex import process. Deletes the transformed file and moves the processed file to the archive directory.
-
-
Constructor Summary
Constructors Constructor Description CleanupHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup(BatchHeader header, boolean error)Performs the cleanup of given headervoidcleanupFile(java.io.File file)Deletes a fileprotected voidcleanupSourceFile(BatchHeader header, boolean error)Removes the transformed fileprotected voidcleanupTransformedFiles(BatchHeader header)Removes the transformed fileprotected java.io.FilegetDestFile(java.io.File file, boolean error)Returns the destination location of the fileprotected java.lang.StringgetTimeStampFormat()voidsetTimeStampFormat(java.lang.String timeStampFormat)
-
-
-
Method Detail
-
cleanup
public void cleanup(BatchHeader header, boolean error)
Performs the cleanup of given header- Parameters:
header- to clean uperror- flag indicating if there was an error
-
cleanupFile
public void cleanupFile(java.io.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 java.io.File getDestFile(java.io.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(java.lang.String timeStampFormat)
- Parameters:
timeStampFormat- the timeStampFormat to set
-
getTimeStampFormat
protected java.lang.String getTimeStampFormat()
- Returns:
- timeStampFormat
-
-