Interface ExcelSingleMediaValidator
-
- All Superinterfaces:
ExcelValidator
- All Known Implementing Classes:
ExcelMediaCatalogVersionValidator,ExcelMediaCollectionImportValidator,ExcelMediaFilenameExtensionValidator,ExcelMediaImportValidator
public interface ExcelSingleMediaValidator extends ExcelValidator
Allows to validate single media file. It is used byExcelMediaCollectionImportValidatorwhich 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ValidationMessage>validateSingleValue(java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.String> parameters)Allows to validate single media.-
Methods inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
canHandle, validate
-
-
-
-
Method Detail
-
validateSingleValue
java.util.Collection<ValidationMessage> validateSingleValue(java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.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.
-
-