Class ExcelMediaCatalogVersionValidator
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.ExcelCatalogVersionValidator
-
- com.hybris.backoffice.excel.validators.ExcelMediaCatalogVersionValidator
-
- All Implemented Interfaces:
ExcelSingleMediaValidator,ExcelValidator
public class ExcelMediaCatalogVersionValidator extends ExcelCatalogVersionValidator implements ExcelSingleMediaValidator
Validator which checks if catalog version of media is correct. Checks:- if catalog exists
- if version exists in given catalog
-
-
Field Summary
-
Fields inherited from class com.hybris.backoffice.excel.validators.ExcelCatalogVersionValidator
CATALOG_VERSIONS_FORMAT_KEY, CATALOG_VERSIONS_KEY, CATALOGS_KEY, VALIDATION_CATALOG_DOESNT_EXIST, VALIDATION_CATALOG_EMPTY, VALIDATION_CATALOG_VERSION_DOESNT_EXIST, VALIDATION_CATALOG_VERSION_DOESNT_MATCH, VALIDATION_CATALOG_VERSION_EMPTY, VERSIONS_KEY
-
Fields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES
-
-
Constructor Summary
Constructors Constructor Description ExcelMediaCatalogVersionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ValidationMessage>validateSingleValue(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Allows to validate single media.-
Methods inherited from class com.hybris.backoffice.excel.validators.ExcelCatalogVersionValidator
canHandle, catalogExists, catalogVersionExists, catalogVersionMatch, getCatalogVersionService, getTypeService, getUserService, populateContext, populateContextIfNeeded, setCatalogVersionService, setTypeService, setUserService, validate, validateCatalog, validateCatalogVersion, validateSingleReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
canHandle, validate
-
-
-
-
Method Detail
-
validateSingleValue
public java.util.Collection<ValidationMessage> validateSingleValue(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)
Description copied from interface:ExcelSingleMediaValidatorAllows to validate single media.- Specified by:
validateSingleValuein interfaceExcelSingleMediaValidator- Parameters:
ctx- 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.
-
-