public class ItemImportResult extends DataItemImportResult<ImportError>
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemImportResult.DatahubAdapterEventStatus
Possible event status.
|
| Constructor and Description |
|---|
ItemImportResult()
Instantiates successful import result.
|
ItemImportResult(java.lang.Exception e)
Instantiates error result for a crashed import process.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ImportError> |
getErrors()
Retrieves all errors reported by the import process.
|
java.lang.String |
getExceptionMessage()
Retrieves message of exception that happened during the import process.
|
java.util.List<ImportError> |
getExportErrorDatas() |
ItemImportResult.DatahubAdapterEventStatus |
getStatus()
Return the status of an
ItemImportResult based on whether the import had
no errors or importExceptionMessage (SUCCESS), had errors but no importException (PARTIAL_SUCCESS), or had
importException (FAILURE) |
boolean |
isSuccessful()
Determines whether the item import ran successfully or not.
|
java.lang.String |
toString() |
addErrors, getImportExceptionMessage, isSuccess, setExceptionMessagepublic ItemImportResult()
public ItemImportResult(java.lang.Exception e)
e - an exception that was intercepted from the import process.public boolean isSuccessful()
true, if import was successful; false, if the import crashed or there are
rejected items.public java.util.Collection<ImportError> getErrors()
public java.lang.String getExceptionMessage()
null, if there were no exception.public java.lang.String toString()
toString in class DataItemImportResult<ImportError>public ItemImportResult.DatahubAdapterEventStatus getStatus()
ItemImportResult based on whether the import had
no errors or importExceptionMessage (SUCCESS), had errors but no importException (PARTIAL_SUCCESS), or had
importException (FAILURE)public java.util.List<ImportError> getExportErrorDatas()
getExportErrorDatas in class DataItemImportResult<ImportError>Copyright © 2018 SAP SE. All Rights Reserved.