Class AbstractMultidimensionalProductFieldValueProvider

    • Constructor Detail

      • AbstractMultidimensionalProductFieldValueProvider

        public AbstractMultidimensionalProductFieldValueProvider()
    • Method Detail

      • getFieldValue

        protected abstract java.lang.Object getFieldValue​(ProductModel product)
      • addFieldValues

        protected void addFieldValues​(java.util.List<FieldValue> fieldValues,
                                      IndexedProperty indexedProperty,
                                      java.lang.Object value)
        Add a value in the list of field values. It will add one entry for each FieldValue related to the given Solr property.
        Parameters:
        fieldValues - The list of field values.
        indexedProperty - The property used on Solr.
        value - The value to be added.
      • getBaseProduct

        public ProductModel getBaseProduct​(ProductModel model)
        For a given product, retrieve its base product.
        Parameters:
        model - The product.
        Returns:
        The base product, if it is a variant product, or the model, if it is already the base product or is not a variant product.
      • isVariantBaseProduct

        public boolean isVariantBaseProduct​(ProductModel model)
        For a given product, finds out if it is a base product of GenericVariantProductModel products.
        Parameters:
        model - The product.
        Returns:
        True if it is a base product that has generic variants.
      • setFieldNameProvider

        public void setFieldNameProvider​(FieldNameProvider fieldNameProvider)