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_KEYFields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows 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, validateSingleReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
canHandle, validate
-
Constructor Details
-
ExcelMediaCatalogVersionValidator
public ExcelMediaCatalogVersionValidator()
-
-
Method Details
-
validateSingleValue
public Collection<ValidationMessage> validateSingleValue(Map<String, Object> ctx, Map<String, 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.
-