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
ConstructorsConstructorDescriptionImportValidationResponse(boolean successful, String errorMessage, List<LineError> lineErrors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImportValidationResponsegeneralError(String errorMessage) Ifsuccessfulis false, this can contain a message describing any general errors with the request that aren't necessarily tied to any particular line number.Ifsuccessfulis false, this can describe the problems with specific lines in the import file, if any.inthashCode()booleanWhether the import was successfully pre-processed.static ImportValidationResponselineErrors(String errorMessage, List<LineError> lineErrors) static ImportValidationResponsesuccess()toString()
-
Constructor Details
-
ImportValidationResponse
-
-
Method Details
-
success
-
generalError
-
lineErrors
-
isSuccessful
public boolean isSuccessful()Whether the import was successfully pre-processed. -
getErrorMessage
Ifsuccessfulis false, this can contain a message describing any general errors with the request that aren't necessarily tied to any particular line number. -
getLineErrors
Ifsuccessfulis false, this can describe the problems with specific lines in the import file, if any. -
equals
-
hashCode
public int hashCode() -
toString
-