Class ProductReferences
java.lang.Object
com.broadleafcommerce.catalog.service.product.hydration.ProductReferences
Used by
DefaultProductHydrationService
to hold the references that need to be queried for
in the data store.- Author:
- Samarth Dhruva
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If an item references a category (or categories) that should be queried for, the referenced category ID(s) should be added to this set.If an item references a data driven enum that should be queried for, the referenced data driven enum ID(s) should be added to this set.If an item references a product option that should be queried for, the referenced option template(s) should be added to this set.If an item references a product (or products) that should be queried for, the referenced product ID(s) should be added to this set.If there are any products for which the primary asset should be queried, the IDs of those products should be added to this set.If there are any products for which the primary category should be queried, the IDs of those products should be added to this set.If an item references a variant (or variants) that should be queried for, the referenced variant ID(s) should be added to this set.int
hashCode()
toString()
-
Constructor Details
-
ProductReferences
public ProductReferences()
-
-
Method Details
-
getProductIdsToFind
If an item references a product (or products) that should be queried for, the referenced product ID(s) should be added to this set.- See Also:
-
ResolvedProductReferences.productsById
-
getVariantIdsToFind
If an item references a variant (or variants) that should be queried for, the referenced variant ID(s) should be added to this set.- See Also:
-
ResolvedProductReferences.variantsById
-
getProductIdsToFindPrimaryAssetsFor
If there are any products for which the primary asset should be queried, the IDs of those products should be added to this set.- See Also:
-
ResolvedProductReferences.primaryAssetsByProductId
-
getProductIdsToFindPrimaryCategoriesFor
If there are any products for which the primary category should be queried, the IDs of those products should be added to this set.- See Also:
-
ResolvedProductReferences.primaryCategoriesByProductId
-
getCategoryIdsToFind
If an item references a category (or categories) that should be queried for, the referenced category ID(s) should be added to this set.- See Also:
-
ResolvedProductReferences.categoriesById
-
getDataDrivenEnumIdsToFind
If an item references a data driven enum that should be queried for, the referenced data driven enum ID(s) should be added to this set.- See Also:
-
ResolvedProductReferences.dataDrivenEnumsById
-
getOptionTemplateIdstoFind
If an item references a product option that should be queried for, the referenced option template(s) should be added to this set.- See Also:
-
ResolvedProductReferences.optionTemplatesById
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-