Class ImportValidationResponse
java.lang.Object
com.broadleafcommerce.dataimport.service.ImportValidationResponse
Contains detailed information about any validation errors that were found with an import request
and file.
- Author:
- Phillip Verheyden (phillipuniverse), Samarth Dhruva (samarthd)
-
Constructor Summary
ConstructorDescriptionImportValidationResponse
(boolean successful, String errorMessage, List<LineError> lineErrors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ImportValidationResponse
generalError
(String errorMessage) Ifsuccessful
is false, this can contain a message describing any general errors with the request that aren't necessarily tied to any particular line number.Ifsuccessful
is false, this can describe the problems with specific lines in the import file, if any.int
hashCode()
boolean
Whether the import was successfully pre-processed.static ImportValidationResponse
lineErrors
(String errorMessage, List<LineError> lineErrors) static ImportValidationResponse
success()
toString()
-
Constructor Details
-
ImportValidationResponse
-
-
Method Details
-
success
-
generalError
-
lineErrors
-
isSuccessful
public boolean isSuccessful()Whether the import was successfully pre-processed. -
getErrorMessage
Ifsuccessful
is false, this can contain a message describing any general errors with the request that aren't necessarily tied to any particular line number. -
getLineErrors
Ifsuccessful
is false, this can describe the problems with specific lines in the import file, if any. -
equals
-
hashCode
public int hashCode() -
toString
-