Uses of Class
com.broadleafcommerce.catalog.domain.product.ConsolidatedProduct
Package
Description
-
Uses of ConsolidatedProduct in com.broadleafcommerce.catalog.service.product.consolidation
Modifier and TypeMethodDescriptionprotected <P extends ConsolidatedProduct>
voidDataDrivenEnumConsolidationContributor.setDataDrivenEnumIfPresent
(P product, List<DataDrivenEnum> dataDrivenEnumsForAllProducts, Function<P, DataDrivenEnum> dataDrivenEnumGetter, BiConsumer<P, DataDrivenEnum> dataDrivenEnumSetter) Finds and sets the product's data driven enum field if present using the given getter and setter, and add the enum togetDataDrivenEnums()
.Modifier and TypeMethodDescriptionprotected ConsolidatedProduct
ContextualProductConsolidationContributor.createOverrideProductForContext
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<P> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Generate a placeholder consolidated product to represent the unmatched context override.Modifier and TypeMethodDescriptionprotected List<ConsolidatedProduct>
DefaultProductConsolidationService.consolidateProducts
(List<Product> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, Map<String, com.broadleafcommerce.data.tracking.core.tenant.domain.Catalog> catalogsById, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Consolidate products with their related domain and translations.protected List<ConsolidatedProduct>
ContextualProductConsolidationContributor.consolidateRelations
(List<ConsolidatedProduct> products, List<P> relations, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Hydrate the given contextual products with the given relations.protected List<ConsolidatedProduct>
ItemChoiceAvailabilityConsolidationContributor.getProductsWithRequiredItems
(List<ConsolidatedProduct> products) DefaultProductConsolidationService.readAllConsolidatedProducts
(cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ProductConsolidationService.readAllConsolidatedProducts
(cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read and consolidate products with their related domain.protected BiConsumer<ConsolidatedProduct,
List<CategoryProductRef>> CategoryProductConsolidationContributor.setter()
protected abstract BiConsumer<ConsolidatedProduct,
List<P>> ContextualProductConsolidationContributor.setter()
Defines the function which should be used to set the domain objects on the consolidated product.protected BiConsumer<ConsolidatedProduct,
List<ProductAsset>> PrimaryAssetProductConsolidationContributor.setter()
protected BiConsumer<ConsolidatedProduct,
List<ProductTag>> ProductTagConsolidationContributor.setter()
protected BiConsumer<ConsolidatedProduct,
List<ProductTranslation>> TranslationProductConsolidationContributor.setter()
protected BiConsumer<ConsolidatedProduct,
List<Variant>> VariantProductConsolidationContributor.setter()
Modifier and TypeMethodDescriptionprotected void
DataDrivenEnumConsolidationContributor.addDataDrivenEnumIdsForProduct
(ConsolidatedProduct product, List<String> enumIds) protected ConsolidatedProduct
ContextualProductConsolidationContributor.createOverrideProductForContext
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<P> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Generate a placeholder consolidated product to represent the unmatched context override.protected String
DefaultConsolidatedProductPostProcessor.createSandboxOverrideValue
(ConsolidatedProduct override) Create the sandbox override value to store as part ofgetSandboxOverrides()
.protected void
ItemChoiceAvailabilityConsolidationContributor.determineItemsInBundleAvailable
(ConsolidatedProduct consolidatedProduct, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected boolean
DefaultConsolidatedProductPostProcessor.isSameSandboxContext
(ConsolidatedProduct reference, ConsolidatedProduct candidate) protected boolean
DefaultConsolidatedProductPostProcessor.isSandboxOverride
(ConsolidatedProduct reference, ConsolidatedProduct candidate) Determine if the candidate product is a more close sandbox version than the reference.void
ConsolidatedProductPostProcessor.process
(ConsolidatedProduct product, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
DefaultConsolidatedProductPostProcessor.process
(ConsolidatedProduct product, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultProductConsolidationService.processSandboxOwner
(ConsolidatedProduct product) Populate the sandbox owner of the product, if in a user sandbox context.protected void
DefaultProductConsolidationService.processVendorRef
(ConsolidatedProduct consolidatedProduct, Map<String, com.broadleafcommerce.data.tracking.core.tenant.domain.Catalog> catalogsById) Populate the vendor ref from the Product's catalog.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
DataDrivenEnumConsolidationContributor.setDataDrivenEnumsForProduct
(ConsolidatedProduct product, List<DataDrivenEnum> dataDrivenEnumsForAllProducts) protected void
DataDrivenEnumConsolidationContributor.setDataDrivenEnumTranslationsForProduct
(ConsolidatedProduct product, List<com.broadleafcommerce.translation.domain.Translation> dataDrivenEnumTranslationsForAllProducts) protected void
ContextualProductConsolidationContributor.setListValue
(ConsolidatedProduct product, List<P> toSet, BiConsumer<ConsolidatedProduct, List<P>> setter) Setter function provider which uses the provided setter to set a list value in the consolidated product.protected void
CategoryProductConsolidationContributor.setPrimaryCategory
(ConsolidatedProduct product, List<CategoryProductRef> categoryProducts) Set the primary category on the product from the available category products.protected void
ContextualProductConsolidationContributor.setSingleValue
(ConsolidatedProduct product, List<P> toSet, BiConsumer<ConsolidatedProduct, P> setter) Setter function provider which uses the provided setter to set a single value in the consolidated product.protected void
ProductTagConsolidationContributor.setTags
(@NonNull ConsolidatedProduct product, @NonNull List<? extends ProductTag> productTags) protected void
TranslationProductConsolidationContributor.setTranslations
(ConsolidatedProduct consolidatedProduct, List<ProductTranslation> productTranslations) Modifier and TypeMethodDescriptionprotected void
ItemChoiceAvailabilityConsolidationContributor.checkBundleProductsAvailable
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
ContextualProductConsolidationContributor.consolidateProducts
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
DataDrivenEnumConsolidationContributor.consolidateProducts
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
ItemChoiceAvailabilityConsolidationContributor.consolidateProducts
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
ProductConsolidationContributor.consolidateProducts
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Consolidate products with their related domain and translations.void
ProductTagConsolidationContributor.consolidateProducts
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected List<ConsolidatedProduct>
ContextualProductConsolidationContributor.consolidateRelations
(List<ConsolidatedProduct> products, List<P> relations, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Hydrate the given contextual products with the given relations.protected List<ConsolidatedProduct>
ContextualProductConsolidationContributor.consolidateRelations
(List<ConsolidatedProduct> products, List<P> relations, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Hydrate the given contextual products with the given relations.protected ConsolidatedProduct
ContextualProductConsolidationContributor.createOverrideProductForContext
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<P> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<P>> setRelation, Function<P, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Generate a placeholder consolidated product to represent the unmatched context override.protected ConsolidatedProductPostProcessor
DefaultProductConsolidationService.createPostProcessor
(List<ConsolidatedProduct> products, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, Map<String, Set<String>> marketplaceApplicationsForCatalogs) protected void
ItemChoiceAvailabilityConsolidationContributor.determineRequiredItemChoicesAvailable
(List<ConsolidatedProduct> productsWithRequiredItemChoices, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) DataDrivenEnumConsolidationContributor.getDataDrivenEnumIds
(@NonNull Collection<? extends ConsolidatedProduct> consolidatedProducts) Gets a set of referenced data driven enum ids mapped by the product id.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) ContextualProductConsolidationContributor.getObjectsToConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Retrieve the full list of domain objects of this type to be consolidated into the products.protected List<ProductAsset>
PrimaryAssetProductConsolidationContributor.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 List<ProductTag>
ProductTagConsolidationContributor.getObjectsToConsolidate
(@NonNull Set<String> productIds, @NonNull List<ConsolidatedProduct> products, @NonNull com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected List<ProductTranslation>
TranslationProductConsolidationContributor.getObjectsToConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) VariantProductConsolidationContributor.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 List<ConsolidatedProduct>
ItemChoiceAvailabilityConsolidationContributor.getProductsWithRequiredItems
(List<ConsolidatedProduct> products) protected void
ItemChoiceAvailabilityConsolidationContributor.hydrateBundleProducts
(List<ConsolidatedProduct> bundleProducts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<ProductTranslation>
TranslationProductConsolidationContributor.retrieveAllCategoriesTranslations
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected List<ProductTranslation>
TranslationProductConsolidationContributor.retrieveAllPrimaryAssetTranslations
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected List<ProductTranslation>
TranslationProductConsolidationContributor.retrieveAllVariantsTranslations
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
ContextualProductConsolidationContributor.setListValue
(ConsolidatedProduct product, List<P> toSet, BiConsumer<ConsolidatedProduct, List<P>> setter) Setter function provider which uses the provided setter to set a list value in the consolidated product.protected void
ContextualProductConsolidationContributor.setSingleValue
(ConsolidatedProduct product, List<P> toSet, BiConsumer<ConsolidatedProduct, P> setter) Setter function provider which uses the provided setter to set a single value in the consolidated product.ModifierConstructorDescriptionDefaultConsolidatedProductPostProcessor
(List<ConsolidatedProduct> products, ProductService<Product> productService, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, Map<String, Set<String>> marketplaceApplicationsForCatalogs) -
Uses of ConsolidatedProduct in com.broadleafcommerce.catalog.web.endpoint
Modifier and TypeMethodDescriptionProductEndpoint.readAllProductsIgnoreNarrowingHydrated
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, cz.jirutka.rsql.parser.ast.Node filters)