Uses of Class
com.broadleafcommerce.catalog.domain.product.Variant
Package
Description
-
Uses of Variant in com.broadleafcommerce.catalog.clone.product.autoconfigure
Modifier and TypeMethodDescriptionCloneProductAutoConfiguration.cloneProductVariantsService
(VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.clone.product.service
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
CloneProductVariantsService.getVariantService()
ModifierConstructorDescriptionCloneProductVariantsService
(VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.dataexport
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
ProductExportRowProducer.getVariantService()
ProductExportRowProducer.readVariantsByProductIdIn
(Set<String> productIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ModifierConstructorDescriptionProductExportRowProducer
(ProductExportRowConverter productExportRowConverter, VariantExportRowConverter variantExportRowConverter, IncludedProductExportRowConverter includedProductExportRowConverter, ProductOptionExportRowConverter productOptionExportRowConverter, CategoryProductExportRowConverter categoryProductExportRowConverter, ProductAssetExportRowConverter productAssetExportRowConverter, AttributeChoiceValueExportRowConverter attributeChoiceValueExportRowConverter, SpecificItemChoiceExportRowConverter specificItemChoiceExportRowConverter, ProductTagExportRowConverter productTagExportRowConverter, VariantService<Variant> variantService, CategoryProductService<CategoryProduct> categoryProductService, ProductAssetService<ProductAsset> productAssetService, ProductTagService<ProductTag> productTagService) -
Uses of Variant in com.broadleafcommerce.catalog.dataexport.autoconfigure
Modifier and TypeMethodDescriptionCatalogServicesExportAutoConfiguration.productExportRowProducer
(ProductExportRowConverter productExportRowConverter, VariantExportRowConverter variantExportRowConverter, IncludedProductExportRowConverter includedProductExportRowConverter, ProductOptionExportRowConverter productOptionExportRowConverter, CategoryProductExportRowConverter categoryProductExportRowConverter, ProductAssetExportRowConverter productAssetExportRowConverter, AttributeChoiceValueExportRowConverter attributeChoiceValueExportRowConverter, SpecificItemChoiceExportRowConverter specificItemChoiceExportRowConverter, ProductTagExportRowConverter productTagExportRowConverter, VariantService<Variant> variantService, CategoryProductService<CategoryProduct> categoryProductService, ProductAssetService<ProductAsset> productAssetService, ProductTagService<ProductTag> productTagService) -
Uses of Variant in com.broadleafcommerce.catalog.dataexport.converter
-
Uses of Variant in com.broadleafcommerce.catalog.dataimport
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
CompleteProductImportBatchHandler.getVariantService()
protected VariantService<Variant>
ProductImportBatchHandler.getVariantService()
Deprecated.protected com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>
ProductImportBatchHandler.initializeVariantAndBuildPersistenceRequest
(Variant variant, com.broadleafcommerce.common.dataimport.messaging.BatchRecord variantRecord, String parentProductResourceId) Deprecated.Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>
ProductImportBatchHandler.initializeVariantAndBuildPersistenceRequest
(Variant variant, com.broadleafcommerce.common.dataimport.messaging.BatchRecord variantRecord, String parentProductResourceId) Deprecated.Modifier and TypeMethodDescriptionprotected void
CompleteProductImportBatchHandler.convertVariantRecord
(com.broadleafcommerce.common.dataimport.messaging.BatchRecord variantRecord, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context, Product parent, List<com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>> successfulVariants, List<com.broadleafcommerce.common.dataimport.util.PersistenceRequest<com.broadleafcommerce.translation.domain.Translation>> successfulTranslations, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> failed) protected void
CompleteProductImportBatchHandler.convertVariantsForProduct
(com.broadleafcommerce.common.dataimport.messaging.BatchRequest request, Product parent, com.broadleafcommerce.common.dataimport.messaging.BatchRecord productRecord, List<com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>> successfulVariants, List<com.broadleafcommerce.common.dataimport.util.PersistenceRequest<com.broadleafcommerce.translation.domain.Translation>> successfulTranslations, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> failed) Converts all variant records for the given product with partial success semantics.protected void
ProductImportBatchHandler.processVariantRecord
(com.broadleafcommerce.common.dataimport.messaging.BatchRecord variantRecord, String parentProductResourceId, List<com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>> successful, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> failed) Deprecated.ModifierConstructorDescriptionCompleteProductImportBatchHandler
(ProductRowConverter productConverter, CategoryProductColumnConverter categoryProductColumnConverter, ProductImageColumnConverter productImageColumnConverter, VariantRowConverter variantConverter, CatalogTranslationColumnConverter catalogTranslationColumnConverter, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryService<Category> categoryService, CategoryProductService<CategoryProduct> categoryProductService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, int batchSize, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator) CompleteProductImportBatchHandler
(ProductRowConverter productConverter, CategoryProductColumnConverter categoryProductColumnConverter, ProductImageColumnConverter productImageColumnConverter, VariantRowConverter variantConverter, CatalogTranslationColumnConverter catalogTranslationColumnConverter, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryService<Category> categoryService, CategoryProductService<CategoryProduct> categoryProductService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator) ProductImportBatchHandler
(ProductConverter productConverter, VariantConverter variantConverter, IncludedProductConverter includedProductConverter, ProductOptionConverter productOptionConverter, AttributeChoiceValueConverter attributeChoiceValueConverter, SpecificItemChoiceConverter specificItemChoiceConverter, CategoryProductConverter categoryProductConverter, ProductAssetConverter productAssetConverter, ProductTagConverter productTagConverter, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ProductDefaultsInitializer productDefaultsInitializer, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryProductService<CategoryProduct> categoryProductService, OptionTemplateGroupService<OptionTemplateGroup> optionTemplateGroupService, OptionTemplateService<OptionTemplate> optionTemplateService, ProductTagService<ProductTag> productTagService, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator) Deprecated. -
Uses of Variant in com.broadleafcommerce.catalog.dataimport.autoconfigure
Modifier and TypeMethodDescriptionCatalogServicesImportAutoConfiguration.completeProductImportBatchHandler
(ProductRowConverter productConverter, CategoryProductColumnConverter categoryProductColumnConverter, ProductImageColumnConverter productImageColumnConverter, VariantRowConverter variantConverter, CatalogTranslationColumnConverter catalogTranslationColumnConverter, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryService<Category> categoryService, CategoryProductService<CategoryProduct> categoryProductService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator) CatalogServicesImportAutoConfiguration.productImportBatchHandler
(ProductConverter productConverter, VariantConverter variantConverter, IncludedProductConverter includedProductConverter, ProductOptionConverter productOptionConverter, AttributeChoiceValueConverter attributeChoiceValueConverter, SpecificItemChoiceConverter specificItemChoiceConverter, CategoryProductConverter categoryProductConverter, ProductAssetConverter productAssetConverter, ProductTagConverter productTagConverter, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryProductService<CategoryProduct> categoryProductService, OptionTemplateService<OptionTemplate> optionTemplateService, OptionTemplateGroupService<OptionTemplateGroup> optionTemplateGroupService, ProductTagService<ProductTag> productTagService, ProductDefaultsInitializer productDefaultsInitializer, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator, com.broadleafcommerce.common.extension.TypeFactory typeFactory) CatalogServicesImportAutoConfiguration.updatePricesImportBatchHandler
(com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator, ProductService<Product> productService, VariantService<Variant> variantService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Uses of Variant in com.broadleafcommerce.catalog.dataimport.converter
Modifier and TypeMethodDescriptionVariantConverter.convert
(@NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord source) Deprecated.protected Variant
VariantRowConverter.getPrefetchedVariant
(com.broadleafcommerce.common.dataimport.messaging.BatchRecord batchRecord, Map<String, String> batchRecordRow, @NonNull Product parent, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) Checks theBatchRequest.BatchContext.getAdditionalContextMap()
to see if there is already a pre-fetched variant matching thebatchRecord
.protected Variant
VariantRowConverter.modifyVariant
(@NonNull Variant variant, @NonNull Product parent, @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) Hook point to allow implementers to modify the details of the variant or return a different variant instance.Modifier and TypeMethodDescriptioncom.broadleafcommerce.common.dataimport.util.ConversionUtils.ConversionResponse<Variant>
VariantRowConverter.convert
(Object parent, com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) VariantRowConverter.instantiateOrGetPrefetchedVariant
(@NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, @NonNull Product parent, @NonNull Map<String, String> mutableRow, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) We expect theCompleteProductImportBatchHandler
to have pre-fetched variants by various identifier fields if supplied in the original rows.Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.type.OperationType
VariantRowConverter.determineOperationType
(@NonNull Variant variant, boolean variantAlreadyExistsInDatastore, @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) Determine the effective operation type for the given batch record and variant instance.protected void
VariantRowConverter.initializeData
(@NonNull Product parent, @NonNull Variant variant, @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, @NonNull Map<String, String> mutableRow, @NonNull com.broadleafcommerce.data.tracking.core.type.OperationType operation, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) Initialize the data from the row onto the variant.protected Variant
VariantRowConverter.modifyVariant
(@NonNull Variant variant, @NonNull Product parent, @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) Hook point to allow implementers to modify the details of the variant or return a different variant instance.protected void
VariantRowConverter.parseAndSetAttributes
(@NonNull Variant variant, @NonNull Map<String, String> specialColumns, @NonNull com.broadleafcommerce.data.tracking.core.type.OperationType operationType) protected void
VariantRowConverter.parseAndSetFulfillmentFlatRates
(@NonNull Variant variant, @NonNull Map<String, String> specialColumns, @NonNull com.broadleafcommerce.data.tracking.core.type.OperationType operationType) protected void
VariantRowConverter.parseAndSetProductOptionValues
(Product parent, Variant variant, Map<String, String> specialColumns, com.broadleafcommerce.data.tracking.core.type.OperationType operationType) TheProductRowConverter.parseAndSetOptions(Product, OperationType, BatchRecord, Map, BatchContext)
method should have already parsed option values from this variant record (and all others) and used it to populate theAttributeChoice.getAllowedValues()
on theparent
.protected String
VariantRowConverter.resolveVariantId
(@NonNull Variant variant, @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, @NonNull com.broadleafcommerce.data.tracking.core.type.OperationType operation, com.broadleafcommerce.common.dataimport.messaging.BatchRequest.BatchContext context) -
Uses of Variant in com.broadleafcommerce.catalog.dataimport.prices
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
UpdatePricesImportBatchHandler.getVariantService()
Modifier and TypeMethodDescriptionprotected void
UpdatePricesImportBatchHandler.applyPricingUpdatesToVariant
(@NonNull Variant original, @NonNull Variant updateRecord) ModifierConstructorDescriptionUpdatePricesImportBatchHandler
(com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator, ProductService<Product> productService, VariantService<Variant> variantService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Uses of Variant in com.broadleafcommerce.catalog.domain.product
Modifier and TypeMethodDescriptionConsolidatedProduct.getDefaultVariant()
Product.getDefaultVariant()
When the `productType` is `VARIANT_BASED` this represents the default.IncludedProduct.getVariant()
This field contains the specified variant if thetype
isIncludedProductType.VARIANT
.Modifier and TypeMethodDescriptionvoid
ConsolidatedProduct.setDefaultVariant
(Variant defaultVariant) void
Product.setDefaultVariant
(Variant defaultVariant) When the `productType` is `VARIANT_BASED` this represents the default.void
IncludedProduct.setVariant
(Variant variant) This field contains the specified variant if thetype
isIncludedProductType.VARIANT
.ModifierConstructorDescriptionIncludedProduct
(String id, String pricingKey, String type, String label, Long displayOrder, Product product, Variant variant, String variantParentProductId, javax.money.MonetaryAmount overridePrice, boolean discountAllowed, int quantity, com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState, IncludedProductAsset asset) Product
(String id, String name, String uri, String description, String sku, String upc, String externalId, javax.money.CurrencyUnit currency, String pricingKey, javax.money.MonetaryAmount msrp, javax.money.MonetaryAmount defaultPrice, javax.money.MonetaryAmount salePrice, javax.money.MonetaryAmount cost, String metaTitle, String metaDescription, String displayTemplate, boolean online, boolean discountable, String inventoryType, String mergingType, boolean availableOnline, String inventoryCheckStrategy, String inventoryReservationStrategy, boolean eligibleForPickup, Map<String, FulfillmentFlatRate> fulfillmentFlatRates, Instant activeStartDate, Instant activeEndDate, Dimensions dimension, Weight weight, boolean searchable, boolean individuallySold, boolean merchandisingProduct, String productType, String businessType, List<String> keywords, Map<String, Attribute> attributes, List<IncludedProduct> includedProducts, List<ProductOption> options, ReviewsSummary reviewsSummary, ProductAsset primaryAsset, Category primaryCategory, List<String> tags, DataDrivenEnum brand, DataDrivenEnum merchandisingType, DataDrivenEnum targetDemographic, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState, String taxCode, Integer minimumThreshold, Integer maximumThreshold, Variant defaultVariant) ModifierConstructorDescriptionConsolidatedProduct
(Product product, List<Variant> variants, CategoryRef primaryCategory, List<CategoryRef> explicitCategories, List<CategoryRef> categories, List<DataDrivenEnum> dataDrivenEnums, Map<String, ProductAsset> optionAssets, List<ProductAsset> allAssets, String vendorRef, Map<String, String> productSortingWithinCategories, Set<String> catalogOverrides, Set<String> catalogOmissions, Set<String> sandboxOverrides, List<com.broadleafcommerce.translation.domain.Translation> translations, Set<String> marketplaceApplications, boolean archived, String sandboxOwner, boolean hasRequiredOptions, boolean requiredOptionsAvailable, List<AdvancedTagRef> advancedTags) -
Uses of Variant in com.broadleafcommerce.catalog.domain.product.commerce
Modifier and TypeMethodDescriptionProductDetails.getDefaultVariant()
ProductSummary.getDefaultVariant()
VariantDetail.getVariant()
Modifier and TypeMethodDescriptionvoid
ProductDetails.setDefaultVariant
(Variant defaultVariant) void
ProductSummary.setDefaultVariant
(Variant defaultVariant) void
VariantDetail.setVariant
(Variant variant) ModifierConstructorDescriptionVariantDetail
(Variant variant, PriceInfo priceInfo, String vendorRef, List<ProductTag> advancedTags) -
Uses of Variant in com.broadleafcommerce.catalog.domain.product.option
Modifier and TypeMethodDescriptionItemChoice.getDefaultVariant()
The default variant that can be used when driving customer selections if theItemChoice.targetType
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.SpecificItemChoice.getVariant()
If theSpecificItemChoice.type
isDefaultSpecificItemChoiceType.VARIANT
this holds the variant for this choiceSpecificItemVariantPricing.getVariant()
ID of theVariant
this pricing should be used with.Modifier and TypeMethodDescriptionvoid
ItemChoice.setDefaultVariant
(Variant defaultVariant) The default variant that can be used when driving customer selections if theItemChoice.targetType
isDefaultItemChoiceTargetType.SPECIFIC_VARIANTS
.void
SpecificItemChoice.setVariant
(Variant variant) If theSpecificItemChoice.type
isDefaultSpecificItemChoiceType.VARIANT
this holds the variant for this choicevoid
SpecificItemVariantPricing.setVariant
(Variant variant) ID of theVariant
this pricing should be used with. -
Uses of Variant in com.broadleafcommerce.catalog.domain.tag
Modifier and TypeMethodDescriptionProductTag.getVariant()
TheVariant
to associate to theProductTag.tag
to.Modifier and TypeMethodDescriptionvoid
ProductTag.setVariant
(Variant variant) TheVariant
to associate to theProductTag.tag
to. -
Uses of Variant in com.broadleafcommerce.catalog.messaging
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
DeleteProductRelationshipEntitiesHandler.getVariantService()
Deprecated, for removal: This API element is subject to removal in a future version.ModifierConstructorDescriptionDeleteProductRelationshipEntitiesHandler
(CategoryProductService<CategoryProduct> categoryProductService, VariantService<Variant> variantService, ProductTagService<ProductTag> productTagService, PromotionalProductService<PromotionalProduct> promotionalProductService, ProductAssetService<ProductAsset> productAssetService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService, com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager, ProductRepository<JpaProduct> productRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Variant in com.broadleafcommerce.catalog.messaging.autoconfigure
Modifier and TypeMethodDescriptionCatalogMessagingAutoConfiguration.CatalogEntityDeletionConfiguration.variantCatalogEntityDeletedEventHandler
(com.broadleafcommerce.data.tracking.core.tenant.service.CommonCatalogService<com.broadleafcommerce.data.tracking.core.tenant.domain.Catalog> catalogService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator contextRequestHydrator, VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.messaging.entitydeletion.handlers
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
VariantCatalogEntityDeletedEventHandler.getVariantService()
ModifierConstructorDescriptionVariantCatalogEntityDeletedEventHandler
(com.broadleafcommerce.data.tracking.core.tenant.service.CommonCatalogService<com.broadleafcommerce.data.tracking.core.tenant.domain.Catalog> catalogService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator contextRequestHydrator, VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.service.category.commerce.context.contributor
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
RelatedVariantsCategoryContextContributor.getVariantService()
ModifierConstructorDescriptionRelatedVariantsCategoryContextContributor
(VariantService<Variant> variantService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Variant in com.broadleafcommerce.catalog.service.product
Modifier and TypeClassDescriptionclass
DefaultVariantService<P extends Variant>
class
SkuGenerationService<P extends Variant>
Responsible for generating Skus for aOptionTemplateGroup
.interface
VariantService<P extends Variant>
The main service dealing with accessing Variants from a backing storeModifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultProductService.getVariantService()
protected VariantService<Variant>
SkuGenerationService.getVariantSvc()
ModifierConstructorDescriptionDefaultProductService
(ProductRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, VariantService<Variant> variantService, CategoryProductService<CategoryProduct> categoryProductService, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser, com.broadleafcommerce.common.extension.TypeFactory typeFactory) SkuGenerationService
(VariantService<Variant> variantSvc, ProductService<Product> productSvc, ProductOptionValueCombinationService combinationSvc, com.broadleafcommerce.common.extension.TypeFactory typeFactory, org.springframework.transaction.support.TransactionTemplate template) -
Uses of Variant in com.broadleafcommerce.catalog.service.product.commerce.context.contributor
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
ItemChoiceHierarchyProductContextContributor.getVariantService()
protected VariantService<Variant>
RelatedVariantsProductContextContributor.getVariantService()
ModifierConstructorDescriptionItemChoiceHierarchyProductContextContributor
(CategoryProductService<CategoryProduct> categoryProductService, ProductService<Product> productService, VariantService<Variant> variantService, CategoryService<Category> categoryService, CatalogServiceProperties properties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) RelatedVariantsProductContextContributor
(VariantService<Variant> variantService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Variant in com.broadleafcommerce.catalog.service.product.consolidation
Modifier and TypeMethodDescriptionVariantProductConsolidationContributor.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 VariantService<Variant>
TranslationProductConsolidationContributor.getVariantService()
protected VariantService<Variant>
VariantProductConsolidationContributor.getVariantSvc()
VariantProductConsolidationContributor.idGetter()
VariantProductConsolidationContributor.productIdGetter()
protected BiConsumer<ConsolidatedProduct,
List<Variant>> VariantProductConsolidationContributor.setter()
ModifierConstructorDescriptionTranslationProductConsolidationContributor
(com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, ProductService<Product> productService, VariantService<Variant> variantService, ProductAssetService<ProductAsset> productAssetService, CategoryService<Category> categoryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) VariantProductConsolidationContributor
(VariantService<Variant> variantSvc, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Variant in com.broadleafcommerce.catalog.service.product.hydration
Modifier and TypeMethodDescriptionResolvedProductReferences.getVariantsById()
Contains the results of querying forProductReferences.variantIdsToFind
.protected VariantService<Variant>
DefaultProductHydrationService.getVariantService()
Modifier and TypeMethodDescriptionprotected ProductOption
DefaultProductHydrationService.applyHydration
(ProductOption option, ResolvedProductReferences foundItems, List<Variant> variants) Traverses through theoption
and replaces each item reference with the fully-populated representation of the reference as found infoundItems
.protected Product
DefaultProductHydrationService.applyHydration
(Product product, ResolvedProductReferences foundItems, List<Variant> variants) Traverses through theproduct
and replaces each item reference with the fully-populated representation of the reference as found infoundItems
.void
ResolvedProductReferences.setVariantsById
(Map<String, Variant> variantsById) Contains the results of querying forProductReferences.variantIdsToFind
.ModifierConstructorDescriptionDefaultProductHydrationService
(ProductService<Product> productService, ProductAssetService<ProductAsset> productAssetService, VariantService<Variant> variantService, CategoryService<Category> categoryService, CategoryProductService<CategoryProduct> categoryProductService, DataDrivenEnumService<DataDrivenEnum> dataDrivenEnumService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Variant in com.broadleafcommerce.catalog.service.tag
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultProductTagService.getVariantService()
ModifierConstructorDescriptionDefaultProductTagService
(ProductTagRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, AdvancedTagService<AdvancedTag> advancedTagService, ProductService<Product> productService, VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.service.util.commerce
Modifier and TypeMethodDescriptionPriceInfoContributionUtils.createPriceInfoForVariant
(@NonNull Variant variant) PriceInfoContributionUtils.createPriceInfoForVariant
(@NonNull Variant variant, Product parentProduct) -
Uses of Variant in com.broadleafcommerce.catalog.service.validation
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
ProductOptionValidator.getVariantService()
protected VariantService<Variant>
ProductValidator.getVariantService()
Modifier and TypeMethodDescriptionprotected void
VariantValidator.validateActiveEndDate
(Variant variant, org.springframework.validation.Errors errors) protected void
VariantValidator.validateCost
(Variant variant, javax.money.CurrencyUnit expectedCurrency, org.springframework.validation.Errors errors) protected void
VariantValidator.validateDefaultPrice
(Variant variant, Product referencedProduct, javax.money.CurrencyUnit expectedCurrency, org.springframework.validation.Errors errors) protected void
VariantValidator.validateOptions
(Variant variant, Product referencedProduct, org.springframework.validation.Errors errors) protected Product
VariantValidator.validateProductId
(Variant variant, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Validates thatgetProductId()
is present and ensures the product exists in the data store.protected void
VariantValidator.validateSalePrice
(Variant variant, javax.money.CurrencyUnit expectedCurrency, org.springframework.validation.Errors errors) protected void
VariantValidator.validateThresholds
(Variant variant, Product referencedProduct, org.springframework.validation.Errors errors) Modifier and TypeMethodDescriptionvoid
ProductOptionValidator.setVariantService
(VariantService<Variant> variantService) Lazy injection since this validator is itself a service component.void
ProductValidator.setVariantService
(VariantService<Variant> variantService) Lazy injection since this validator is itself a service component. -
Uses of Variant in com.broadleafcommerce.catalog.service.validation.product.type
Modifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultVariantBasedProductTypeValidator.getVariantService()
Modifier and TypeMethodDescriptionprotected void
DefaultVariantBasedProductTypeValidator.validateVariant
(Variant variant, Product product, org.springframework.validation.Errors errors) Modifier and TypeMethodDescriptionDefaultVariantBasedProductTypeValidator.getUsedVariantOptionValuesByNameMap
(List<Variant> variantList) Creates a map containing all the optionNames (as keys) and a set of optionValues (as values) that are currently being used by all the variants of a product.void
DefaultVariantBasedProductTypeValidator.setVariantService
(VariantService<Variant> variantService) Lazy injection since this validator is itself a service component.protected void
DefaultVariantBasedProductTypeValidator.validateOptionsAndOptionValuesUsageInVariants
(Product product, Product existingProduct, List<Variant> variantList, org.springframework.validation.Errors errors) Validates if aProductOption
or itsAttributeChoiceValue
is used in any of the variants of the current productprotected void
DefaultVariantBasedProductTypeValidator.validateVariants
(Product businessInstance, List<? extends Variant> variantsList, org.springframework.validation.Errors errors) Validates the variants and adds errors to the errors object if any. -
Uses of Variant in com.broadleafcommerce.catalog.web.endpoint
Modifier and TypeMethodDescriptionVariantEndpoint.createVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, Variant req) VariantEndpoint.readVariantById
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String variantId) VariantEndpoint.replaceVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, String variantId, Variant req) VariantEndpoint.updateVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, String variantId, Variant req) Modifier and TypeMethodDescriptionProductEndpoint.generateSkus
(String productId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, SkuGenerationParameters generationParameters) org.springframework.data.domain.Page<Variant>
VariantEndpoint.getAllProductVariants
(String productId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected SkuGenerationService<Variant>
ProductEndpoint.getSkuGenerationSvc()
protected VariantService<Variant>
ProductTagVariantEndpoint.getVariantService()
protected VariantService<Variant>
VariantEndpoint.getVariantSvc()
Modifier and TypeMethodDescriptionVariantEndpoint.createVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, Variant req) VariantEndpoint.replaceVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, String variantId, Variant req) VariantEndpoint.updateVariant
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String productId, String variantId, Variant req) ModifierConstructorDescriptionProductEndpoint
(ProductService<Product> productSvc, CloneProductService<Product, CloneProductRequest> cloneProductSvc, SkuGenerationService<Variant> skuGenerationSvc, PromotionalProductService<PromotionalProduct> promotionalProductSvc, CategoryService<Category> categoryService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, CategoryProductService<CategoryProduct> categoryProductService, com.broadleafcommerce.bulk.service.BulkUpdateManager bulkUpdateManager, com.broadleafcommerce.bulk.service.BulkUpdateService<com.broadleafcommerce.bulk.domain.BulkUpdate> bulkUpdateService, com.broadleafcommerce.common.extension.TypeFactory catalogFactory, ProductConsolidationService productConsolidationService, ProductHydrationService productHydrationService, OptionGenerationService<Product> optionGenerationService, com.broadleafcommerce.data.tracking.core.filtering.fetch.rsql.web.RsqlFilterHandlerMethodArgumentResolver rsqlResolver) ProductTagVariantEndpoint
(VariantService<Variant> variantService, ProductService<Product> productService, AdvancedTagService<AdvancedTag> tagService, ProductTagService<ProductTag> productTagService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) VariantEndpoint
(VariantService<Variant> variantSvc, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService)