Class ContentItem
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ContentItem
- 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.The individual field data for this contentgetId()The context ID of the content item.getModel()The content model for this content.getName()A unique name for the content item, used for retrieval.getUri()SEO-friendly URI to identify this content item.inthashCode()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetFields(Map<String, ContentItemFieldData> fields) The individual field data for this contentvoidThe context ID of the content item.voidsetModel(ContentModel model) The content model for this content.voidA unique name for the content item, used for retrieval.voidSEO-friendly URI to identify this content item.toString()
-
Constructor Details
-
ContentItem
public ContentItem()
-
-
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
-
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
The context ID of the content item.- Returns:
- the context ID of the content item
-
getName
A unique name for the content item, used for retrieval.- Returns:
- a unique name for the content item, used for retrieval
-
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
The content model for this content.- Returns:
- the content model for this content
-
getFields
The individual field data for this content- Returns:
- the individual field data for this content
-
setId
The context ID of the content item.- Parameters:
id- the context ID of the content item
-
setName
A unique name for the content item, used for retrieval.- Parameters:
name- a unique name for the content item, used for retrieval
-
setUri
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
The content model for this content.- Parameters:
model- the content model for this content
-
setFields
The individual field data for this content- Parameters:
fields- the individual field data for this content
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-