Class ContentItemImpl

java.lang.Object
com.broadleafcommerce.advancedcms.domain.ContentItemImpl
All Implemented Interfaces:
ContentItem, ContentItemAdminPresentation, Serializable, Cloneable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity

@Entity public class ContentItemImpl extends Object implements ContentItem, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity, ContentItemAdminPresentation
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Details

    • CI_DONT_DUPLICATE_WIDGET_HINT

      public static final String CI_DONT_DUPLICATE_WIDGET_HINT
      See Also:
    • id

      protected Long id
    • name

      protected String name
    • description

      protected String description
    • widget

      protected Widget widget
    • zonesUsedAsDefault

      protected List<ContentZone> zonesUsedAsDefault
    • structuredContentContentItemXrefs

      protected List<StructuredContentContentItemXref> structuredContentContentItemXrefs
    • structuredContentItems

      protected List<org.broadleafcommerce.cms.structure.domain.StructuredContent> structuredContentItems
  • Constructor Details

    • ContentItemImpl

      public ContentItemImpl()
  • Method Details

    • getStructuredContent

      public List<org.broadleafcommerce.cms.structure.domain.StructuredContent> getStructuredContent()
      Description copied from interface: ContentItem
      Returns the list of StructuredContent associated with this object
      Specified by:
      getStructuredContent in interface ContentItem
      Returns:
      the list of StructuredContent
    • getId

      public Long getId()
      Specified by:
      getId in interface ContentItem
    • setId

      public void setId(Long id)
      Specified by:
      setId in interface ContentItem
    • getName

      public String getName()
      Description copied from interface: ContentItem
      Gets the name for this content item
      Specified by:
      getName in interface ContentItem
      Returns:
      the name
    • setName

      public void setName(String name)
      Description copied from interface: ContentItem
      Sets the name for this content item
      Specified by:
      setName in interface ContentItem
      Parameters:
      name - - the name
    • getDescription

      public String getDescription()
      Description copied from interface: ContentItem
      Gets the description for this content item
      Specified by:
      getDescription in interface ContentItem
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Description copied from interface: ContentItem
      Sets the description for this content item
      Specified by:
      setDescription in interface ContentItem
      Parameters:
      description - - the description
    • getWidget

      public Widget getWidget()
      Description copied from interface: ContentItem
      Gets the widget configured for this content item
      Specified by:
      getWidget in interface ContentItem
      Returns:
      the widget
    • setWidget

      public void setWidget(Widget widget)
      Description copied from interface: ContentItem
      Sets the widget configured for this content item
      Specified by:
      setWidget in interface ContentItem
      Parameters:
      widget - - the Widget
    • getZonesUsedAsDefault

      public List<ContentZone> getZonesUsedAsDefault()
      Description copied from interface: ContentItem
      Returns the list of ContentZones that this ContentItem is used as a defaultContentItem in.
      Specified by:
      getZonesUsedAsDefault in interface ContentItem
      Returns:
      the list
    • setZonesUsedAsDefault

      public void setZonesUsedAsDefault(List<ContentZone> zonesUsedAsDefault)
      Description copied from interface: ContentItem
      Sets the list of ContentZones that this ContentItem is used as a defaultContentItem in.
      Specified by:
      setZonesUsedAsDefault in interface ContentItem
    • getStructuredContentContentItemXrefs

      public List<StructuredContentContentItemXref> getStructuredContentContentItemXrefs()
      Description copied from interface: ContentItem
      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

      Specified by:
      getStructuredContentContentItemXrefs in interface ContentItem
      Returns:
      the list of StructuredContentContentItemXref
    • setStructuredContentContentItemXrefs

      public void setStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs)
      Description copied from interface: ContentItem
      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

      Specified by:
      setStructuredContentContentItemXrefs in interface ContentItem
      Parameters:
      structuredContentContentItemXrefs - - the list of StructuredContentContentItemXref
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
    • clone

      public ContentItem clone()
      Description copied from interface: ContentItem
      Clones this instance of ContentItem
      Specified by:
      clone in interface ContentItem
      Overrides:
      clone in class Object
      Returns:
      the ContentItem
    • createOrRetrieveCopyInstance

      public <G extends ContentItem> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>
      Throws:
      CloneNotSupportedException