Uses of Class
com.broadleafcommerce.catalog.service.product.consolidation.CategoryProductRef
-
Uses of CategoryProductRef in com.broadleafcommerce.catalog.service.product.consolidation
Modifier and TypeMethodDescriptionprotected List<CategoryProductRef>
CategoryProductConsolidationContributor.generateNewOverriddenCategoryProducts
(List<CategoryProductRef> categoryProducts, List<Category> unmatchedCategories, Map<Category, List<Category>> fullCategoryLines, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) For categories in contexts which do not exactly match any existing category product relationship context, generate new category product relationship placeholders with those contexts to hold the overrides.protected List<CategoryProductRef>
CategoryProductConsolidationContributor.getObjectsToConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected Function<CategoryProductRef,
String> CategoryProductConsolidationContributor.idGetter()
protected Function<CategoryProductRef,
String> CategoryProductConsolidationContributor.productIdGetter()
protected BiConsumer<ConsolidatedProduct,
List<CategoryProductRef>> CategoryProductConsolidationContributor.setter()
Modifier and TypeMethodDescriptionCategoryProductConsolidationContributor.findImplicitCategoryMatchInOtherApplicationCatalog
(CategoryProductRef categoryProduct, List<Category> potentialCategories, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Looks for implicit category matches for thecategoryProduct
from thepotentialCategories
which aren't directly in its catalog inheritance line.protected void
CategoryProductConsolidationContributor.setCategoryForCategoryProductRef
(CategoryProductRef categoryProduct, Category category, Map<Category, List<Category>> fullCategoryLines) Modifier and TypeMethodDescriptionprotected List<CategoryProductRef>
CategoryProductConsolidationContributor.generateNewOverriddenCategoryProducts
(List<CategoryProductRef> categoryProducts, List<Category> unmatchedCategories, Map<Category, List<Category>> fullCategoryLines, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) For categories in contexts which do not exactly match any existing category product relationship context, generate new category product relationship placeholders with those contexts to hold the overrides.CategoryProductConsolidationContributor.hydrateCategories
(List<CategoryProductRef> categoryProducts, Map<String, List<Category>> categoriesById, Map<Category, List<Category>> fullCategoryLines, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Populate the correct category information on the category product relationship objects.protected void
CategoryProductConsolidationContributor.hydrateCategoriesAndGenerateOverrides
(List<CategoryProductRef> categoryProducts, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Populate the correct category information on the category product relationship objects.protected void
CategoryProductConsolidationContributor.setCategories
(ConsolidatedProduct product, List<CategoryProductRef> categoryProducts) Set all the directly linked explicit categories, as well as all categories, including ancestors.protected void
CategoryProductConsolidationContributor.setPrimaryCategory
(ConsolidatedProduct product, List<CategoryProductRef> categoryProducts) Set the primary category on the product from the available category products.