Class ContentItemFieldData
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ContentItemFieldData
- All Implemented Interfaces:
Serializable
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.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 valueinthashCode()booleanWhether this field should use recommendations for its product references.voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetEnableRecommendations(boolean enableRecommendations) Whether this field should use recommendations for its product references.voidThe field's unique identifiervoidThe content field's namevoidsetNumberOfRecommendations(Integer numberOfRecommendations) The number of recommendations requested from the recommendations enginevoidsetRecommendationModelType(String recommendationModelType) The type of Recommendation Model that should be queried when retrieving recommendations e.g.voidThe field's valuetoString()
-
Constructor Details
-
ContentItemFieldData
public ContentItemFieldData()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name- Name of the additional attributevalue- Value of the additional attribute
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getId
The field's unique identifier- Returns:
- the field's unique identifier
-
getName
The content field's name- Returns:
- the content field's name
-
getValue
The field's value- Returns:
- the field's value
-
isEnableRecommendations
public boolean isEnableRecommendations()Whether this field should use recommendations for its product references. Only Product Reference type field can be configured with recommendations.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getRecommendationModelType
The type of Recommendation Model that should be queried when retrieving recommendations e.g. BOUGHT_ALSO_BOUGHT- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getNumberOfRecommendations
The number of recommendations requested from the recommendations engine- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
The field's unique identifier- Parameters:
id- the field's unique identifier
-
setName
The content field's name- Parameters:
name- the content field's name
-
setValue
The field's value- Parameters:
value- the field's value
-
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.- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setRecommendationModelType
The type of Recommendation Model that should be queried when retrieving recommendations e.g. BOUGHT_ALSO_BOUGHT- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setNumberOfRecommendations
The number of recommendations requested from the recommendations engine- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-