Class ImportProgress

java.lang.Object
de.elo.ix.client.imfs.ImportProgress

public class ImportProgress extends Object
Simplify progress forwarding and count imported documents and folders.
  • Constructor Details

    • ImportProgress

      public ImportProgress(ProgressCallback progressCallback)
      Constructor
      Parameters:
      progressCallback - Functional interface.
  • Method Details

    • onFileImport

      public void onFileImport(File file, boolean importNotAnalyze)
      Notify about an imported document or folder. This function increments Counters.documents or Counters.folders of the internal managed counters object.
      Parameters:
      file - Imported file
      importNotAnalyze - true when called in an import process, false when called in an analyze process.
    • onFileSkipped

      public void onFileSkipped(File file, boolean importNotAnalyze)
      Notify about a skipped file. A file is skipped, if the filters exclude it. This function increments Counters.skipped of the internal managed counters object.
      Parameters:
      file - Skipped file
      importNotAnalyze - true when called in an import process, false when called in an analyze process.
    • onFileAlreadyExists

      public void onFileAlreadyExists(File file)
      Notify about an already existing document or folder. This function is called, if the archive destination does already exist. Such files are skipped. This function increments Counters.skipped of the internal managed counters object.
      Parameters:
      file - File object, for which the archive destination exists.
    • onReferenceImported

      public void onReferenceImported(File file)
      Notify about a reference created for a duplicate. This function increments Counters.references of the internal managed counters object.
      Parameters:
      file - Duplicate file.
    • onReferenceError

      public void onReferenceError(File file, String internalName)
      Notify about a reference created for a duplicate with differing file- and ELO-names. This function does not increment Counters.references of the internal managed counters object.
      Parameters:
      file - Duplicate file
      internalName - Name of the reference in the archive
    • onFileError

      public void onFileError(File file, Exception ex)
      Notify about an error. This function increments Counters.errors of the internal managed counters object.
      Parameters:
      file - File object.
      ex - Exception
    • getCounters

      public Counters getCounters()
    • setCounters

      public void setCounters(Counters counters)
    • getProgressCallback

      public ProgressCallback getProgressCallback()
    • setProgressCallback

      public void setProgressCallback(ProgressCallback progressCallback)