Class FieldData
java.lang.Object
com.broadleafcommerce.content.domain.FieldData
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class FieldData
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Represents the field data for fields on a
ContentItem
as defined by a
ContentModel's ContentFields
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The content item this field belongs tocom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The field's display order, defined by theContentModel
getId()
The field's unique identifiergetName()
The content field's nameThe number of recommendations requested from the recommendations engineThe type of Recommendation Model that should be queried when retrieving recommendations e.g.getValue()
The field's valueint
hashCode()
boolean
Whether this field should use recommendations for its product references.void
setContentItem
(ContentItem contentItem) The content item this field belongs tovoid
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDisplayOrder
(Integer displayOrder) The field's display order, defined by theContentModel
void
setEnableRecommendations
(boolean enableRecommendations) Whether this field should use recommendations for its product references.void
The field's unique identifiervoid
The content field's namevoid
setNumberOfRecommendations
(Integer numberOfRecommendations) The number of recommendations requested from the recommendations enginevoid
setRecommendationModelType
(String recommendationModelType) The type of Recommendation Model that should be queried when retrieving recommendations e.g.void
The field's valuetoString()
-
Constructor Details
-
FieldData
public FieldData()
-
-
Method Details
-
getId
The field's unique identifier- Returns:
- the field's unique identifier
-
getContentItem
The content item this field belongs to- Returns:
- the content item this field belongs to
-
getName
The content field's name- Returns:
- the content field's name
-
getValue
The field's value- Returns:
- the field's value
-
getDisplayOrder
The field's display order, defined by theContentModel
- Returns:
- the field's display order
-
isEnableRecommendations
public boolean isEnableRecommendations()Whether this field should use recommendations for its product references. Only Product Reference type field can be configured with recommendations.- Returns:
- if the field should use recommendations for its product references
- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
getRecommendationModelType
The type of Recommendation Model that should be queried when retrieving recommendations e.g. BOUGHT_ALSO_BOUGHT- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
getNumberOfRecommendations
The number of recommendations requested from the recommendations engine- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
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 field's unique identifier- Parameters:
id
- the field's unique identifier
-
setContentItem
The content item this field belongs to- Parameters:
contentItem
- this field belongs to
-
setName
The content field's name- Parameters:
name
- the content field's name
-
setValue
The field's value- Parameters:
value
- the field's value
-
setDisplayOrder
The field's display order, defined by theContentModel
- Parameters:
value
- the field's display order
-
setEnableRecommendations
public void setEnableRecommendations(boolean enableRecommendations) Whether this field should use recommendations for its product references. Only Product Reference type field can be configured with recommendations.- Parameters:
enableRecommendations
- if the field should use recommendations for its product references- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
setRecommendationModelType
The type of Recommendation Model that should be queried when retrieving recommendations e.g. BOUGHT_ALSO_BOUGHT- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
setNumberOfRecommendations
The number of recommendations requested from the recommendations engine- Since:
- Content Service 2.0.6, Release Train 2.2.0
-
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
-