Class ExcelBaseProductValidator
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.ExcelBaseProductValidator
-
- All Implemented Interfaces:
ExcelValidator
@Deprecated(since="2005", forRemoval=true) public class ExcelBaseProductValidator extends java.lang.Object implements ExcelValidatorDeprecated, for removal: This API element is subject to removal in a future version.since 2005. The validator is not used anymore.ExcelGenericReferenceValidatoralready covers the base product validation.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
Fields Modifier and Type Field Description protected static java.lang.StringBASE_PRODUCT_PATTERNDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_BASE_PRODUCT_DOESNT_EXISTDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_BASE_PRODUCT_DOESNT_MATCHDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_BASE_PRODUCT_EMPTYDeprecated, 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
Constructors Constructor Description ExcelBaseProductValidator()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanHandle(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 java.util.Optional<ProductModel>findValueInCache(java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.lang.Object> ctx)Deprecated, for removal: This API element is subject to removal in a future version.CatalogVersionServicegetCatalogVersionService()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetFormattedBaseProduct(java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.ProductServicegetProductService()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.ExcelValidationResultvalidate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.Object> ctx)Deprecated, for removal: This API element is subject to removal in a future version.Validates given cell and returns validation result.
-
-
-
Field Detail
-
BASE_PRODUCT_PATTERN
protected static final java.lang.String BASE_PRODUCT_PATTERN
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_BASE_PRODUCT_DOESNT_MATCH
protected static final java.lang.String VALIDATION_BASE_PRODUCT_DOESNT_MATCH
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_BASE_PRODUCT_EMPTY
protected static final java.lang.String VALIDATION_BASE_PRODUCT_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_BASE_PRODUCT_DOESNT_EXIST
protected static final java.lang.String VALIDATION_BASE_PRODUCT_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.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 java.util.Optional<ProductModel> findValueInCache(java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.lang.Object> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getFormattedBaseProduct
protected java.lang.String getFormattedBaseProduct(java.util.Map<java.lang.String,java.lang.String> parameters)
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
public CatalogVersionService getCatalogVersionService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getProductService
public ProductService getProductService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setProductService
public void setProductService(ProductService productService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-