Package de.elo.ix.client.imfs
Class ReportFile
java.lang.Object
de.elo.ix.client.imfs.ReportFile
This class provides functions to write a CSV formatted report file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Document or folder already exists.static final int
Imported item is a document Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.static final int
Import failed.static final int
Imported item is a folder.static final int
Item has been imported.static final int
Item has received an empty ACL.static final int
A reference has been created for this item.static final int
Item has been skipped. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close report file.void
onItemImported
(File source, int objId, String destArcPath, long millis, int reportControl, Exception ex) Called during import to notify about a processed item.void
onItemImported
(File source, int objId, String destArcPath, long millis, int reportControl, String errorMessage) Called during import to notify about a processed item.
-
Field Details
-
ALREADY_EXISTS
public static final int ALREADY_EXISTSDocument or folder already exists. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
FOLDER
public static final int FOLDERImported item is a folder. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
DOCUMENT
public static final int DOCUMENTImported item is a document Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
IMPORTED
public static final int IMPORTEDItem has been imported. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
FAILED
public static final int FAILEDImport failed. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
SKIPPED
public static final int SKIPPEDItem has been skipped. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
NO_ACL
public static final int NO_ACLItem has received an empty ACL. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
REFERENCE
public static final int REFERENCEA reference has been created for this item. Used as parameter reportInfo inonItemImported(File, int, String, long, int, String)
.- See Also:
-
-
Constructor Details
-
ReportFile
Constructor.- Parameters:
options
- Report file options.- Throws:
Exception
-
-
Method Details
-
onItemImported
public void onItemImported(File source, int objId, String destArcPath, long millis, int reportControl, Exception ex) Called during import to notify about a processed item.- Parameters:
source
- Processed file (or directory).objId
- Object ID of imported item.destArcPath
- Archive path or name of imported item.millis
- Duration of processing.reportControl
- Bitset of constants that describe whether the file was imported, skipped, etc.ex
- Exception object in case of an error. Otherwise null.
-
onItemImported
public void onItemImported(File source, int objId, String destArcPath, long millis, int reportControl, String errorMessage) Called during import to notify about a processed item.- Parameters:
source
- Processed file (or directory).objId
- Object ID of imported item.destArcPath
- Archive path or name of imported item.millis
- Duration of processing.reportControl
- Bitset of constants that describe whether the file was imported, skipped, etc.errorMessage
- Error message in case of an error. Otherwise null.
-
close
public void close()Close report file.
-