Class ExcelBaseProductValidator

  • All Implemented Interfaces:
    ExcelValidator

    @Deprecated(since="2005",
                forRemoval=true)
    public class ExcelBaseProductValidator
    extends java.lang.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.
    • 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
      boolean canHandle​(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.
       
      CatalogVersionService getCatalogVersionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      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.
       
      ProductService getProductService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setProductService​(ProductService productService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      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.
      Validates given cell and returns validation result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ExcelBaseProductValidator

        public ExcelBaseProductValidator()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • 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: 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.