Class CartFieldMapping
java.lang.Object
com.broadleafcommerce.catalog.domain.CartFieldMapping
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class CartFieldMapping
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Represents a field that should be included in the mapping from a
Product
to a cart item.- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The attribute name where this field's value should be stored in.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
The context ID of the mapping.TheJsonPath
on theProduct
to retrieve the value(s) which should be stored in that attribute.int
hashCode()
void
setAttributeName
(String attributeName) The attribute name where this field's value should be stored in.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 context ID of the mapping.void
setValuePath
(String valuePath) TheJsonPath
on theProduct
to retrieve the value(s) which should be stored in that attribute.toString()
-
Constructor Details
-
CartFieldMapping
public CartFieldMapping()
-
-
Method Details
-
getId
The context ID of the mapping.- Returns:
- the context ID of the mapping
-
getAttributeName
The attribute name where this field's value should be stored in. -
getValuePath
TheJsonPath
on theProduct
to retrieve the value(s) which should be stored in that attribute. -
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 context ID of the mapping.- Parameters:
id
- the context ID of the mapping
-
setAttributeName
The attribute name where this field's value should be stored in. -
setValuePath
TheJsonPath
on theProduct
to retrieve the value(s) which should be stored in that attribute. -
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
-