Uses of Class
com.broadleafcommerce.catalog.domain.product.commerce.ProductDetailsContext
Package
Description
-
Uses of ProductDetailsContext in com.broadleafcommerce.catalog.service.product.commerce
Modifier and TypeMethodDescriptionprotected <T extends ProductDetailsContext>
Collection<T>DefaultProductDetailsService.buildContexts
(@NonNull Collection<T> detailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) BuildsProductDetailsContexts
in response toProductDetailsRequests
.protected <T extends ProductDetailsContext>
ProductDetailsListDefaultProductDetailsService.buildDetails
(@NonNull Collection<T> detailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds out theProductDetails
in response to aProductDetailsRequest
.protected <T extends ProductDetailsContext>
ProductDetailsListDefaultProductDetailsService.buildDetails
(@NonNull Collection<T> detailsContexts, Set<String> productIdsNotFound, Set<String> productUrisNotFound, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds out theProductDetails
in response to aProductDetailsRequest
. -
Uses of ProductDetailsContext in com.broadleafcommerce.catalog.service.product.commerce.context.consolidator
Modifier and TypeMethodDescription<T extends ProductDetailsContext>
voidItemChoiceCategoriesProductContextConsolidator.consolidate
(@NonNull Collection<T> productDetailsContexts) <T extends ProductDetailsContext>
voidProductDetailsContextConsolidator.consolidate
(Collection<T> productDetailsContexts) Consolidate context information provided onProductDetailsContexts
.<T extends ProductDetailsContext>
voidRelatedOptionTemplatesProductContextConsolidator.consolidate
(@NonNull Collection<T> productDetailsContexts) <T extends ProductDetailsContext>
voidRelatedProductsProductContextConsolidator.consolidate
(@NonNull Collection<T> productDetailsContexts) <T extends ProductDetailsContext>
voidRelatedPromotionalProductsProductContextConsolidator.consolidate
(@NonNull Collection<T> productDetailsContexts) <T extends ProductDetailsContext>
voidRelatedVariantsProductContextConsolidator.consolidate
(@NonNull Collection<T> productDetailsContexts) Modifier and TypeMethodDescriptionprotected void
ItemChoiceCategoriesProductContextConsolidator.consolidateCategoryProducts
(Collection<ItemChoiceCategory> categories, @NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateIncludedProducts
(@NonNull Collection<ProductDetails> products, @NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateProductAssets
(@NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateProductOptions
(@NonNull Collection<ProductDetails> products, @NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateProductPriceInfo
(@NonNull Collection<ProductDetails> products, @NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateProductTags
(@NonNull ProductDetailsContext productDetailsContext) protected void
RelatedProductsProductContextConsolidator.consolidateProductVariants
(@NonNull ProductDetailsContext productDetailsContext) protected void
RelatedVariantsProductContextConsolidator.consolidateVariantPriceInfo
(@NonNull Collection<VariantDetail> variants, @NonNull ProductDetailsContext productDetailsContext) -
Uses of ProductDetailsContext in com.broadleafcommerce.catalog.service.product.commerce.context.contributor
Modifier and TypeMethodDescription<T extends ProductDetailsContext>
Collection<T>ItemChoiceHierarchyProductContextContributor.contribute
(Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>ProductDetailsContextContributor.contribute
(Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Contributes to the suppliedProductDetailsContext
.<T extends ProductDetailsContext>
Collection<T>RelatedCategoriesProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedDataDrivenEnumsProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedProductAssetsProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedProductsProductContextContributor.contribute
(Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedProductTagsProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedPromoProductsProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <T extends ProductDetailsContext>
Collection<T>RelatedVariantsProductContextContributor.contribute
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected <T extends ProductDetailsContext>
Set<String>RelatedCategoriesProductContextContributor.contributeOtherCategoryIds
(@NonNull Collection<T> productDetailsContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Extension point for contributing other category IDs to the set.protected <T extends ProductDetailsContext>
Map<String,Set<String>> RelatedVariantsProductContextContributor.contributeOtherVariantIds
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Extension point for contributing other variant IDs to the set.protected <T extends ProductDetailsContext>
Collection<T>RelatedProductsProductContextContributor.contributeProductsOfRuleBasedCategories
(@NonNull Collection<T> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Handles contributing the products related to related rule-basedcategories
separately from other related products.protected <T extends ProductDetailsContext>
Collection<T>RelatedProductsProductContextContributor.contributeRelatedCategoryProducts
(@NonNull Collection<T> productDetailsContexts, @NonNull Map<String, Map<String, Set<String>>> categoryProductsMap) Contributes the related category products to theProductDetailsContext
.protected <T extends ProductDetailsContext>
Collection<T>RelatedProductsProductContextContributor.contributeRelatedProducts
(@NonNull Collection<T> productDetailsContexts, @NonNull Set<String> productIds, @NonNull Map<String, Set<String>> relatedProductsMap, @NonNull Map<String, Map<String, Set<String>>> categoryProductsMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetches and contributes the related products to theProductDetailsContext
.Modifier and TypeMethodDescriptionprotected Collection<? extends ProductDetailsContext>
ItemChoiceHierarchyProductContextContributor.populateProductItemChoices
(Collection<? extends ProductDetailsContext> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Loops through the productDetailsContexts to populate product options item choices up to the maximum depth.Modifier and TypeMethodDescriptionprotected Set<ProductDetails>
ItemChoiceHierarchyProductContextContributor.buildProductDetailsMap
(ProductDetailsContext productDetailsContext, Product product) Filters through the category and product options to collect the next set ofProductDetails
.ItemChoiceHierarchyProductContextContributor.filterCategoryIdsToQuery
(ProductDetailsContext productDetailsContext, Product product) Filters the category IDs to the ones not currently in the specific category choices.ItemChoiceHierarchyProductContextContributor.filterOptionTemplateIdsToQuery
(ProductDetailsContext productDetailsContext, Product product) Filters the option template IDs to the ones not currently in the related option templates.ItemChoiceHierarchyProductContextContributor.filterProductIdsToQuery
(ProductDetailsContext productDetailsContext, Product product) Filters the product IDs to the ones not currently in the related products.ItemChoiceHierarchyProductContextContributor.filterVariantIdsToQuery
(ProductDetailsContext productDetailsContext, Product product) Filters the variant IDs to the ones not currently in the related products.Modifier and TypeMethodDescriptionprotected void
ItemChoiceHierarchyProductContextContributor.addItemChoiceCategoryProducts
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<String>> categoryIdMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Queries for the item choice categories and category products, and adds them to the productDetailsContext's specific category choices and related products.protected void
ItemChoiceHierarchyProductContextContributor.addItemChoiceRelatedOptionTemplates
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<String>> optionTemplateIdMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Queries for the item choice optionTemplates and adds them to the productDetailsContext's related optionTemplates.protected void
ItemChoiceHierarchyProductContextContributor.addItemChoiceRelatedProducts
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<String>> productIdsMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Queries for the item choice products and adds them to the productDetailsContext's related products.protected void
ItemChoiceHierarchyProductContextContributor.addItemChoiceRelatedVariants
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<String>> variantIdsProductMap, Map<String, Set<String>> productIdsMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Queries for the item choice variants and adds them to the productDetailsContext's related variants.ItemChoiceHierarchyProductContextContributor.buildCategoryIdMap
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> productMap, boolean firstIteration) Builds a mapping of item choice category IDs for the associated productDetailsContext.ItemChoiceHierarchyProductContextContributor.buildOptionTemplateIdMap
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> productMap, boolean firstIteration) Builds a mapping of option template IDs for the associated productDetailsContext.ItemChoiceHierarchyProductContextContributor.buildProductIdMap
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> productMap, boolean firstIteration) Builds a mapping of item choice product IDs for the associated productDetailsContext.ItemChoiceHierarchyProductContextContributor.buildVariantIdMap
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> productMap, boolean firstIteration) Builds a mapping of item choice variant IDs for the associated productDetailsContext.RelatedProductsProductContextContributor.contributeOtherProductIds
(@NonNull Collection<? extends ProductDetailsContext> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Extension point for contributing other product IDs to the set.ItemChoiceHierarchyProductContextContributor.filterCategoryProductIdsToQuery
(Collection<? extends ProductDetailsContext> productDetailsContexts, Collection<? extends CategoryProduct> categoryProducts) Filters the category product IDs to the ones not currently in the related products.RelatedProductsProductContextContributor.getCategoryToProductMapToContribute
(@NonNull Collection<? extends ProductDetailsContext> productDetailsContexts, @NonNull List<Product> resolvedProducts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Collects the IDs of all the products related to theresolved products
through related CategoryProducts.RelatedDataDrivenEnumsProductContextContributor.getDataDrivenEnumIdsByProductId
(@NonNull Collection<? extends ProductDetailsContext> productDetailsContexts) Gets a set of referenced data driven enum ids mapped by the resolved product id.RelatedProductsProductContextContributor.getRelatedPromotionalProductIdsToContribute
(@NonNull Collection<? extends ProductDetailsContext> productDetailsContexts) Creates a map of resolved Product IDs to a collection ofpromotional product's related product IDs
.protected Collection<? extends ProductDetailsContext>
ItemChoiceHierarchyProductContextContributor.populateProductItemChoices
(Collection<? extends ProductDetailsContext> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Loops through the productDetailsContexts to populate product options item choices up to the maximum depth.protected Map<String,
Set<ProductDetails>> ItemChoiceHierarchyProductContextContributor.populateProductItemChoices
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> productDetailsMap, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Responsible for population of item choice categories, products, and variants of depths greater than one.protected Map<String,
Set<ProductDetails>> ItemChoiceHierarchyProductContextContributor.retrieveNextLevelProducts
(Collection<? extends ProductDetailsContext> productDetailsContexts, Map<String, Set<ProductDetails>> previosProductDetailMap, boolean firstIteration) Retrieves the map ofProductDetails
to recursively build out the item choice hierarchy structure.protected void
RelatedDataDrivenEnumsProductContextContributor.setDataDrivenEnums
(@NonNull Collection<? extends ProductDetailsContext> productDetailsContexts, List<DataDrivenEnum> dataDrivenEnumsForAllProducts, Map<String, Set<String>> enumIdsByProductId) -
Uses of ProductDetailsContext in com.broadleafcommerce.catalog.service.product.commerce.contributor
Modifier and TypeMethodDescription<D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>AdvancedTagsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>BreadcrumbsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>CategoriesProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>DataDrivenEnumsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>IncludedProductsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>MinifyProductDetailsContributor.contribute
(Collection<D> productDetailsList, Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>PriceInfoProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>ProductAssetsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>ProductDetailsContributor.contribute
(Collection<D> productDetailsList, Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Contributes to the suppliedProductDetails
.<D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>ProductOptionsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>PromotionalProductsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>VariantsProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) <D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>VendorRefProductDetailsContributor.contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected <D extends ProductDetails,
C extends ProductDetailsContext>
List<VariantDetail>VariantsProductDetailsContributor.getVariantsForProduct
(D productDetails, @NonNull Collection<C> productDetailsContexts) Gathers a list ofVariantDetails
that are related to the product provided via theProductDetails
param. -
Uses of ProductDetailsContext in com.broadleafcommerce.catalog.service.product.commerce.util
Modifier and TypeMethodDescriptionprotected ItemChoiceCategory
ProductOptionContributionUtils.buildItemChoiceCategory
(ProductDetailsContext product, ItemChoice itemChoice, boolean narrowChoices) Builds out and prunes the category item choices.protected List<SpecificItemChoiceDetail>
ProductOptionContributionUtils.buildSpecificItemChoices
(ProductDetailsContext productDetailsContext, ItemChoice itemChoice, PriceInfo priceInfo, boolean narrowChoices) Builds out and prunes the specific item choices.IncludedProductContributionUtils.createIncludedProductDetail
(@NonNull IncludedProduct includedProduct, @NonNull ProductDetailsContext productDetailsContext) Creates anIncludedProductDetail
for anIncludedProduct
included its embedded relationships.protected ItemChoiceDetail
ProductOptionContributionUtils.createItemChoiceDetail
(@NonNull ItemChoice itemChoice, @NonNull ProductDetailsContext productDetailsContext, boolean narrowChoices) ProductOptionContributionUtils.createProductOptionDetail
(@NonNull ProductOption option, @NonNull ProductDetailsContext productDetailsContext, boolean narrowChoices) Creates aProductOptionDetail
for aProductOption
included its embedded relationships.protected SpecificItemChoiceDetail
ProductOptionContributionUtils.createSpecificItemChoiceDetails
(@NonNull SpecificItemChoice specificChoice, @NonNull ProductDetailsContext productDetailsContext, PriceInfo itemChoicePriceInfo) protected IncludedProductDetail
IncludedProductContributionUtils.populateIncludedItem
(@NonNull IncludedProductDetail includedProduct, @NonNull ProductDetailsContext productDetailsContext) protected ItemChoiceDetail
ProductOptionContributionUtils.populateItemChoiceDefaults
(@NonNull ItemChoiceDetail itemChoice, @NonNull ProductDetailsContext productDetailsContext) protected SpecificItemChoiceDetail
ProductOptionContributionUtils.populateSpecificChoice
(@NonNull SpecificItemChoiceDetail specificChoice, @NonNull ProductDetailsContext productDetailsContext)