Uses of Class
com.broadleafcommerce.catalog.domain.product.Variant
Packages that use Variant
Package
Description
-
Uses of Variant in com.broadleafcommerce.catalog.clone.product.autoconfigure
Method parameters in com.broadleafcommerce.catalog.clone.product.autoconfigure with type arguments of type VariantModifier and TypeMethodDescriptionCloneProductAutoConfiguration.cloneProductVariantsService
(VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.clone.product.service
Methods in com.broadleafcommerce.catalog.clone.product.service that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
CloneProductVariantsService.getVariantService()
Constructor parameters in com.broadleafcommerce.catalog.clone.product.service with type arguments of type VariantModifierConstructorDescriptionCloneProductVariantsService
(VariantService<Variant> variantService) -
Uses of Variant in com.broadleafcommerce.catalog.dataexport
Methods in com.broadleafcommerce.catalog.dataexport that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
ProductExportRowProducer.getVariantService()
ProductExportRowProducer.readVariantsByProductIdIn
(Set<String> productIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Constructor parameters in com.broadleafcommerce.catalog.dataexport with type arguments of type VariantModifierConstructorDescriptionProductExportRowProducer
(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
Method parameters in com.broadleafcommerce.catalog.dataexport.autoconfigure with type arguments of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.dataexport.converter with parameters of type Variant -
Uses of Variant in com.broadleafcommerce.catalog.dataimport
Methods in com.broadleafcommerce.catalog.dataimport that return types with arguments of type VariantModifier 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.Methods in com.broadleafcommerce.catalog.dataimport with parameters of type VariantModifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.dataimport.util.PersistenceRequest<Variant>
ProductImportBatchHandler.initializeVariantAndBuildPersistenceRequest
(Variant variant, com.broadleafcommerce.common.dataimport.messaging.BatchRecord variantRecord, String parentProductResourceId) Deprecated.Method parameters in com.broadleafcommerce.catalog.dataimport with type arguments of type VariantModifier 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.Constructor parameters in com.broadleafcommerce.catalog.dataimport with type arguments of type VariantModifierConstructorDescriptionCompleteProductImportBatchHandler
(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
Method parameters in com.broadleafcommerce.catalog.dataimport.autoconfigure with type arguments of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.dataimport.converter that return VariantModifier 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.Methods in com.broadleafcommerce.catalog.dataimport.converter that return types with arguments of type VariantModifier 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.Methods in com.broadleafcommerce.catalog.dataimport.converter with parameters of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.dataimport.prices that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
UpdatePricesImportBatchHandler.getVariantService()
Methods in com.broadleafcommerce.catalog.dataimport.prices with parameters of type VariantModifier and TypeMethodDescriptionprotected void
UpdatePricesImportBatchHandler.applyPricingUpdatesToVariant
(@NonNull Variant original, @NonNull Variant updateRecord) Constructor parameters in com.broadleafcommerce.catalog.dataimport.prices with type arguments of type VariantModifierConstructorDescriptionUpdatePricesImportBatchHandler
(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
Methods in com.broadleafcommerce.catalog.domain.product that return VariantModifier 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
.Methods in com.broadleafcommerce.catalog.domain.product that return types with arguments of type VariantMethods in com.broadleafcommerce.catalog.domain.product with parameters of type VariantModifier 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
.Method parameters in com.broadleafcommerce.catalog.domain.product with type arguments of type VariantConstructors in com.broadleafcommerce.catalog.domain.product with parameters of type VariantModifierConstructorDescriptionIncludedProduct
(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) Constructor parameters in com.broadleafcommerce.catalog.domain.product with type arguments of type VariantModifierConstructorDescriptionConsolidatedProduct
(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
Methods in com.broadleafcommerce.catalog.domain.product.commerce that return VariantModifier and TypeMethodDescriptionProductDetails.getDefaultVariant()
ProductSummary.getDefaultVariant()
VariantDetail.getVariant()
Methods in com.broadleafcommerce.catalog.domain.product.commerce with parameters of type VariantModifier and TypeMethodDescriptionvoid
ProductDetails.setDefaultVariant
(Variant defaultVariant) void
ProductSummary.setDefaultVariant
(Variant defaultVariant) void
VariantDetail.setVariant
(Variant variant) Constructors in com.broadleafcommerce.catalog.domain.product.commerce with parameters of type VariantModifierConstructorDescriptionVariantDetail
(Variant variant, PriceInfo priceInfo, String vendorRef, List<ProductTag> advancedTags) -
Uses of Variant in com.broadleafcommerce.catalog.domain.product.option
Methods in com.broadleafcommerce.catalog.domain.product.option that return VariantModifier 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.Methods in com.broadleafcommerce.catalog.domain.product.option with parameters of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.domain.tag that return VariantModifier and TypeMethodDescriptionProductTag.getVariant()
TheVariant
to associate to theProductTag.tag
to.Methods in com.broadleafcommerce.catalog.domain.tag with parameters of type VariantModifier and TypeMethodDescriptionvoid
ProductTag.setVariant
(Variant variant) TheVariant
to associate to theProductTag.tag
to. -
Uses of Variant in com.broadleafcommerce.catalog.messaging
Methods in com.broadleafcommerce.catalog.messaging that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
DeleteProductRelationshipEntitiesHandler.getVariantService()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor parameters in com.broadleafcommerce.catalog.messaging with type arguments of type VariantModifierConstructorDescriptionDeleteProductRelationshipEntitiesHandler
(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
Method parameters in com.broadleafcommerce.catalog.messaging.autoconfigure with type arguments of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.messaging.entitydeletion.handlers that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
VariantCatalogEntityDeletedEventHandler.getVariantService()
Constructor parameters in com.broadleafcommerce.catalog.messaging.entitydeletion.handlers with type arguments of type VariantModifierConstructorDescriptionVariantCatalogEntityDeletedEventHandler
(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
Methods in com.broadleafcommerce.catalog.service.category.commerce.context.contributor that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
RelatedVariantsCategoryContextContributor.getVariantService()
Constructor parameters in com.broadleafcommerce.catalog.service.category.commerce.context.contributor with type arguments of type VariantModifierConstructorDescriptionRelatedVariantsCategoryContextContributor
(VariantService<Variant> variantService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Variant in com.broadleafcommerce.catalog.service.product
Classes in com.broadleafcommerce.catalog.service.product with type parameters of type VariantModifier 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 storeMethods in com.broadleafcommerce.catalog.service.product that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultProductService.getVariantService()
protected VariantService<Variant>
SkuGenerationService.getVariantSvc()
Constructor parameters in com.broadleafcommerce.catalog.service.product with type arguments of type VariantModifierConstructorDescriptionDefaultProductService
(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
Methods in com.broadleafcommerce.catalog.service.product.commerce.context.contributor that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
ItemChoiceHierarchyProductContextContributor.getVariantService()
protected VariantService<Variant>
RelatedVariantsProductContextContributor.getVariantService()
Constructor parameters in com.broadleafcommerce.catalog.service.product.commerce.context.contributor with type arguments of type VariantModifierConstructorDescriptionItemChoiceHierarchyProductContextContributor
(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
Methods in com.broadleafcommerce.catalog.service.product.consolidation that return types with arguments of type VariantModifier 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()
Constructor parameters in com.broadleafcommerce.catalog.service.product.consolidation with type arguments of type VariantModifierConstructorDescriptionTranslationProductConsolidationContributor
(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
Methods in com.broadleafcommerce.catalog.service.product.hydration that return types with arguments of type VariantModifier and TypeMethodDescriptionResolvedProductReferences.getVariantsById()
Contains the results of querying forProductReferences.variantIdsToFind
.protected VariantService<Variant>
DefaultProductHydrationService.getVariantService()
Method parameters in com.broadleafcommerce.catalog.service.product.hydration with type arguments of type VariantModifier 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
.Constructor parameters in com.broadleafcommerce.catalog.service.product.hydration with type arguments of type VariantModifierConstructorDescriptionDefaultProductHydrationService
(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
Methods in com.broadleafcommerce.catalog.service.tag that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultProductTagService.getVariantService()
Constructor parameters in com.broadleafcommerce.catalog.service.tag with type arguments of type VariantModifierConstructorDescriptionDefaultProductTagService
(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
Methods in com.broadleafcommerce.catalog.service.util.commerce with parameters of type VariantModifier and TypeMethodDescriptionPriceInfoContributionUtils.createPriceInfoForVariant
(@NonNull Variant variant) PriceInfoContributionUtils.createPriceInfoForVariant
(@NonNull Variant variant, Product parentProduct) -
Uses of Variant in com.broadleafcommerce.catalog.service.validation
Methods in com.broadleafcommerce.catalog.service.validation that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
ProductOptionValidator.getVariantService()
protected VariantService<Variant>
ProductValidator.getVariantService()
Methods in com.broadleafcommerce.catalog.service.validation with parameters of type VariantModifier 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) Method parameters in com.broadleafcommerce.catalog.service.validation with type arguments of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.service.validation.product.type that return types with arguments of type VariantModifier and TypeMethodDescriptionprotected VariantService<Variant>
DefaultVariantBasedProductTypeValidator.getVariantService()
Methods in com.broadleafcommerce.catalog.service.validation.product.type with parameters of type VariantModifier and TypeMethodDescriptionprotected void
DefaultVariantBasedProductTypeValidator.validateVariant
(Variant variant, Product product, org.springframework.validation.Errors errors) Method parameters in com.broadleafcommerce.catalog.service.validation.product.type with type arguments of type VariantModifier 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
Methods in com.broadleafcommerce.catalog.web.endpoint that return VariantModifier 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) Methods in com.broadleafcommerce.catalog.web.endpoint that return types with arguments of type VariantModifier 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()
Methods in com.broadleafcommerce.catalog.web.endpoint with parameters of type VariantModifier 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) Constructor parameters in com.broadleafcommerce.catalog.web.endpoint with type arguments of type VariantModifierConstructorDescriptionProductEndpoint
(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)