Class ResolvedProductReferences

java.lang.Object
com.broadleafcommerce.catalog.service.product.hydration.ResolvedProductReferences

public class ResolvedProductReferences extends Object
Used by the DefaultProductHydrationService to hold the results of querying for the references.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • ResolvedProductReferences

      public ResolvedProductReferences()
  • Method Details

    • getProductsById

      public Map<String,Product> getProductsById()
      Contains the results of querying for ProductReferences.productIdsToFind.
    • getVariantsById

      public Map<String,Variant> getVariantsById()
      Contains the results of querying for ProductReferences.variantIdsToFind.
    • getPrimaryAssetsByProductId

      public Map<String,ProductAsset> getPrimaryAssetsByProductId()
      Contains the results of querying for ProductReferences.productIdsToFindPrimaryAssetsFor.
    • getPrimaryCategoriesByProductId

      public Map<String,Category> getPrimaryCategoriesByProductId()
      Contains the results of querying for ProductReferences.productIdsToFindPrimaryCategoriesFor.
    • getCategoriesById

      public Map<String,Category> getCategoriesById()
      Contains the results of querying for ProductReferences.categoryIdsToFind.
    • getDataDrivenEnumsById

      public Map<String,DataDrivenEnum> getDataDrivenEnumsById()
      Contains the results of querying for ProductReferences.dataDrivenEnumIdsToFind.
    • setProductsById

      public void setProductsById(Map<String,Product> productsById)
      Contains the results of querying for ProductReferences.productIdsToFind.
    • setVariantsById

      public void setVariantsById(Map<String,Variant> variantsById)
      Contains the results of querying for ProductReferences.variantIdsToFind.
    • setPrimaryAssetsByProductId

      public void setPrimaryAssetsByProductId(Map<String,ProductAsset> primaryAssetsByProductId)
      Contains the results of querying for ProductReferences.productIdsToFindPrimaryAssetsFor.
    • setPrimaryCategoriesByProductId

      public void setPrimaryCategoriesByProductId(Map<String,Category> primaryCategoriesByProductId)
      Contains the results of querying for ProductReferences.productIdsToFindPrimaryCategoriesFor.
    • setCategoriesById

      public void setCategoriesById(Map<String,Category> categoriesById)
      Contains the results of querying for ProductReferences.categoryIdsToFind.
    • setDataDrivenEnumsById

      public void setDataDrivenEnumsById(Map<String,DataDrivenEnum> dataDrivenEnumsById)
      Contains the results of querying for ProductReferences.dataDrivenEnumIdsToFind.
    • 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