Class ItemList
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes for this item list.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
The ID of this item list.getItems()
The list of items this item list represents.getName()
The name of this item list.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Miscellaneous attributes for this item list.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
The ID of this item list.void
setItems
(List<ItemListItem> items) The list of items this item list represents.void
The name of this item list.toString()
-
Constructor Details
-
ItemList
public ItemList()
-
-
Method Details
-
getId
The ID of this item list.- Returns:
- the ID of this item list
-
getName
The name of this item list.- Returns:
- the name of this item list
-
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
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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The ID of this item list.- Parameters:
id
- the ID of this item list
-
setName
The name of this item list.- Parameters:
name
- the name of this item list
-
setItems
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
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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-