Class ContentItem

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

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

    • ContentItem

      public ContentItem()
  • 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
    • getAttributes

      public Map<String,Object> getAttributes()
      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 context ID of the content item.
      Returns:
      the context ID of the content item
    • getName

      public String getName()
      A unique name for the content item, used for retrieval.
      Returns:
      a unique name for the content item, used for retrieval
    • getUri

      public String getUri()
      SEO-friendly URI to identify this content item. This will be appended to the ContentModel's URI if ContentModel is addressable by uri. is true.
      Returns:
      SEO-friendly URI to identify this content item.
    • getModel

      public ContentModel getModel()
      The content model for this content.
      Returns:
      the content model for this content
    • getFields

      public Map<String,ContentItemFieldData> getFields()
      The individual field data for this content
      Returns:
      the individual field data for this content
    • setId

      public void setId(String id)
      The context ID of the content item.
      Parameters:
      id - the context ID of the content item
    • setName

      public void setName(String name)
      A unique name for the content item, used for retrieval.
      Parameters:
      name - a unique name for the content item, used for retrieval
    • setUri

      public void setUri(String uri)
      SEO-friendly URI to identify this content item. This will be appended to the ContentModel's URI if ContentModel is addressable by uri. is true.
      Parameters:
      uri - SEO-friendly URI to identify this content item.
    • setModel

      public void setModel(ContentModel model)
      The content model for this content.
      Parameters:
      model - the content model for this content
    • setFields

      public void setFields(Map<String,ContentItemFieldData> fields)
      The individual field data for this content
      Parameters:
      fields - the individual field data for this content
    • 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