Package de.elo.ix.client.imfs
Class ImportProgress
java.lang.Object
de.elo.ix.client.imfs.ImportProgress
Simplify progress forwarding and count imported documents and folders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onFileAlreadyExists
(File file) Notify about an already existing document or folder.void
onFileError
(File file, Exception ex) Notify about an error.void
onFileImport
(File file, boolean importNotAnalyze) Notify about an imported document or folder.void
onFileSkipped
(File file, boolean importNotAnalyze) Notify about a skipped file.void
onReferenceError
(File file, String internalName) Notify about a reference created for a duplicate with differing file- and ELO-names.void
onReferenceImported
(File file) Notify about a reference created for a duplicate.void
setCounters
(Counters counters) void
setProgressCallback
(ProgressCallback progressCallback)
-
Constructor Details
-
ImportProgress
Constructor- Parameters:
progressCallback
- Functional interface.
-
-
Method Details
-
onFileImport
Notify about an imported document or folder. This function incrementsCounters.documents
orCounters.folders
of the internal managedcounters
object.- Parameters:
file
- Imported fileimportNotAnalyze
- true when called in an import process, false when called in an analyze process.
-
onFileSkipped
Notify about a skipped file. A file is skipped, if the filters exclude it. This function incrementsCounters.skipped
of the internal managedcounters
object.- Parameters:
file
- Skipped fileimportNotAnalyze
- true when called in an import process, false when called in an analyze process.
-
onFileAlreadyExists
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 incrementsCounters.skipped
of the internal managedcounters
object.- Parameters:
file
- File object, for which the archive destination exists.
-
onReferenceImported
Notify about a reference created for a duplicate. This function incrementsCounters.references
of the internal managedcounters
object.- Parameters:
file
- Duplicate file.
-
onReferenceError
Notify about a reference created for a duplicate with differing file- and ELO-names. This function does not incrementCounters.references
of the internal managedcounters
object.- Parameters:
file
- Duplicate fileinternalName
- Name of the reference in the archive
-
onFileError
Notify about an error. This function incrementsCounters.errors
of the internal managedcounters
object.- Parameters:
file
- File object.ex
- Exception
-
getCounters
-
setCounters
-
getProgressCallback
-
setProgressCallback
-