Class CleanupHelper
java.lang.Object
de.hybris.platform.acceleratorservices.dataimport.batch.task.CleanupHelper
Cleanup for the impex import process. Deletes the transformed file and moves the processed file to the archive
directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(BatchHeader header, boolean error) Performs the cleanup of given headervoidcleanupFile(File file) Deletes a fileprotected voidcleanupSourceFile(BatchHeader header, boolean error) Removes the transformed fileprotected voidcleanupTransformedFiles(BatchHeader header) Removes the transformed fileprotected FilegetDestFile(File file, boolean error) Returns the destination location of the fileprotected StringvoidsetTimeStampFormat(String timeStampFormat)
-
Constructor Details
-
CleanupHelper
public CleanupHelper()
-
-
Method Details
-
cleanup
Performs the cleanup of given header- Parameters:
header- to clean uperror- flag indicating if there was an error
-
cleanupFile
Deletes a file- Parameters:
file-
-
cleanupSourceFile
Removes the transformed file- Parameters:
header-error-
-
cleanupTransformedFiles
Removes the transformed file- Parameters:
header-
-
getDestFile
Returns the destination location of the file- Parameters:
file-error- flag indicating if there was an error- Returns:
- the destination file
-
setTimeStampFormat
- Parameters:
timeStampFormat- the timeStampFormat to set
-
getTimeStampFormat
- Returns:
- timeStampFormat
-