Package io.jmix.dataimport.result
Class ImportResult
java.lang.Object
io.jmix.dataimport.result.ImportResult
An object that contains the following information about the import execution result:
- Success: whether entities import is executed successfully or not
- List of entity ids that are successfully imported
- List of
EntityImportError
s created for not imported entities - Error message
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected List<EntityImportError>
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFailedEntity
(EntityImportError result) void
boolean
setErrorMessage
(String errorMessage) void
setImportedEntityIds
(List<Object> importedEntityIds) setSuccess
(boolean success)
-
Field Details
-
success
protected boolean success -
importedEntityIds
-
failedEntities
-
errorMessage
-
-
Constructor Details
-
ImportResult
public ImportResult()
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
setSuccess
-
getImportedEntityIds
-
setImportedEntityIds
-
getFailedEntities
-
addImportedEntityId
-
addFailedEntity
-
getErrorMessage
-
setErrorMessage
-