Class DataItemImportResult<T extends DataImportError>
java.lang.Object
de.hybris.platform.dataimportcommons.facades.DataItemImportResult<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ItemImportResult
Encapsulates result of importing the data.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates successful import result.Instantiates error result for a crashed import process.DataItemImportResult(String message) Instantiates error result for a crashed import job. -
Method Summary
Modifier and TypeMethodDescriptionaddErrors(Collection<T> errors) Adds errors to this resultbooleanvoidsetExceptionMessage(String exceptionMessage) toString()
-
Constructor Details
-
DataItemImportResult
public DataItemImportResult()Instantiates successful import result. -
DataItemImportResult
Instantiates error result for a crashed import process.- Parameters:
e- an exception that was intercepted from the import process.
-
DataItemImportResult
Instantiates error result for a crashed import job.- Parameters:
message- an error message explaining the problem with the job execution.
-
-
Method Details
-
setExceptionMessage
-
addErrors
Adds errors to this result- Parameters:
errors- import errors to add to this result- Returns:
- this result
- Throws:
IllegalArgumentException- if null passed in.
-
isSuccess
public boolean isSuccess() -
getExportErrorDatas
-
getImportExceptionMessage
-
toString
-