Class ItemListItem
java.lang.Object
com.broadleafcommerce.cart.client.domain.ItemListItem
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class ItemListItem
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
An item of an Item List. Essentially contains a reference to a SKU and a quantity.
- Author:
- Jacob Mitash
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Attribute choices for this item driven by product options, where each key is theattributeName
from an attribute choice.Miscellaneous attributes for this item.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 Item.Miscellaneous internal attributes for this item.The ID of the owning item list.A reference to the corresponding SKU of this item.The number of this item in the item list.int
hashCode()
void
setAttributeChoices
(Map<String, com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices) Attribute choices for this item driven by product options, where each key is theattributeName
from an attribute choice.void
setAttributes
(Map<String, Object> attributes) Miscellaneous attributes for this item.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 Item.void
setInternalAttributes
(Map<String, Object> internalAttributes) Miscellaneous internal attributes for this item.void
setItemListId
(String itemListId) The ID of the owning item list.void
setItemSkuRef
(ItemSkuRef itemSkuRef) A reference to the corresponding SKU of this item.void
setQuantity
(Integer quantity) The number of this item in the item list.toString()
-
Constructor Details
-
ItemListItem
public ItemListItem()
-
-
Method Details
-
getId
The ID of this Item List Item.- Returns:
- the ID of this Item List Item
-
getItemListId
The ID of the owning item list.- Returns:
- the ID of the owning item list
-
getItemSkuRef
A reference to the corresponding SKU of this item.- Returns:
- a reference to the corresponding SKU of this item
-
getQuantity
The number of this item in the item list.- Returns:
- The number of this item in the item list
-
getAttributes
Miscellaneous attributes for this item.- Returns:
- miscellaneous attributes for this item
-
getInternalAttributes
Miscellaneous internal attributes for this item. Distinguished fromgetAttributes()
in that this map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes related to item merging.These attributes will not be passed along to a
CartItem
.- Returns:
- Miscellaneous internal attributes for this item.
-
getAttributeChoices
public Map<String,com.broadleafcommerce.order.common.domain.AttributeChoiceValue> getAttributeChoices()Attribute choices for this item driven by product options, where each key is theattributeName
from an attribute choice.- Returns:
- Attribute choices for this item driven by product options, where each key is the
attributeName
from an attribute choice.
-
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 Item.- Parameters:
id
- the ID of this Item List Item
-
setItemListId
The ID of the owning item list.- Parameters:
itemListId
- the ID of the owning item list
-
setItemSkuRef
A reference to the corresponding SKU of this item.- Parameters:
itemSkuRef
- a reference to the corresponding SKU of this item
-
setQuantity
The number of this item in the item list.- Parameters:
quantity
- The number of this item in the item list
-
setAttributes
Miscellaneous attributes for this item.- Parameters:
attributes
- miscellaneous attributes for this item
-
setInternalAttributes
Miscellaneous internal attributes for this item. Distinguished fromgetAttributes()
in that this map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes related to item merging.These attributes will not be passed along to a
CartItem
.- Parameters:
internalAttributes
- Miscellaneous internal attributes for this item.
-
setAttributeChoices
public void setAttributeChoices(Map<String, com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices) Attribute choices for this item driven by product options, where each key is theattributeName
from an attribute choice.- Parameters:
attributeChoices
- Attribute choices for this item driven by product options, where each key is theattributeName
from an attribute choice.
-
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
-