Class CatalogItemList<P extends CatalogItem>

java.lang.Object
com.broadleafcommerce.cartoperation.domain.CatalogItemList<P>
All Implemented Interfaces:
Serializable

public class CatalogItemList<P extends CatalogItem> extends Object implements Serializable
A DTO that holds catalog item references for bulk operations, and lists of failed request params.
Author:
Marie Standeven
See Also:
  • Constructor Details

    • CatalogItemList

      public CatalogItemList()
  • Method Details

    • getCatalogItems

      public List<P> getCatalogItems()
      All CatalogItems and their details.
      Returns:
      All CatalogItems references.
    • getCatalogItemKeysForMissingEntities

      public Set<String> getCatalogItemKeysForMissingEntities()
      The list of provided keys for which a CatalogItem could not be found
      Returns:
      The list of provided key for which a CatalogItem could not be found
    • getCatalogItemUrisForMissingEntities

      public Set<String> getCatalogItemUrisForMissingEntities()
      The list of provided uris for which a CatalogItem could not be found
      Returns:
      The list of provided uris for which a CatalogItem could not be found
    • setCatalogItems

      public void setCatalogItems(List<P> catalogItems)
      All CatalogItems and their details.
      Parameters:
      catalogItems - All CatalogItem references.
    • setCatalogItemKeysForMissingEntities

      public void setCatalogItemKeysForMissingEntities(Set<String> catalogItemKeysForMissingEntities)
      The list of provided keys for which a CatalogItem could not be found
      Parameters:
      catalogItemKeysForMissingEntities - The list of provided keys for which a CatalogItem could not be found
    • setCatalogItemUrisForMissingEntities

      public void setCatalogItemUrisForMissingEntities(Set<String> catalogItemUrisForMissingEntities)
      The list of provided uris for which a CatalogItem could not be found
      Parameters:
      catalogItemUrisForMissingEntities - The list of provided uris for which a CatalogItem could not be found
    • 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