Interface ExcelSingleMediaValidator
- All Superinterfaces:
ExcelValidator
- All Known Implementing Classes:
ExcelMediaCatalogVersionValidator,ExcelMediaCollectionImportValidator,ExcelMediaFilenameExtensionValidator,ExcelMediaImportValidator
Allows to validate single media file. It is used by
ExcelMediaCollectionImportValidator which splits the
collection of media and validates it one by one.-
Field Summary
Fields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES -
Method Summary
Modifier and TypeMethodDescriptionAllows to validate single media.Methods inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
canHandle, validate
-
Method Details
-
validateSingleValue
Collection<ValidationMessage> validateSingleValue(Map<String, Object> context, Map<String, String> parameters) Allows to validate single media.- Parameters:
context- which allows to hold information about the file.parameters- values of excel's cell.- Returns:
- the collection of errors. If media has no errors, then the empty collection should be returned.
-