Class ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData
- Enclosing class:
- ProductCharacteristicsConsolidationContributor
ProductCharacteristicsConsolidationContributor to collect and
pass pre-fetched data.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanFor each item ingetProductCharacteristicsByProductId(), this contains the baseProductCharacteristic.getCharacteristic().Business types, their ancestors, and characteristics, fetched for a list of product IDs based onProduct.getBusinessType().Product characteristics fetched for a list of product IDs, mapped by product ID.inthashCode()voidsetBaseCharacteristicsById(Map<String, Characteristic> baseCharacteristicsById) For each item ingetProductCharacteristicsByProductId(), this contains the baseProductCharacteristic.getCharacteristic().voidsetBusinessTypeConsolidationResult(BusinessTypeConsolidationResult businessTypeConsolidationResult) Business types, their ancestors, and characteristics, fetched for a list of product IDs based onProduct.getBusinessType().voidsetProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Product characteristics fetched for a list of product IDs, mapped by product ID.toString()
-
Constructor Details
-
ProductCharacteristicsConsolidationData
public ProductCharacteristicsConsolidationData()
-
-
Method Details
-
getProductCharacteristicsByProductId
Product characteristics fetched for a list of product IDs, mapped by product ID. Results fully ignore narrowing and contain multiple representations for each logical entity. -
getBaseCharacteristicsById
For each item ingetProductCharacteristicsByProductId(), this contains the baseProductCharacteristic.getCharacteristic(). Results fully ignore narrowing, but because characteristics are not catalog or sandbox discriminated, only one representation will be returned per logical characteristic. -
getBusinessTypeConsolidationResult
Business types, their ancestors, and characteristics, fetched for a list of product IDs based on
Product.getBusinessType(). Results fully ignore narrowing and thus there may be multiple business type records for the same typeKey. (ex: from different tenants or applications, since type key is only unique per context).This data must be explicitly filtered (to only the results visible in each product's context), and then assembled (to populate
BusinessType.getAncestors()andBusinessType.getCharacteristics()) before being used. -
setProductCharacteristicsByProductId
public void setProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> productCharacteristicsByProductId) Product characteristics fetched for a list of product IDs, mapped by product ID. Results fully ignore narrowing and contain multiple representations for each logical entity. -
setBaseCharacteristicsById
For each item ingetProductCharacteristicsByProductId(), this contains the baseProductCharacteristic.getCharacteristic(). Results fully ignore narrowing, but because characteristics are not catalog or sandbox discriminated, only one representation will be returned per logical characteristic. -
setBusinessTypeConsolidationResult
public void setBusinessTypeConsolidationResult(BusinessTypeConsolidationResult businessTypeConsolidationResult) Business types, their ancestors, and characteristics, fetched for a list of product IDs based on
Product.getBusinessType(). Results fully ignore narrowing and thus there may be multiple business type records for the same typeKey. (ex: from different tenants or applications, since type key is only unique per context).This data must be explicitly filtered (to only the results visible in each product's context), and then assembled (to populate
BusinessType.getAncestors()andBusinessType.getCharacteristics()) before being used. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-