Interface CatalogProvider<T1 extends ComprehensiveProduct,T2 extends Variant> 
- All Known Implementing Classes:
 ExternalCatalogProvider
public interface CatalogProvider<T1 extends ComprehensiveProduct,T2 extends Variant> 
Interface for interacting with catalog data, typically by making remote calls.
- Author:
 - Kelly Tisdell (ktisdell)
 
- 
Method Summary
Modifier and TypeMethodDescriptioncreateProduct(T1 product, BatchContext<?> batchContext) createVariant(T1 product, T2 variant, BatchContext<?> batchContext) voiddeleteVariant(String productId, String variantId, BatchContext<?> context) generateOptions(GenerateProductOption generateProductOption, BatchContext<?> batchContext) readDataDrivenEnums(DataDrivenEnumRequestFilters filters, BatchContext<?> batchContext) Fetches a list of DataDrivenEnums based on the provided filters.readOptionTemplateGroups(cz.jirutka.rsql.parser.ast.Node node, BatchContext<?> batchContext) readOptionTemplateGroupsByNameIn(Collection<String> names, BatchContext<?> batchContext) readOptionTemplates(cz.jirutka.rsql.parser.ast.Node node, BatchContext<?> batchContext) readOptionTemplatesByNameIn(Collection<String> names, BatchContext<?> batchContext) readProductById(String productId, BatchContext<?> batchContext) readProducts(List<T1> requestedProducts, BatchContext<?> batchContext) Fetches a list of Products based on externalId, SKU, or URI.readProducts(org.springframework.util.MultiValueMap<String, String> params, BatchContext<?> context) readVariant(String productId, String variantId, BatchContext<?> context) readVariantById(String productId, String variantId, BatchContext<?> batchContext) readVariants(List<T1> products, BatchContext<?> batchContext) readVariantsForProduct(T1 products, BatchContext<?> batchContext) saveProductTranslations(T1 product, Locale locale, List<Translation> translations, BatchContext<?> batchContext) Saves translations, specifically for a Product.saveVariantTranslations(T1 product, T2 variant, Locale locale, List<Translation> translations, BatchContext<?> batchContext) updateProduct(T1 product, BatchContext<?> batchContext) updateVariant(T1 product, T2 variant, BatchContext<?> batchContext)  
- 
Method Details
- 
readProducts
Fetches a list of Products based on externalId, SKU, or URI. This is to find existing products for update.- Parameters:
 requestedProducts-batchContext-- Returns:
 
 - 
readProducts
ProductList<T1> readProducts(@Nullable org.springframework.util.MultiValueMap<String, String> params, @Nullable BatchContext<?> context)  - 
readProductById
 - 
createProduct
 - 
updateProduct
 - 
generateOptions
 - 
readVariantById
 - 
readVariant
 - 
deleteVariant
 - 
saveProductTranslations
List<Translation> saveProductTranslations(T1 product, Locale locale, List<Translation> translations, BatchContext<?> batchContext) Saves translations, specifically for a Product.- Parameters:
 product- the product for which to save translationslocale- the locale for the translations - must be the same for alltranslations- the list of translationsbatchContext- the batch context including theContextInfo- Returns:
 - the list of translations
 
 - 
readVariants
 - 
readVariantsForProduct
 - 
createVariant
 - 
updateVariant
 - 
saveVariantTranslations
List<Translation> saveVariantTranslations(T1 product, T2 variant, Locale locale, List<Translation> translations, BatchContext<?> batchContext)  - 
readDataDrivenEnums
DataDrivenEnumResponse readDataDrivenEnums(DataDrivenEnumRequestFilters filters, BatchContext<?> batchContext) Fetches a list of DataDrivenEnums based on the provided filters.- Parameters:
 filters- the filters to applybatchContext- the batch context- Returns:
 - the list of DataDrivenEnums
 
 - 
readOptionTemplateGroups
List<OptionTemplateGroup> readOptionTemplateGroups(cz.jirutka.rsql.parser.ast.Node node, BatchContext<?> batchContext)  - 
readOptionTemplates
List<OptionTemplate> readOptionTemplates(cz.jirutka.rsql.parser.ast.Node node, BatchContext<?> batchContext)  - 
readOptionTemplateGroupsByNameIn
List<OptionTemplateGroup> readOptionTemplateGroupsByNameIn(Collection<String> names, BatchContext<?> batchContext)  - 
readOptionTemplatesByNameIn
List<OptionTemplate> readOptionTemplatesByNameIn(Collection<String> names, BatchContext<?> batchContext)  
 -