Class ImportReport
java.lang.Object
org.ametys.plugins.contentio.archive.ImportReport
A report of an import ,whether it is a global, partial or unitary one.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
An error during an import, which can beadded
to anImportReport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(ImportReport.ImportError error) Adds an error to this reportvoid
addFrom
(ImportReport other) Adds all information (errors...) from the other report to this reportGets an unmodifiable view of the errors of this reportstatic ImportReport
union
(Collection<ImportReport> reports) Returns a newImportReport
which is the union of the given onesstatic ImportReport
union
(ImportReport... reports) Returns a newImportReport
which is the union of the given ones
-
Constructor Details
-
ImportReport
public ImportReport()Creates a new empty report.
-
-
Method Details
-
union
Returns a newImportReport
which is the union of the given ones- Parameters:
reports
- The reports on which to build the union- Returns:
- a new
ImportReport
which is the union of the given ones
-
union
Returns a newImportReport
which is the union of the given ones- Parameters:
reports
- The reports on which to build the union- Returns:
- a new
ImportReport
which is the union of the given ones
-
getErrors
Gets an unmodifiable view of the errors of this report- Returns:
- an unmodifiable view of the errors of this report
-
addError
Adds an error to this report- Parameters:
error
- The error to add
-
addFrom
Adds all information (errors...) from the other report to this report- Parameters:
other
- The other report
-