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
Nested ClassesModifier and TypeClassDescriptionstatic final classAn error during an import, which can beaddedto anImportReport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(ImportReport.ImportError error) Adds an error to this reportvoidaddFrom(ImportReport other) Adds all information (errors...) from the other report to this reportGets an unmodifiable view of the errors of this reportstatic ImportReportunion(Collection<ImportReport> reports) Returns a newImportReportwhich is the union of the given onesstatic ImportReportunion(ImportReport... reports) Returns a newImportReportwhich is the union of the given ones
-
Constructor Details
-
ImportReport
public ImportReport()Creates a new empty report.
-
-
Method Details
-
union
Returns a newImportReportwhich is the union of the given ones- Parameters:
reports- The reports on which to build the union- Returns:
- a new
ImportReportwhich is the union of the given ones
-
union
Returns a newImportReportwhich is the union of the given ones- Parameters:
reports- The reports on which to build the union- Returns:
- a new
ImportReportwhich 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
-