Class IncludedProductContributionUtils
java.lang.Object
com.broadleafcommerce.catalog.service.product.commerce.util.IncludedProductContributionUtils
Utility methods for
IncludedProductDetails
created for the response
to a ProductDetailsRequest
.- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
ConstructorDescriptionIncludedProductContributionUtils
(PriceInfoContributionUtils priceInfoContributionUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateIncludedProductDetail
(@NonNull IncludedProduct includedProduct, @NonNull ProductDetailsContext productDetailsContext) Creates anIncludedProductDetail
for anIncludedProduct
included its embedded relationships.protected PriceInfoContributionUtils
protected com.broadleafcommerce.common.extension.TypeFactory
protected IncludedProductDetail
populateIncludedItem
(@NonNull IncludedProductDetail includedProduct, @NonNull ProductDetailsContext productDetailsContext)
-
Constructor Details
-
IncludedProductContributionUtils
public IncludedProductContributionUtils(PriceInfoContributionUtils priceInfoContributionUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
createIncludedProductDetail
public IncludedProductDetail createIncludedProductDetail(@NonNull @NonNull IncludedProduct includedProduct, @NonNull @NonNull ProductDetailsContext productDetailsContext) Creates anIncludedProductDetail
for anIncludedProduct
included its embedded relationships.- Parameters:
includedProduct
- TheIncludedProduct
for which to make aIncludedProductDetail
productDetailsContext
- The relevantProductDetailsContext
- Returns:
- an
IncludedProductDetail
for aIncludedProduct
-
populateIncludedItem
protected IncludedProductDetail populateIncludedItem(@NonNull @NonNull IncludedProductDetail includedProduct, @NonNull @NonNull ProductDetailsContext productDetailsContext) -
getPriceInfoContributionUtils
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-