Uses of Class
com.broadleafcommerce.catalog.domain.option.OptionTemplate
Package
Description
-
Uses of OptionTemplate in com.broadleafcommerce.catalog.dataimport
Modifier and TypeMethodDescriptionprotected OptionTemplate
ProductImportBatchHandler.findOptionTemplate
(String optionTemplateId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Modifier and TypeMethodDescriptionprotected OptionTemplateService<OptionTemplate>
ProductImportBatchHandler.getOptionTemplateService()
Deprecated.ModifierConstructorDescriptionProductImportBatchHandler
(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 OptionTemplate in com.broadleafcommerce.catalog.dataimport.autoconfigure
Modifier and TypeMethodDescriptionCatalogServicesImportAutoConfiguration.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) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.domain.option
Modifier and TypeMethodDescriptionvoid
OptionTemplateGroup.setTemplates
(List<OptionTemplate> templates) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.domain.product.commerce
Modifier and TypeMethodDescriptionProductDetailsContext.getRelatedOptionTemplates()
An aggregation of allOption Templates
related to theProductDetailsContext.resolvedProduct
.Modifier and TypeMethodDescriptionvoid
ProductDetailsContext.setRelatedOptionTemplates
(Map<String, OptionTemplate> relatedOptionTemplates) An aggregation of allOption Templates
related to theProductDetailsContext.resolvedProduct
. -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.option
Modifier and TypeClassDescriptionclass
DefaultOptionTemplateService<P extends OptionTemplate>
interface
OptionTemplateService<P extends OptionTemplate>
Base service API forProductOptions
.Modifier and TypeMethodDescriptionprotected OptionTemplate
DefaultOptionTemplateGroupHydrationService.getHydratedOrLog
(OptionTemplate unhydrated, Map<String, OptionTemplate> foundTemplatesById) Returns the fully-populated instance ofunhydrated
if it was found, otherwise logs a warning and returnsunhydrated
as-is.Modifier and TypeMethodDescriptionprotected Map<String,
OptionTemplate> DefaultOptionTemplateGroupHydrationService.findTemplatesAndCollectToMap
(Set<String> templateIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected OptionTemplateService<OptionTemplate>
DefaultOptionTemplateGroupHydrationService.getTemplateService()
Modifier and TypeMethodDescriptionprotected OptionTemplate
DefaultOptionTemplateGroupHydrationService.getHydratedOrLog
(OptionTemplate unhydrated, Map<String, OptionTemplate> foundTemplatesById) Returns the fully-populated instance ofunhydrated
if it was found, otherwise logs a warning and returnsunhydrated
as-is.Modifier and TypeMethodDescriptionprotected OptionTemplateGroup
DefaultOptionTemplateGroupHydrationService.applyHydration
(@NonNull OptionTemplateGroup group, @NonNull Map<String, OptionTemplate> foundTemplatesById) protected OptionTemplate
DefaultOptionTemplateGroupHydrationService.getHydratedOrLog
(OptionTemplate unhydrated, Map<String, OptionTemplate> foundTemplatesById) Returns the fully-populated instance ofunhydrated
if it was found, otherwise logs a warning and returnsunhydrated
as-is.ModifierConstructorDescriptionDefaultOptionTemplateGroupHydrationService
(OptionTemplateService<OptionTemplate> templateService) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.product
Modifier and TypeMethodDescriptionprotected OptionTemplateService<OptionTemplate>
DefaultOptionGenerationService.getOptionTemplateService()
protected OptionTemplateService<OptionTemplate>
SkuGenerationService.getOptionTemplateService()
Modifier and TypeMethodDescriptionprotected P
DefaultOptionGenerationService.generateOptionFromTemplate
(@NonNull String productId, @NonNull OptionTemplate optionTemplate, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Modifier and TypeMethodDescriptionDefaultOptionGenerationService.copyOptionsFromTemplates
(@NonNull Product product, @NonNull List<OptionTemplate> templates) Deprecated, for removal: This API element is subject to removal in a future version.DefaultOptionGenerationService.copyOptionsFromTemplatesToProduct
(@NonNull Product product, @NonNull List<OptionTemplate> templates) void
SkuGenerationService.setOptionTemplateService
(OptionTemplateService<OptionTemplate> optionTemplateService) ModifierConstructorDescriptionDefaultOptionGenerationService
(ProductService<P> productService, OptionTemplateValidator optionTemplateValidator, OptionTemplateGroupValidator optionTemplateGroupValidator, OptionTemplateService<OptionTemplate> optionTemplateService, OptionTemplateGroupService<OptionTemplateGroup> optionTemplateGroupService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, OptionTemplateGroupHydrationService optionTemplateGroupHydrationService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, String optionTemplateRepositoryDomain) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.product.commerce.context.consolidator
Modifier and TypeMethodDescriptionprotected void
RelatedOptionTemplatesProductContextConsolidator.hydrateTemplateOntoProduct
(OptionTemplate optionTemplate, Product relatedProduct) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.product.commerce.context.contributor
Modifier and TypeMethodDescriptionprotected OptionTemplateService<OptionTemplate>
ItemChoiceHierarchyProductContextContributor.getOptionTemplateService()
Modifier and TypeMethodDescriptionvoid
ItemChoiceHierarchyProductContextContributor.setOptionTemplateService
(OptionTemplateService<OptionTemplate> optionTemplateService) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.product.consolidation
Modifier and TypeMethodDescriptionprotected Map<String,
List<OptionTemplate>> OptionTemplateProductConsolidationContributor.buildProductIdToOptionTemplates
(@NonNull Map<String, Set<String>> optionTemplateIdsToProductId, @NonNull List<OptionTemplate> objectsToConsolidate) Builds a map ofOptionTemplates
mapped by the ids ofProducts
that reference them via them ownProductOptions
.protected List<OptionTemplate>
OptionTemplateProductConsolidationContributor.getObjectsToConsolidate
(@NonNull Set<String> optionTemplateIds, @NonNull List<ConsolidatedProduct> products, @NonNull com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLines inheritanceLines, @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected OptionTemplateService<OptionTemplate>
OptionTemplateProductConsolidationContributor.getOptionTemplateService()
protected Function<OptionTemplate,
String> OptionTemplateProductConsolidationContributor.idGetter()
protected Function<OptionTemplate,
String> OptionTemplateProductConsolidationContributor.productIdGetter()
protected BiConsumer<ConsolidatedProduct,
List<OptionTemplate>> OptionTemplateProductConsolidationContributor.setter()
Modifier and TypeMethodDescriptionprotected Map<String,
List<OptionTemplate>> OptionTemplateProductConsolidationContributor.buildProductIdToOptionTemplates
(@NonNull Map<String, Set<String>> optionTemplateIdsToProductId, @NonNull List<OptionTemplate> objectsToConsolidate) Builds a map ofOptionTemplates
mapped by the ids ofProducts
that reference them via them ownProductOptions
.protected List<ProductOption>
OptionTemplateProductConsolidationContributor.getOptionsFromTemplates
(@NonNull Collection<? extends OptionTemplate> optionTemplates) protected void
OptionTemplateProductConsolidationContributor.setOptions
(@NonNull ConsolidatedProduct product, @NonNull List<? extends OptionTemplate> optionTemplates) ModifierConstructorDescriptionOptionTemplateProductConsolidationContributor
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, OptionTemplateService<OptionTemplate> optionTemplateService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.product.hydration
Modifier and TypeMethodDescriptionResolvedProductReferences.getOptionTemplatesById()
Contains the results of querying forProductReferences.optionTemplateIdstoFind
.protected OptionTemplateService<OptionTemplate>
DefaultProductHydrationService.getOptionTemplateService()
Modifier and TypeMethodDescriptionvoid
ResolvedProductReferences.setOptionTemplatesById
(Map<String, OptionTemplate> optionTemplatesById) Contains the results of querying forProductReferences.optionTemplateIdstoFind
.ModifierConstructorDescriptionDefaultProductHydrationService
(ProductService<Product> productService, ProductAssetService<ProductAsset> productAssetService, VariantService<Variant> variantService, CategoryService<Category> categoryService, CategoryProductService<CategoryProduct> categoryProductService, DataDrivenEnumService<DataDrivenEnum> dataDrivenEnumService, OptionTemplateService<OptionTemplate> optionTemplateService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.service.validation
Modifier and TypeMethodDescriptionprotected Optional<OptionTemplate>
ProductOptionValidator.findOptionTemplate
(String templateContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Wrapper aroundOptionTemplateService.readById(String, ContextInfo)
that catchesEntityMissingException
and returns anOptional.empty()
if so.protected OptionTemplateService<OptionTemplate>
ProductOptionValidator.getOptionTemplateService()
protected OptionTemplateService<OptionTemplate>
VariantValidator.getOptionTemplateService()
protected OptionTemplateService<OptionTemplate>
OptionTemplateGroupValidator.getTemplateService()
Modifier and TypeMethodDescriptionvoid
ProductOptionValidator.setOptionTemplateService
(OptionTemplateService<OptionTemplate> optionTemplateService) Lazy injection since this validator is itself a service component.void
VariantValidator.setOptionTemplateService
(OptionTemplateService<OptionTemplate> optionTemplateService) void
OptionTemplateGroupValidator.setTemplateService
(OptionTemplateService<OptionTemplate> templateService) -
Uses of OptionTemplate in com.broadleafcommerce.catalog.web.endpoint.option
Modifier and TypeMethodDescriptionOptionTemplateEndpoint.create
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, OptionTemplate req) OptionTemplateEndpoint.read
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id) OptionTemplateEndpoint.replace
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplate req) OptionTemplateEndpoint.update
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplate req) Modifier and TypeMethodDescriptionprotected OptionTemplateService<OptionTemplate>
OptionTemplateEndpoint.getService()
org.springframework.data.domain.Page<OptionTemplate>
OptionTemplateEndpoint.readAll
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String query, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Modifier and TypeMethodDescriptionOptionTemplateEndpoint.create
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, OptionTemplate req) OptionTemplateEndpoint.replace
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplate req) OptionTemplateEndpoint.update
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplate req) ModifierConstructorDescriptionOptionTemplateEndpoint
(OptionTemplateService<OptionTemplate> productOptionService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService, ProductHydrationService productHydrationService)
DefaultOptionGenerationService.copyOptionsFromTemplatesToProduct(Product, List)
.