Interface ContentItem
- All Superinterfaces:
Cloneable,org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>,Serializable
- All Known Implementing Classes:
ContentItemImpl
public interface ContentItem
extends Serializable, Cloneable, org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>
- Author:
- Elbert Bautista (elbertbautista)
-
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this instance of ContentItemGets the description for this content itemgetId()getName()Gets the name for this content itemList<org.broadleafcommerce.cms.structure.domain.StructuredContent>Returns the list of StructuredContent associated with this objectGets the associated StructuredContentContentItemXref.Gets the widget configured for this content itemReturns the list ofContentZones that this ContentItem is used as a defaultContentItem in.voidsetDescription(String description) Sets the description for this content itemvoidvoidSets the name for this content itemvoidsetStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs) Sets the associated StructuredContentContentItemXref.voidSets the widget configured for this content itemvoidsetZonesUsedAsDefault(List<ContentZone> zonesUsedAsDefault) Sets the list ofContentZones that this ContentItem is used as a defaultContentItem in.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId() -
setId
-
getName
String getName()Gets the name for this content item- Returns:
- the name
-
setName
Sets the name for this content item- Parameters:
name- - the name
-
getDescription
String getDescription()Gets the description for this content item- Returns:
- the description
-
setDescription
Sets the description for this content item- Parameters:
description- - the description
-
getWidget
Widget getWidget()Gets the widget configured for this content item- Returns:
- the widget
-
setWidget
Sets the widget configured for this content item- Parameters:
widget- - the Widget
-
getZonesUsedAsDefault
List<ContentZone> getZonesUsedAsDefault()Returns the list ofContentZones that this ContentItem is used as a defaultContentItem in.- Returns:
- the list
-
setZonesUsedAsDefault
Sets the list ofContentZones that this ContentItem is used as a defaultContentItem in.- Parameters:
zonesUsedAsDefault-
-
getStructuredContentContentItemXrefs
List<StructuredContentContentItemXref> getStructuredContentContentItemXrefs()Gets the associated StructuredContentContentItemXref. This is a ManyToMany association through the join entity StructuredContentContentItemXref This is intended to get the associated StructuredContentItems.Intended to be used only if the configured Widget supports more than one Structured Content Items
- Returns:
- the list of StructuredContentContentItemXref
-
setStructuredContentContentItemXrefs
void setStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs) Sets the associated StructuredContentContentItemXref. This is a ManyToMany association through the join entity StructuredContentContentItemXref This is intended to get the associated StructuredContentItems.Intended to be used only if the configured Widget supports more than one Structured Content Items
- Parameters:
structuredContentContentItemXrefs- - the list of StructuredContentContentItemXref
-
clone
ContentItem clone()Clones this instance of ContentItem- Returns:
- the ContentItem
-
getStructuredContent
List<org.broadleafcommerce.cms.structure.domain.StructuredContent> getStructuredContent()Returns the list of StructuredContent associated with this object- Returns:
- the list of StructuredContent
-