Class ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData

java.lang.Object
com.broadleafcommerce.catalog.service.product.consolidation.ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData
Enclosing class:
ProductCharacteristicsConsolidationContributor

public static class ProductCharacteristicsConsolidationContributor.ProductCharacteristicsConsolidationData extends Object
POJO used internally by ProductCharacteristicsConsolidationContributor to collect and pass pre-fetched data.
  • Constructor Details

    • ProductCharacteristicsConsolidationData

      public ProductCharacteristicsConsolidationData()
  • Method Details

    • getProductCharacteristicsByProductId

      public Map<String,List<ProductCharacteristic>> 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

      public Map<String,Characteristic> getBaseCharacteristicsById()
      For each item in getProductCharacteristicsByProductId(), this contains the base ProductCharacteristic.getCharacteristic(). Results fully ignore narrowing, but because characteristics are not catalog or sandbox discriminated, only one representation will be returned per logical characteristic.
    • getBusinessTypeConsolidationResult

      public BusinessTypeConsolidationResult 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() and BusinessType.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

      public void setBaseCharacteristicsById(Map<String,Characteristic> baseCharacteristicsById)
      For each item in getProductCharacteristicsByProductId(), this contains the base ProductCharacteristic.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() and BusinessType.getCharacteristics()) before being used.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object