Class ExcelBaseProductValidator
java.lang.Object
com.hybris.backoffice.excel.validators.ExcelBaseProductValidator
- All Implemented Interfaces:
ExcelValidator
@Deprecated(since="2005",
forRemoval=true)
public class ExcelBaseProductValidator
extends Object
implements ExcelValidator
Deprecated, for removal: This API element is subject to removal in a future version.
Default validator for base product. The validator checks whether base product code is not empty and base product for
given catalog version exist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether given validator can handle a cell based on attribute descriptor and import parameters.protected Optional<ProductModel>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected StringgetFormattedBaseProduct(Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetProductService(ProductService productService) Deprecated, for removal: This API element is subject to removal in a future version.validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version.Validates given cell and returns validation result.
-
Field Details
-
BASE_PRODUCT_PATTERN
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_BASE_PRODUCT_DOESNT_MATCH
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_BASE_PRODUCT_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_BASE_PRODUCT_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
ExcelBaseProductValidator
public ExcelBaseProductValidator()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValidatorValidates given cell and returns validation result. If cell doesn't have validation issues thenExcelValidationResult.SUCCESSshould be returned.- Specified by:
validatein interfaceExcelValidatorctx- - map which can be used as a cache. The map is shared between all request for given excel sheet.- Returns:
ExcelValidationResult
-
findValueInCache
protected Optional<ProductModel> findValueInCache(Map<String, String> parameters, Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version. -
getFormattedBaseProduct
Deprecated, for removal: This API element is subject to removal in a future version. -
canHandle
public boolean canHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValidatorIndicates whether given validator can handle a cell based on attribute descriptor and import parameters.- Specified by:
canHandlein interfaceExcelValidator- Returns:
- boolean whether validator can handle the cell.
-
getCatalogVersionService
Deprecated, for removal: This API element is subject to removal in a future version. -
setCatalogVersionService
Deprecated, for removal: This API element is subject to removal in a future version. -
getProductService
Deprecated, for removal: This API element is subject to removal in a future version. -
setProductService
Deprecated, for removal: This API element is subject to removal in a future version.
-
ExcelGenericReferenceValidatoralready covers the base product validation.