public class ItemImportResult extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemImportResult.DatahubAdapterEventStatus
Possible event status.
|
| Constructor and Description |
|---|
ItemImportResult()
Instantiates successful import result.
|
ItemImportResult(Exception e)
Instantiates error result for a crashed import process.
|
| Modifier and Type | Method and Description |
|---|---|
ItemImportResult |
addErrors(Collection<ImportError> errors)
Adds errors to this result
|
Collection<ImportError> |
getErrors()
Retrieves all errors reported by the import process.
|
String |
getExceptionMessage()
Retrieves message of exception that happened during the import process.
|
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.
|
String |
toString() |
public ItemImportResult()
public ItemImportResult(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 ItemImportResult addErrors(Collection<ImportError> errors)
errors - import errors to add to this resultIllegalArgumentException - if null passed in.public Collection<ImportError> getErrors()
public String getExceptionMessage()
null, if there were no exception.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)Copyright © 2017 SAP SE. All Rights Reserved.