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<ProductAsset>> AllAssetsProductConsolidationContributor.setter()
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<OptionTemplate>> OptionTemplateProductConsolidationContributor.setter()
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 static boolean
DefaultConsolidatedProductPostProcessor.isActiveSandboxMember
(ConsolidatedProduct member) 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
OptionTemplateProductConsolidationContributor.setOptions
(@NonNull ConsolidatedProduct product, @NonNull List<? extends OptionTemplate> optionTemplates) 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 TypeMethodDescriptionOptionTemplateProductConsolidationContributor.buildProductIdToOptionTemplateIdMap
(@NonNull List<ConsolidatedProduct> products) Builds a map ofOptionTemplate
ids mapped to the ids ofProducts
that reference them via them ownProductOptions
.protected void
ItemChoiceAvailabilityConsolidationContributor.checkBundleProductsAvailable
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
OptionTemplateProductConsolidationContributor.consolidateOptionTemplates
(@NonNull List<ConsolidatedProduct> products, @NonNull com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, @NonNull Map<String, List<ConsolidatedProduct>> productsById, @NonNull Map<String, List<OptionTemplate>> objectsToConsolidateByProductId) Consolidates theOptionTemplates
onto the relatedConsolidatedProducts
.protected void
OptionTemplateProductConsolidationContributor.consolidateOptionTemplates
(@NonNull List<ConsolidatedProduct> products, @NonNull com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, @NonNull Map<String, List<ConsolidatedProduct>> productsById, @NonNull Map<String, List<OptionTemplate>> objectsToConsolidateByProductId) Consolidates theOptionTemplates
onto the relatedConsolidatedProducts
.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
OptionTemplateProductConsolidationContributor.consolidateProducts
(@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) 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 void
OptionTemplateProductConsolidationContributor.consolidateTranslations
(@NonNull List<ConsolidatedProduct> products, @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Retrieves and adds option template translations to the consolidated products.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) TranslationProductConsolidationContributor.getCategoryIds
(List<ConsolidatedProduct> products) Get a list of distinct category ids from the givenConsolidatedProducts
.DataDrivenEnumConsolidationContributor.getDataDrivenEnumIds
(@NonNull Collection<? extends ConsolidatedProduct> consolidatedProducts) Gets a set of referenced data driven enum ids mapped by the product id.protected List<ProductAsset>
AllAssetsProductConsolidationContributor.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<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<OptionTemplate>
OptionTemplateProductConsolidationContributor.getObjectsToConsolidate
(@NonNull Set<String> optionTemplateIds, @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<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.retrieveAllAssetTranslations
(List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) 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) Retrieves translations for primaryProductAssets
.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.boolean
AllAssetsProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) boolean
CategoryProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) boolean
OptionTemplateProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) boolean
PrimaryAssetProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) default boolean
ProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines whether this contributor should be executed based on the given parameters and context.boolean
ProductTagConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) boolean
VariantProductConsolidationContributor.shouldConsolidate
(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) 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 TypeMethodDescriptionprotected List<ConsolidatedProduct>
ProductEndpoint.cleanConsolidatedProducts
(List<ConsolidatedProduct> consolidatedProducts) Remove unneeded information (such as contextState and fieldChanges) from the emitted structure.ProductEndpoint.readAllProductsIgnoreNarrowingHydrated
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, cz.jirutka.rsql.parser.ast.Node filters) ProductEndpoint.readAllProductsIgnoreNarrowingHydratedWithConfiguration
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, cz.jirutka.rsql.parser.ast.Node filters, ProductConsolidationRequest productConsolidationRequest) Read all hydratedConsolidatedProducts
with narrowing ignored and specified product consolidation request.ProductEndpoint.readAllProductsProduction
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, cz.jirutka.rsql.parser.ast.Node filters) ProductEndpoint.readAllProductsProductionWithConfiguration
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, cz.jirutka.rsql.parser.ast.Node filters, ProductConsolidationRequest productConsolidationRequest) Read all non-archived, production products with specified product consolidation request.Modifier and TypeMethodDescriptionprotected List<ConsolidatedProduct>
ProductEndpoint.cleanConsolidatedProducts
(List<ConsolidatedProduct> consolidatedProducts) Remove unneeded information (such as contextState and fieldChanges) from the emitted structure.