Class ProductDetailsProperties
java.lang.Object
com.broadleafcommerce.catalog.service.product.commerce.ProductDetailsProperties
@ConfigurationProperties("broadleaf.catalog.product.details")
public class ProductDetailsProperties
extends Object
Properties to configure the product details flow, particularly in
ProductDetailsService.- Since:
- Catalog Service 2.3.0-GA, Release Train 2.3.0-GA
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermines the behavior of the system with regard to hydratingVariantsontoProductDetailsfor the requested products.voidsetVariantHydrationBehavior(String variantHydrationBehavior) Determines the behavior of the system with regard to hydratingVariantsontoProductDetailsfor the requested products.
-
Constructor Details
-
ProductDetailsProperties
public ProductDetailsProperties()
-
-
Method Details
-
getVariantHydrationBehavior
Determines the behavior of the system with regard to hydratingVariantsontoProductDetailsfor the requested products. Particularly, whether to hydrate all variants for the requested products, no variants, or onlyLiteVariants. This can be overridden per request, seeProductDetailsRequest.getVariantHydrationBehavior(). Default isDefaultProductVariantHydrationBehavior.ALL.Note: Variants for the
ProductDetailsRequest.getVariantIds()are always hydrated if resolved.- See Also:
-
setVariantHydrationBehavior
Determines the behavior of the system with regard to hydratingVariantsontoProductDetailsfor the requested products. Particularly, whether to hydrate all variants for the requested products, no variants, or onlyLiteVariants. This can be overridden per request, seeProductDetailsRequest.getVariantHydrationBehavior(). Default isDefaultProductVariantHydrationBehavior.ALL.Note: Variants for the
ProductDetailsRequest.getVariantIds()are always hydrated if resolved.- See Also:
-