Class CleanupHelper


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

      • CleanupHelper

        public CleanupHelper()
    • Method Detail

      • 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​(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