Class ImportResult

java.lang.Object
io.jmix.dataimport.result.ImportResult

public class ImportResult extends Object
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 EntityImportErrors created for not imported entities
  • Error message
  • Field Details

    • success

      protected boolean success
    • importedEntityIds

      protected List<Object> importedEntityIds
    • failedEntities

      protected List<EntityImportError> failedEntities
    • errorMessage

      protected String errorMessage
  • Constructor Details

    • ImportResult

      public ImportResult()
  • Method Details

    • isSuccess

      public boolean isSuccess()
    • setSuccess

      public ImportResult setSuccess(boolean success)
    • getImportedEntityIds

      public List<Object> getImportedEntityIds()
    • setImportedEntityIds

      public void setImportedEntityIds(List<Object> importedEntityIds)
    • getFailedEntities

      public List<EntityImportError> getFailedEntities()
    • addImportedEntityId

      public void addImportedEntityId(Object id)
    • addFailedEntity

      public void addFailedEntity(EntityImportError result)
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public ImportResult setErrorMessage(String errorMessage)