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 Details

    • getId

      Long getId()
    • setId

      void setId(Long id)
    • getName

      String getName()
      Gets the name for this content item
      Returns:
      the name
    • setName

      void setName(String name)
      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

      void setDescription(String description)
      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

      void setWidget(Widget widget)
      Sets the widget configured for this content item
      Parameters:
      widget - - the Widget
    • getZonesUsedAsDefault

      List<ContentZone> getZonesUsedAsDefault()
      Returns the list of ContentZones that this ContentItem is used as a defaultContentItem in.
      Returns:
      the list
    • setZonesUsedAsDefault

      void setZonesUsedAsDefault(List<ContentZone> zonesUsedAsDefault)
      Sets the list of ContentZones 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