Interface CatalogProvider

  • All Known Implementing Classes:
    ExternalCatalogProvider

    public interface CatalogProvider
    Provider for interfacing with operations around a Catalog related entities. Typically utilizes WebClient to make requests to an external REST API.
    Author:
    Chad Harchar (charchar)
    • Method Detail

      • retrieveProduct

        Product retrieveProduct​(String productId,
                                @Nullable
                                com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve the product for the context information provided. The product should be fully hydrated with all of its relationships including pricing (although not offers).
        Parameters:
        productId - The id of the product to be retrieved.
        contextInfo - Context information around sandbox and multitenant state.
        Returns:
        The product for the id and application provided.
      • retrieveProducts

        ProductList retrieveProducts​(Collection<String> productIds,
                                     @Nullable
                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve the products for the context information provided. The products should be fully hydrated with all of their relationships including pricing (although not offers).
        Parameters:
        productIds - The ids of the products to be retrieved.
        contextInfo - Context information around sandbox and multitenant state.
        Returns:
        The products for the ids and application provided.
      • retrieveCartItemProductMappings

        List<CartItemMappingProperties.FieldMapping> retrieveCartItemProductMappings​(@Nullable
                                                                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve a list of cart item to product mappings
        Parameters:
        contextInfo - Context information around sandbox and multitenant state.
        Returns:
        The list of FieldMapping