Class ProductList

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductList
All Implemented Interfaces:
Serializable

public class ProductList extends Object implements Serializable
A DTO that holds product references for bulk operations, and lists of failed request params.
Author:
Marie Standeven
See Also:
  • Constructor Details

    • ProductList

      public ProductList()
    • ProductList

      public ProductList(@NonNull List<Product> products, @NonNull Set<String> productIdsForMissingEntities, @NonNull Set<String> productUrisForMissingEntities, @NonNull Set<String> variantIdsForMissingEntities)
  • Method Details

    • getProducts

      @NonNull public List<Product> getProducts()
      All Products and their details.
      Returns:
      All Products for this product.
    • getProductIdsForMissingEntities

      @NonNull public Set<String> getProductIdsForMissingEntities()
      The set of requested Product IDs that were not resolved.
      Returns:
      The set of requested Product IDs that were not resolved.
    • getProductUrisForMissingEntities

      @NonNull public Set<String> getProductUrisForMissingEntities()
      The set of requested Product URIs that were not resolved.
      Returns:
      The set of requested Product URIs that were not resolved.
    • getVariantIdsForMissingEntities

      @NonNull public Set<String> getVariantIdsForMissingEntities()
      The set of requested Variant IDs that were not resolved.
      Returns:
      The set of requested Variant IDs that were not resolved.
      Since:
      Catalog Browse Service 2.2.0-GA, Release Train 2.3.0-GA
    • setProducts

      public void setProducts(@NonNull List<Product> products)
      All Products and their details.
      Parameters:
      productDetails - All Products for this product.
    • setProductIdsForMissingEntities

      public void setProductIdsForMissingEntities(@NonNull Set<String> productIdsForMissingEntities)
      The set of requested Product IDs that were not resolved.
      Parameters:
      productIdsForMissingEntities - The set of requested Product IDs that were not resolved.
    • setProductUrisForMissingEntities

      public void setProductUrisForMissingEntities(@NonNull Set<String> productUrisForMissingEntities)
      The set of requested Product URIs that were not resolved.
      Parameters:
      productUrisForMissingEntities - The set of requested Product URIs that were not resolved.
    • setVariantIdsForMissingEntities

      public void setVariantIdsForMissingEntities(@NonNull Set<String> variantIdsForMissingEntities)
      The set of requested Variant IDs that were not resolved.
      Parameters:
      variantIdsForMissingEntities - The set of requested Variant IDs that were not resolved.
      Since:
      Catalog Browse Service 2.2.0-GA, Release Train 2.3.0-GA
    • 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