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 booleanbooleanMiscellaneous attributes for this item list.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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.inthashCode()voidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes for this item list.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidThe ID of this item list.voidsetItems(List<ItemListItem> items) The list of items this item list represents.voidThe 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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-