Class ResolvedProductReferences
DefaultProductHydrationService to hold the results of querying for the
references.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanContains the results of querying forProductReferences.getBusinessTypeTypeKeysToFind().Contains the results of querying forProductReferences.getCategoryIdsToFind().Contains the results of querying forProductReferences.getCharacteristicIdsToFind().Map<String,List<org.apache.commons.lang3.tuple.Pair<String, com.broadleafcommerce.translation.domain.Translation>>> Contains the results of querying forcharacteristicvalues translations for characteristics that are assigned to a product(s).Contains the results of querying forProductReferences.getDataDrivenEnumIdsToFind().Contains the results of querying forProductReferences.getOptionTemplateIdstoFind().Contains the results of querying forProductReferences.getProductIdsToFindPrimaryAssetsFor().Contains the results of querying forProductReferences.getProductIdsToFindPrimaryCategoriesFor().Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor().Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results.Translations forproduct characteristics- characteristics translated directly in product.Contains the results of querying forProductReferences.getProductIdsToFind().Contains the results of querying forProductReferences.getVariantIdsToFind().inthashCode()voidsetBusinessTypeByTypeKey(Map<String, BusinessType> businessTypeByTypeKey) Contains the results of querying forProductReferences.getBusinessTypeTypeKeysToFind().voidsetCategoriesById(Map<String, Category> categoriesById) Contains the results of querying forProductReferences.getCategoryIdsToFind().voidsetCharacteristicsById(Map<String, Characteristic> characteristicsById) Contains the results of querying forProductReferences.getCharacteristicIdsToFind().voidsetCharacteristicValueTranslationsByCharacteristicId(Map<String, List<org.apache.commons.lang3.tuple.Pair<String, com.broadleafcommerce.translation.domain.Translation>>> characteristicValueTranslationsByCharacteristicId) Contains the results of querying forcharacteristicvalues translations for characteristics that are assigned to a product(s).voidsetDataDrivenEnumsById(Map<String, DataDrivenEnum> dataDrivenEnumsById) Contains the results of querying forProductReferences.getDataDrivenEnumIdsToFind().voidsetOptionTemplatesById(Map<String, OptionTemplate> optionTemplatesById) Contains the results of querying forProductReferences.getOptionTemplateIdstoFind().voidsetPrimaryAssetsByProductId(Map<String, ProductAsset> primaryAssetsByProductId) Contains the results of querying forProductReferences.getProductIdsToFindPrimaryAssetsFor().voidsetPrimaryCategoriesByProductId(Map<String, Category> primaryCategoriesByProductId) Contains the results of querying forProductReferences.getProductIdsToFindPrimaryCategoriesFor().voidsetProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor().voidsetProductCharacteristicsFromInheritanceLineByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsFromInheritanceLineByProductId) Contains the results of querying forProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results.voidsetProductCharacteristicTranslationsByProductId(Map<String, List<com.broadleafcommerce.translation.domain.Translation>> productCharacteristicTranslationsByProductId) Translations forproduct characteristics- characteristics translated directly in product.voidsetProductsById(Map<String, Product> productsById) Contains the results of querying forProductReferences.getProductIdsToFind().voidsetVariantsById(Map<String, Variant> variantsById) Contains the results of querying forProductReferences.getVariantIdsToFind().toString()
-
Constructor Details
-
ResolvedProductReferences
public ResolvedProductReferences()
-
-
Method Details
-
getProductsById
Contains the results of querying forProductReferences.getProductIdsToFind(). -
getVariantsById
Contains the results of querying forProductReferences.getVariantIdsToFind(). -
getPrimaryAssetsByProductId
Contains the results of querying forProductReferences.getProductIdsToFindPrimaryAssetsFor(). -
getPrimaryCategoriesByProductId
Contains the results of querying forProductReferences.getProductIdsToFindPrimaryCategoriesFor(). -
getCategoriesById
Contains the results of querying forProductReferences.getCategoryIdsToFind(). -
getDataDrivenEnumsById
Contains the results of querying forProductReferences.getDataDrivenEnumIdsToFind(). -
getOptionTemplatesById
Contains the results of querying forProductReferences.getOptionTemplateIdstoFind(). -
getBusinessTypeByTypeKey
Contains the results of querying forProductReferences.getBusinessTypeTypeKeysToFind(). -
getCharacteristicsById
Contains the results of querying forProductReferences.getCharacteristicIdsToFind(). -
getProductCharacteristicsByProductId
Contains the results of querying for
ProductReferences.getProductIdsToFindProductCharacteristicsFor().These results represent the 'most derived' characteristics for each product, with typical narrowing semantics applied. This means overrides from child catalogs or sandboxes are resolved to a single view per characteristic.
- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
getProductCharacteristicsFromInheritanceLineByProductId
public Map<String,List<ProductCharacteristic>> getProductCharacteristicsFromInheritanceLineByProductId()Contains the results of querying for
ProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results.Thus, this field may contain multiple catalog representations (e.g., parent vs. child catalog) of the same logical characteristic. However, for each catalog representation, this will only contain the 'most derived' sandbox result and thus consumers don't need to account for multiple sandbox representations.
The caller is responsible for handling these multiple representations.
- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
getCharacteristicValueTranslationsByCharacteristicId
public Map<String,List<org.apache.commons.lang3.tuple.Pair<String, getCharacteristicValueTranslationsByCharacteristicId()com.broadleafcommerce.translation.domain.Translation>>> Contains the results of querying forcharacteristicvalues translations for characteristics that are assigned to a product(s). Map <Characteristic ID, List<Pair<Characteristic Value ID, Translation>>>- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
getProductCharacteristicTranslationsByProductId
public Map<String,List<com.broadleafcommerce.translation.domain.Translation>> getProductCharacteristicTranslationsByProductId()Translations forproduct characteristics- characteristics translated directly in product.- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
setProductsById
Contains the results of querying forProductReferences.getProductIdsToFind(). -
setVariantsById
Contains the results of querying forProductReferences.getVariantIdsToFind(). -
setPrimaryAssetsByProductId
Contains the results of querying forProductReferences.getProductIdsToFindPrimaryAssetsFor(). -
setPrimaryCategoriesByProductId
Contains the results of querying forProductReferences.getProductIdsToFindPrimaryCategoriesFor(). -
setCategoriesById
Contains the results of querying forProductReferences.getCategoryIdsToFind(). -
setDataDrivenEnumsById
Contains the results of querying forProductReferences.getDataDrivenEnumIdsToFind(). -
setOptionTemplatesById
Contains the results of querying forProductReferences.getOptionTemplateIdstoFind(). -
setBusinessTypeByTypeKey
Contains the results of querying forProductReferences.getBusinessTypeTypeKeysToFind(). -
setCharacteristicsById
Contains the results of querying forProductReferences.getCharacteristicIdsToFind(). -
setProductCharacteristicsByProductId
public void setProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Contains the results of querying for
ProductReferences.getProductIdsToFindProductCharacteristicsFor().These results represent the 'most derived' characteristics for each product, with typical narrowing semantics applied. This means overrides from child catalogs or sandboxes are resolved to a single view per characteristic.
- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
setProductCharacteristicsFromInheritanceLineByProductId
public void setProductCharacteristicsFromInheritanceLineByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsFromInheritanceLineByProductId) Contains the results of querying for
ProductReferences.getProductIdsToFindProductCharacteristicsFor(), but includes results from the entire catalog ancestry rather than only returning the 'most-derived' results.Thus, this field may contain multiple catalog representations (e.g., parent vs. child catalog) of the same logical characteristic. However, for each catalog representation, this will only contain the 'most derived' sandbox result and thus consumers don't need to account for multiple sandbox representations.
The caller is responsible for handling these multiple representations.
- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
setCharacteristicValueTranslationsByCharacteristicId
public void setCharacteristicValueTranslationsByCharacteristicId(Map<String, List<org.apache.commons.lang3.tuple.Pair<String, com.broadleafcommerce.translation.domain.Translation>>> characteristicValueTranslationsByCharacteristicId) Contains the results of querying forcharacteristicvalues translations for characteristics that are assigned to a product(s). Map <Characteristic ID, List<Pair<Characteristic Value ID, Translation>>>- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
setProductCharacteristicTranslationsByProductId
public void setProductCharacteristicTranslationsByProductId(Map<String, List<com.broadleafcommerce.translation.domain.Translation>> productCharacteristicTranslationsByProductId) Translations forproduct characteristics- characteristics translated directly in product.- Since:
- Catalog Service 2.3.0, Release Train 2.3.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-