@Entity public class ContentItemImpl extends Object implements ContentItem, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity, ContentItemAdminPresentation
ContentItemAdminPresentation.GroupName, ContentItemAdminPresentation.GroupOrder, ContentItemAdminPresentation.TabName, ContentItemAdminPresentation.TabOrder
Modifier and Type | Field and Description |
---|---|
static String |
CI_DONT_DUPLICATE_WIDGET_HINT |
protected String |
description |
protected Long |
id |
protected String |
name |
protected List<StructuredContentContentItemXref> |
structuredContentContentItemXrefs |
protected List<org.broadleafcommerce.cms.structure.domain.StructuredContent> |
structuredContentItems |
protected Widget |
widget |
protected List<ContentZone> |
zonesUsedAsDefault |
Constructor and Description |
---|
ContentItemImpl() |
Modifier and Type | Method and Description |
---|---|
ContentItem |
clone()
Clones this instance of ContentItem
|
<G extends ContentItem> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
String |
getDescription()
Gets the description for this content item
|
Long |
getId() |
String |
getMainEntityName() |
String |
getName()
Gets the name for this content item
|
List<org.broadleafcommerce.cms.structure.domain.StructuredContent> |
getStructuredContent()
Returns the list of StructuredContent associated with this object
|
List<StructuredContentContentItemXref> |
getStructuredContentContentItemXrefs()
Gets the associated StructuredContentContentItemXref.
|
Widget |
getWidget()
Gets the widget configured for this content item
|
List<ContentZone> |
getZonesUsedAsDefault()
Returns the list of
ContentZone s that this ContentItem is used as a defaultContentItem in. |
void |
setDescription(String description)
Sets the description for this content item
|
void |
setId(Long id) |
void |
setName(String name)
Sets the name for this content item
|
void |
setStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs)
Sets the associated StructuredContentContentItemXref.
|
void |
setWidget(Widget widget)
Sets the widget configured for this content item
|
void |
setZonesUsedAsDefault(List<ContentZone> zonesUsedAsDefault)
Sets the list of
ContentZone s that this ContentItem is used as a defaultContentItem in. |
public static final String CI_DONT_DUPLICATE_WIDGET_HINT
protected Long id
protected String name
protected String description
protected Widget widget
protected List<ContentZone> zonesUsedAsDefault
protected List<StructuredContentContentItemXref> structuredContentContentItemXrefs
protected List<org.broadleafcommerce.cms.structure.domain.StructuredContent> structuredContentItems
public List<org.broadleafcommerce.cms.structure.domain.StructuredContent> getStructuredContent()
ContentItem
getStructuredContent
in interface ContentItem
public Long getId()
getId
in interface ContentItem
public void setId(Long id)
setId
in interface ContentItem
public String getName()
ContentItem
getName
in interface ContentItem
public void setName(String name)
ContentItem
setName
in interface ContentItem
name
- - the namepublic String getDescription()
ContentItem
getDescription
in interface ContentItem
public void setDescription(String description)
ContentItem
setDescription
in interface ContentItem
description
- - the descriptionpublic Widget getWidget()
ContentItem
getWidget
in interface ContentItem
public void setWidget(Widget widget)
ContentItem
setWidget
in interface ContentItem
widget
- - the Widgetpublic List<ContentZone> getZonesUsedAsDefault()
ContentItem
ContentZone
s that this ContentItem is used as a defaultContentItem in.getZonesUsedAsDefault
in interface ContentItem
public void setZonesUsedAsDefault(List<ContentZone> zonesUsedAsDefault)
ContentItem
ContentZone
s that this ContentItem is used as a defaultContentItem in.setZonesUsedAsDefault
in interface ContentItem
public List<StructuredContentContentItemXref> getStructuredContentContentItemXrefs()
ContentItem
getStructuredContentContentItemXrefs
in interface ContentItem
public void setStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs)
ContentItem
setStructuredContentContentItemXrefs
in interface ContentItem
structuredContentContentItemXrefs
- - the list of StructuredContentContentItemXrefpublic String getMainEntityName()
getMainEntityName
in interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
public ContentItem clone()
ContentItem
clone
in interface ContentItem
clone
in class Object
public <G extends ContentItem> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance
in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>
CloneNotSupportedException
Copyright © 2020. All rights reserved.