Class ContentItemFieldData

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ContentItemFieldData
All Implemented Interfaces:
Serializable

public class ContentItemFieldData extends Object implements Serializable
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ContentItemFieldData

      public ContentItemFieldData()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> 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

      public String getId()
      The field's unique identifier
      Returns:
      the field's unique identifier
    • getName

      public String getName()
      The content field's name
      Returns:
      the content field's name
    • getValue

      public Object 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

      public String 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

      public Integer getNumberOfRecommendations()
      The number of recommendations requested from the recommendations engine
      Since:
      Catalog Browse Service 2.1.0, Release Train 2.2.0
    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setId

      public void setId(String id)
      The field's unique identifier
      Parameters:
      id - the field's unique identifier
    • setName

      public void setName(String name)
      The content field's name
      Parameters:
      name - the content field's name
    • setValue

      public void setValue(Object value)
      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

      public void setRecommendationModelType(String recommendationModelType)
      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

      public void setNumberOfRecommendations(Integer numberOfRecommendations)
      The number of recommendations requested from the recommendations engine
      Since:
      Catalog Browse Service 2.1.0, Release Train 2.2.0
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object