Interface ProductProjectionMixin

All Superinterfaces:
MetaAttributes, ProductDataLike, WithLocalizedSlug
All Known Subinterfaces:
ProductProjection

public interface ProductProjectionMixin extends ProductDataLike
  • Method Details

    • getId

      String getId()
    • findVariant

      default Optional<ProductVariant> findVariant(ByIdVariantIdentifier identifier)
    • findMatchingVariants

      default List<ProductVariant> findMatchingVariants()
      Finds all variants that match the search criteria used in the search request, if any.
      Returns:
      the list containing all matching variants
    • findFirstMatchingVariant

      default Optional<ProductVariant> findFirstMatchingVariant()
      Finds the first matching variant according to the search criteria used in the search request, if any.
      Returns:
      the first product variant that matches the search criteria, or empty if none does