Uses of Class
com.broadleafcommerce.catalog.domain.product.characteristic.ProductCharacteristic
Packages that use ProductCharacteristic
Package
Description
-
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.dataexport
Methods in com.broadleafcommerce.catalog.dataexport that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionProductExportRowProducer.getProductCharacteristicService()protected Map<String,List<ProductCharacteristic>> ProductExportRowProducer.readProductCharacteristicsByProductIdIn(List<Product> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Method parameters in com.broadleafcommerce.catalog.dataexport with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidProductExportRowProducer.setProductCharacteristicService(ProductCharacteristicService<ProductCharacteristic> productCharacteristicService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.dataexport.converter
Methods in com.broadleafcommerce.catalog.dataexport.converter with parameters of type ProductCharacteristicModifier and TypeMethodDescriptionProductCharacteristicExportRowConverter.convert(ProductCharacteristic source) Method parameters in com.broadleafcommerce.catalog.dataexport.converter with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected StringProductExportRowConverter.getMultiValRepresentationOfCharacteristics(Map<String, ProductCharacteristic> characteristics) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.dataimport
Methods in com.broadleafcommerce.catalog.dataimport that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionCompleteProductImportBatchHandler.getProductCharacteristicService()Method parameters in com.broadleafcommerce.catalog.dataimport with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidCompleteProductImportBatchHandler.setProductCharacteristicService(ProductCharacteristicService<ProductCharacteristic> productCharacteristicService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.dataimport.converter
Methods in com.broadleafcommerce.catalog.dataimport.converter that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected List<ProductCharacteristic>ProductRowConverter.getPrefetchedProductCharacteristicsFromAdditionalContextMap(Map<String, Object> additionalContextMap, String keyForPrefetchedProductCharacteristicsMap, String keyForProductInPrefetchedProductCharacteristicsMap) protected org.springframework.data.util.Pair<String,ProductCharacteristic> ProductRowConverter.toKeyProductCharacteristicPair(String[] keyValueArray, BusinessType businessType) Converts a key-value pair from the import row into aProductCharacteristic.Methods in com.broadleafcommerce.catalog.dataimport.converter with parameters of type ProductCharacteristicModifier and TypeMethodDescriptionprotected voidProductRowConverter.updateCharacteristicValue(ProductCharacteristic existingCharacteristic, ProductCharacteristic importedCharacteristic) Updates the value of an existing characteristic with the value from an imported characteristic. -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.domain.product
Methods in com.broadleafcommerce.catalog.domain.product that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionConsolidatedProduct.getCharacteristics()Product.getCharacteristics()Fields and associated Characteristics that define a specific product.Product.getCharacteristicsValues()Method parameters in com.broadleafcommerce.catalog.domain.product with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidConsolidatedProduct.setCharacteristics(Map<String, ProductCharacteristic> characteristics) voidProduct.setCharacteristics(Map<String, ProductCharacteristic> characteristics) Fields and associated Characteristics that define a specific product.voidConsolidatedProduct.setCharacteristicsFromList(List<ProductCharacteristic> characteristics) Sets thecharacteristicsmap from a list ofProductCharacteristic.voidProduct.setCharacteristicsFromList(List<ProductCharacteristic> characteristics) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.domain.product.commerce
Methods in com.broadleafcommerce.catalog.domain.product.commerce that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionProductDetails.getCharacteristics()ProductSummary.getCharacteristics()ProductDetails.getCharacteristicsValues()ProductSummary.getCharacteristicsValues()Method parameters in com.broadleafcommerce.catalog.domain.product.commerce with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidProductDetails.setCharacteristics(Map<String, ProductCharacteristic> characteristics) voidProductSummary.setCharacteristics(Map<String, ProductCharacteristic> characteristics) voidProductDetails.setCharacteristicsFromList(List<ProductCharacteristic> characteristics) voidProductSummary.setCharacteristicsFromList(List<ProductCharacteristic> characteristics) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.autoconfigure
Method parameters in com.broadleafcommerce.catalog.service.autoconfigure with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionCatalogServiceAutoConfiguration.productCharacteristicsTranslationService(CharacteristicService<Characteristic> characteristicService, ProductService<Product> productService, ProductCharacteristicService<ProductCharacteristic> productCharacteristicService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService, com.broadleafcommerce.translation.mapping.ContextLocaleHelper contextLocaleHelper, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product
Methods in com.broadleafcommerce.catalog.service.product that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected List<ProductCharacteristic>DefaultProductService.gatherAndValidateDeletableProductCharacteristics(P product, String targetCatalogId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) DefaultProductService.getProductCharacteristicService()Method parameters in com.broadleafcommerce.catalog.service.product with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidDefaultProductService.setProductCharacteristicService(ProductCharacteristicService<ProductCharacteristic> productCharacteristicService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product.characteristic
Classes in com.broadleafcommerce.catalog.service.product.characteristic with type parameters of type ProductCharacteristicModifier and TypeClassDescriptionclassDefault implementation ofProductCharacteristicService.interfaceService for managingProductCharacteristics.Methods in com.broadleafcommerce.catalog.service.product.characteristic that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionDefaultCharacteristicsTranslationService.getProductCharacteristicService()Constructor parameters in com.broadleafcommerce.catalog.service.product.characteristic with type arguments of type ProductCharacteristicModifierConstructorDescriptionDefaultCharacteristicsTranslationService(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.translation.mapping.ContextLocaleHelper contextLocaleHelper, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService, ProductCharacteristicService<ProductCharacteristic> productCharacteristicService, ProductService<Product> productService, CharacteristicService<Characteristic> characteristicService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product.consolidation
Methods in com.broadleafcommerce.catalog.service.product.consolidation that return ProductCharacteristicModifier and TypeMethodDescriptionprotected ProductCharacteristicProductCharacteristicsConsolidationContributor.deepCloneProductCharacteristic(ProductCharacteristic original) Methods in com.broadleafcommerce.catalog.service.product.consolidation that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected Map<String,List<ProductCharacteristic>> ProductCharacteristicsConsolidationContributor.collectMostDerivedProductCharacteristicsByProductId(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState productContext, List<ProductCharacteristic> allUnnarrowedProdChars, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) This method tries to mimic whatProductCharacteristicService.readAllByProductContextIdIn(Collection, ContextInfo)normally provides to the characteristic hydration flow, which would be all the 'most derived' representations of theProductCharacteristicinstances belonging to a particular context.protected Map<String,List<ProductCharacteristic>> ProductCharacteristicsConsolidationContributor.collectProductCharacteristicsFromInheritanceLineByProductId(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState productContext, List<ProductCharacteristic> allUnnarrowedProdChars, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) This method tries to mimic whatProductCharacteristicService.readAllByProductContextIdAndInheritanceLine(Collection, ContextInfo)normally provides to the characteristic hydration flow.protected List<ProductCharacteristic>ProductCharacteristicsConsolidationContributor.gatherProductCharacteristicsWithUnmatchedContexts(List<ConsolidatedProduct> productsWithSameId, List<ProductCharacteristic> prodCharsToCheckUnmatchedContextFor) protected List<ProductCharacteristic>ProductCharacteristicsConsolidationContributor.getObjectsToConsolidate(Set<String> productIds, List<ConsolidatedProduct> products, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) The base class requires us to implement this abstract method, but we've overriddenProductCharacteristicsConsolidationContributor.consolidateProducts(Set, List, InheritanceLines, ContextInfo)to callProductCharacteristicsConsolidationContributor.getProdCharsAndRelatedDataToConsolidate(Set, List, InheritanceLines, ContextInfo)instead, and thus we will do nothing in this method but throw an exception.ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData.getProductCharacteristicsByProductId()Product characteristics fetched for a list of product IDs, mapped by product ID.ProductCharacteristicsConsolidationContributor.getProductCharacteristicService()protected Function<ProductCharacteristic,String> ProductCharacteristicsConsolidationContributor.idGetter()protected Function<ProductCharacteristic,String> ProductCharacteristicsConsolidationContributor.productIdGetter()protected List<ProductCharacteristic>ProductCharacteristicsConsolidationContributor.refineProductCharacteristicAncestries(List<ProductCharacteristic> candidates) Refines the raw ancestry of product characteristics to ensure it only contains exactly one record per catalog level, and that all returned records belong to the same logicalContext IDfor any givenfieldName.protected BiConsumer<ConsolidatedProduct,List<ProductCharacteristic>> ProductCharacteristicsConsolidationContributor.setter()Methods in com.broadleafcommerce.catalog.service.product.consolidation with parameters of type ProductCharacteristicModifier and TypeMethodDescriptionprotected voidDefaultProductConsolidationService.cleanProductCharacteristicFields(ProductCharacteristic pc) protected voidDefaultProductConsolidationService.cleanProductCharacteristicValues(ProductCharacteristic pc) InConsolidatedProduct, we almost never need the full values from the baseCharacteristic, so we exclude them by default.protected ProductCharacteristicProductCharacteristicsConsolidationContributor.deepCloneProductCharacteristic(ProductCharacteristic original) ProductCharacteristicsConsolidationContributor.getCatalogLevel(ProductCharacteristic pc) Method parameters in com.broadleafcommerce.catalog.service.product.consolidation with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected Map<String,List<ProductCharacteristic>> ProductCharacteristicsConsolidationContributor.collectMostDerivedProductCharacteristicsByProductId(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState productContext, List<ProductCharacteristic> allUnnarrowedProdChars, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) This method tries to mimic whatProductCharacteristicService.readAllByProductContextIdIn(Collection, ContextInfo)normally provides to the characteristic hydration flow, which would be all the 'most derived' representations of theProductCharacteristicinstances belonging to a particular context.protected Map<String,List<ProductCharacteristic>> ProductCharacteristicsConsolidationContributor.collectProductCharacteristicsFromInheritanceLineByProductId(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState productContext, List<ProductCharacteristic> allUnnarrowedProdChars, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) This method tries to mimic whatProductCharacteristicService.readAllByProductContextIdAndInheritanceLine(Collection, ContextInfo)normally provides to the characteristic hydration flow.protected List<ConsolidatedProduct>ProductCharacteristicsConsolidationContributor.consolidateRelations(List<ConsolidatedProduct> products, ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData prodCharsConsolidationData, Function<ProductCharacteristic, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Loosely modeled after the baseContextualProductConsolidationContributor.consolidateRelations(List, List, BiConsumer, Function, InheritanceLines)method.protected ConsolidatedProductProductCharacteristicsConsolidationContributor.createOverrideProductForContext(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<ProductCharacteristic> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<ProductCharacteristic>> setRelation, Function<ProductCharacteristic, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Overrides the base method to only generate the clone override and not actually set anything, since we want to do that in a later step.protected ConsolidatedProductProductCharacteristicsConsolidationContributor.createOverrideProductForContext(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<ProductCharacteristic> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<ProductCharacteristic>> setRelation, Function<ProductCharacteristic, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Overrides the base method to only generate the clone override and not actually set anything, since we want to do that in a later step.protected ConsolidatedProductProductCharacteristicsConsolidationContributor.createOverrideProductForContext(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState unmatchedContextState, List<ProductCharacteristic> relations, ConsolidatedProduct implicitProduct, BiConsumer<ConsolidatedProduct, List<ProductCharacteristic>> setRelation, Function<ProductCharacteristic, String> idGetter, com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines) Overrides the base method to only generate the clone override and not actually set anything, since we want to do that in a later step.ProductCharacteristicsConsolidationContributor.extractBaseCharacteristicIdsFromProdChars(Map<String, List<ProductCharacteristic>> prodCharsByProdId) protected List<ProductCharacteristic>ProductCharacteristicsConsolidationContributor.refineProductCharacteristicAncestries(List<ProductCharacteristic> candidates) Refines the raw ancestry of product characteristics to ensure it only contains exactly one record per catalog level, and that all returned records belong to the same logicalContext IDfor any givenfieldName.voidProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData.setProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Product characteristics fetched for a list of product IDs, mapped by product ID.Constructor parameters in com.broadleafcommerce.catalog.service.product.consolidation with type arguments of type ProductCharacteristicModifierConstructorDescriptionProductCharacteristicsConsolidationContributor(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ProductCharacteristicService<ProductCharacteristic> productCharacteristicService, CharacteristicService<Characteristic> characteristicService, CharacteristicHydrationService characteristicHydrationService, BusinessTypeService<BusinessType> businessTypeService, ProductHydrationService productHydrationService, ConsolidationBusinessTypeHydrationUtil consolidationBusinessTypeHydrationUtil) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product.dto
Methods in com.broadleafcommerce.catalog.service.product.dto that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionProductCharacteristicManagementResult.getLatestProductCharacteristicsByProductId()A map from product ID to the latest state of all of its directly assignedProductCharacteristicvalues after the updates were performed.ProductCharacteristicManagementRequest.getRequestedCharacteristicsByProductId()The raw, explicitly requested characteristic changes provided by the API caller.Method parameters in com.broadleafcommerce.catalog.service.product.dto with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidProductCharacteristicManagementResult.setLatestProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> latestProductCharacteristicsByProductId) A map from product ID to the latest state of all of its directly assignedProductCharacteristicvalues after the updates were performed.voidProductCharacteristicManagementRequest.setRequestedCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> requestedCharacteristicsByProductId) The raw, explicitly requested characteristic changes provided by the API caller. -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product.hydration
Methods in com.broadleafcommerce.catalog.service.product.hydration with type parameters of type ProductCharacteristicModifier and TypeMethodDescription<P extends ProductCharacteristic>
voidCharacteristicHydrationService.applyCharacteristicValueNarrowing(Product product, List<P> allProdCharsFromInheritanceLine, P productCharacteristic, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Applies characteristic value narrowing for the given product characteristic on the given product.<P extends ProductCharacteristic>
voidDefaultCharacteristicHydrationService.applyCharacteristicValueNarrowing(Product product, List<P> allProdCharsFromInheritanceLine, P productCharacteristic, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods in com.broadleafcommerce.catalog.service.product.hydration that return ProductCharacteristicModifier and TypeMethodDescriptionprotected ProductCharacteristicDefaultProductHydrationService.handleMultipleProdCharsFoundForSameFieldName(ProductCharacteristic pc1, ProductCharacteristic pc2, Product product, ResolvedProductReferences foundItems) Called inDefaultProductHydrationService.setProductCharacteristicsIfFound(Product, ResolvedProductReferences)to resolve a scenario where the query for product characteristics of a product actually produced multiple results for the samegetFieldName().Methods in com.broadleafcommerce.catalog.service.product.hydration that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionResolvedProductReferences.getProductCharacteristicsByProductId()Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor().DefaultProductHydrationService.getProductCharacteristicService()ResolvedProductReferences.getProductCharacteristicsFromInheritanceLineByProductId()Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results.Methods in com.broadleafcommerce.catalog.service.product.hydration with parameters of type ProductCharacteristicModifier and TypeMethodDescriptionprotected voidDefaultProductHydrationService.applyHydration(ProductCharacteristic productCharacteristic, ResolvedProductReferences foundItems) protected ProductCharacteristicDefaultProductHydrationService.handleMultipleProdCharsFoundForSameFieldName(ProductCharacteristic pc1, ProductCharacteristic pc2, Product product, ResolvedProductReferences foundItems) Called inDefaultProductHydrationService.setProductCharacteristicsIfFound(Product, ResolvedProductReferences)to resolve a scenario where the query for product characteristics of a product actually produced multiple results for the samegetFieldName().protected voidDefaultProductHydrationService.initializeDefaultCharacteristicValues(ProductCharacteristic productCharacteristic, Characteristic characteristic) protected booleanDefaultCharacteristicHydrationService.isCurrentCatalogLevel(ProductCharacteristic currentProdChar, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines if the current product characteristic's catalog level is the same as the context info's catalog level meaning that it is the current version of the product characteristic.protected booleanDefaultProductHydrationService.isOverrideDefinedInCurrentCatalogContext(ProductCharacteristic pcToEvaluate, Product parentProduct, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidDefaultProductHydrationService.synchronizeEnumTypeCharacteristics(ProductCharacteristic pc, Characteristic characteristic) Synchronizes the enum type characteristics for a given product characteristic.protected voidDefaultProductHydrationService.synchronizePlaceholderCharacteristics(ProductCharacteristic pc, Characteristic characteristic) Synchronizes the placeholder characteristics for a given product characteristic.Method parameters in com.broadleafcommerce.catalog.service.product.hydration with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidResolvedProductReferences.setProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor().voidDefaultProductHydrationService.setProductCharacteristicService(ProductCharacteristicService<ProductCharacteristic> productCharacteristicService) voidResolvedProductReferences.setProductCharacteristicsFromInheritanceLineByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsFromInheritanceLineByProductId) Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results. -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.product.util
Methods in com.broadleafcommerce.catalog.service.product.util that return ProductCharacteristicModifier and TypeMethodDescriptionprotected ProductCharacteristicProductCharacteristicManagementUtility.matchExistingCharacteristicByFieldNameAndSetId(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristics) Matches an incoming product characteristic to an existing one based on field name.protected ProductCharacteristicProductCharacteristicManagementUtility.setOverrideChangeContainer(ProductCharacteristic pc, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Sets the override change container on theProductCharacteristicto ensure it is tracked under the product's change container context.Methods in com.broadleafcommerce.catalog.service.product.util that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected Map<String,List<ProductCharacteristic>> ProductCharacteristicManagementUtility.getExistingCharacteristics(Set<String> productIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Retrieves the existing product characteristics for the given product IDs.protected Map<String,Map<String, ProductCharacteristic>> ProductCharacteristicManagementUtility.getProdCharsByIdByProductId(Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Organizes existing product characteristics into a nested map structure for efficient lookup.ProductCharacteristicManagementUtility.getProductCharacteristicService()protected List<ProductCharacteristic>ProductCharacteristicManagementUtility.identifyCharacteristicsToCreate(ProductCharacteristicManagementRequest request, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId, Map<String, BusinessType> businessTypesByKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Identifies the product characteristics that need to be created.protected List<com.broadleafcommerce.data.tracking.core.service.Update<ProductCharacteristic>>ProductCharacteristicManagementUtility.identifyCharacteristicsToUpdate(ProductCharacteristicManagementRequest request, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId, Map<String, BusinessType> businessTypesByKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Identifies the product characteristics that need to be updated.Methods in com.broadleafcommerce.catalog.service.product.util with parameters of type ProductCharacteristicModifier and TypeMethodDescriptionprotected booleanProductCharacteristicManagementUtility.areCharacteristicValuesDifferent(ProductCharacteristic pc, ProductCharacteristic existingProductCharacteristic, Map<String, BusinessType> businessTypesByKey, Map<String, P> productsById) Compares the values of an incomingProductCharacteristicwith an existing one to determine if they are different.protected booleanProductCharacteristicManagementUtility.isExistingCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Checks if the characteristic already exists.protected booleanProductCharacteristicManagementUtility.isNewCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Checks if the characteristic is considered new.protected booleanProductCharacteristicManagementUtility.matchesParentBusinessType(ProductCharacteristic pc, BusinessType bt) Checks if the given ProductCharacteristic exactly matches the characteristic value defined on the parent BusinessType.protected ProductCharacteristicProductCharacteristicManagementUtility.matchExistingCharacteristicByFieldNameAndSetId(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristics) Matches an incoming product characteristic to an existing one based on field name.protected ProductCharacteristicProductCharacteristicManagementUtility.setOverrideChangeContainer(ProductCharacteristic pc, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Sets the override change container on theProductCharacteristicto ensure it is tracked under the product's change container context.protected booleanProductCharacteristicManagementUtility.shouldUpdateCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristics, Map<String, BusinessType> businessTypesByKey, Map<String, P> productsById) Checks if the value of aProductCharacteristichas changed compared to the existing characteristics.Method parameters in com.broadleafcommerce.catalog.service.product.util with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionprotected ProductCharacteristicManagementResultProductCharacteristicManagementUtility.buildResult(Map<String, Map<String, ProductCharacteristic>> prodCharsByIdByProductId) Builds the final result from the persisted characteristics.protected voidProductCharacteristicManagementUtility.forceInitializeProductIdValueOnProdChars(Map<String, List<ProductCharacteristic>> requestedCharacteristicsByProductId) The API caller may or may not have setgetProductId()on the API payload (and almost certainly not if this is a create operation).protected Map<String,Map<String, ProductCharacteristic>> ProductCharacteristicManagementUtility.getProdCharsByIdByProductId(Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Organizes existing product characteristics into a nested map structure for efficient lookup.protected List<ProductCharacteristic>ProductCharacteristicManagementUtility.identifyCharacteristicsToCreate(ProductCharacteristicManagementRequest request, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId, Map<String, BusinessType> businessTypesByKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Identifies the product characteristics that need to be created.protected List<com.broadleafcommerce.data.tracking.core.service.Update<ProductCharacteristic>>ProductCharacteristicManagementUtility.identifyCharacteristicsToUpdate(ProductCharacteristicManagementRequest request, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId, Map<String, BusinessType> businessTypesByKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Identifies the product characteristics that need to be updated.protected booleanProductCharacteristicManagementUtility.isExistingCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Checks if the characteristic already exists.protected booleanProductCharacteristicManagementUtility.isNewCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristicsByProdId) Checks if the characteristic is considered new.protected ProductCharacteristicProductCharacteristicManagementUtility.matchExistingCharacteristicByFieldNameAndSetId(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristics) Matches an incoming product characteristic to an existing one based on field name.protected voidProductCharacteristicManagementUtility.persistCharacteristicChanges(List<ProductCharacteristic> toCreate, List<com.broadleafcommerce.data.tracking.core.service.Update<ProductCharacteristic>> toUpdate, Map<String, Map<String, ProductCharacteristic>> prodCharsByIdByProductId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Persists the created and updated characteristics.protected voidProductCharacteristicManagementUtility.persistCharacteristicChanges(List<ProductCharacteristic> toCreate, List<com.broadleafcommerce.data.tracking.core.service.Update<ProductCharacteristic>> toUpdate, Map<String, Map<String, ProductCharacteristic>> prodCharsByIdByProductId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Persists the created and updated characteristics.protected booleanProductCharacteristicManagementUtility.shouldUpdateCharacteristic(ProductCharacteristic pc, Map<String, List<ProductCharacteristic>> existingCharacteristics, Map<String, BusinessType> businessTypesByKey, Map<String, P> productsById) Checks if the value of aProductCharacteristichas changed compared to the existing characteristics.Constructor parameters in com.broadleafcommerce.catalog.service.product.util with type arguments of type ProductCharacteristicModifierConstructorDescriptionProductCharacteristicManagementUtility(com.broadleafcommerce.common.extension.TypeFactory typeFactory, ProductCharacteristicService<ProductCharacteristic> productCharacteristicService, BusinessTypeService<BusinessType> businessTypeService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.service.validation
Methods in com.broadleafcommerce.catalog.service.validation that return types with arguments of type ProductCharacteristicMethod parameters in com.broadleafcommerce.catalog.service.validation with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidProductValidator.setProductCharacteristicService(ProductCharacteristicService<ProductCharacteristic> productCharacteristicService) -
Uses of ProductCharacteristic in com.broadleafcommerce.catalog.web.endpoint.dto
Methods in com.broadleafcommerce.catalog.web.endpoint.dto that return types with arguments of type ProductCharacteristicModifier and TypeMethodDescriptionProductCreationTemplateResponse.getCharacteristics()A list of product characteristics that should be pre-populated on the new product.Method parameters in com.broadleafcommerce.catalog.web.endpoint.dto with type arguments of type ProductCharacteristicModifier and TypeMethodDescriptionvoidProductCreationTemplateResponse.setCharacteristics(Map<String, ProductCharacteristic> characteristics) A list of product characteristics that should be pre-populated on the new product.