java.lang.Object
com.broadleafcommerce.cart.client.domain.ItemList
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class ItemList extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
A basic list of items. This is used for things like wishlists which will not require the full information of a cart (e.g. contextual pricing information, offer/campaign support, fulfillment information, etc).
Author:
Jacob Mitash
See Also:
  • Constructor Details

    • ItemList

      public ItemList()
  • Method Details

    • getId

      public String getId()
      The ID of this item list.
      Returns:
      the ID of this item list
    • getName

      public String getName()
      The name of this item list.
      Returns:
      the name of this item list
    • getItems

      public List<ItemListItem> getItems()
      The list of items this item list represents. This is generally unpopulated except for when hydration is explicitly requested.
      Returns:
      the items this item list contains
    • getAttributes

      public Map<String,Object> getAttributes()
      Miscellaneous attributes for this item list.
      Returns:
      miscellaneous attributes for this item list
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The ID of this item list.
      Parameters:
      id - the ID of this item list
    • setName

      public void setName(String name)
      The name of this item list.
      Parameters:
      name - the name of this item list
    • setItems

      public void setItems(List<ItemListItem> items)
      The list of items this item list represents. This is generally unpopulated except for when hydration is explicitly requested.
      Parameters:
      items - the items to set for this item list
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Miscellaneous attributes for this item list.
      Parameters:
      attributes - miscellaneous attributes for this item list.
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • 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