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.
since 2005. The validator is not used anymore. ExcelGenericReferenceValidator already 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 Details

    • BASE_PRODUCT_PATTERN

      protected static final String BASE_PRODUCT_PATTERN
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VALIDATION_BASE_PRODUCT_DOESNT_MATCH

      protected static final String 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

      protected static final String 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

      protected static final String 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: ExcelValidator
      Validates given cell and returns validation result. If cell doesn't have validation issues then ExcelValidationResult.SUCCESS should be returned.
      Specified by:
      validate in interface ExcelValidator
      ctx - - 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

      protected String getFormattedBaseProduct(Map<String,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: ExcelValidator
      Indicates whether given validator can handle a cell based on attribute descriptor and import parameters.
      Specified by:
      canHandle in interface ExcelValidator
      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.