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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.broadleafcommerce.advancedcms.domain.ContentItemAdminPresentation
ContentItemAdminPresentation.GroupName, ContentItemAdminPresentation.GroupOrder, ContentItemAdminPresentation.TabName, ContentItemAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Stringprotected Longprotected Stringprotected List<StructuredContentContentItemXref>protected List<org.broadleafcommerce.cms.structure.domain.StructuredContent>protected Widgetprotected List<ContentZone>Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this instance of ContentItem<G extends ContentItem>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) Gets 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.
-
Field Details
-
CI_DONT_DUPLICATE_WIDGET_HINT
- See Also:
-
id
-
name
-
description
-
widget
-
zonesUsedAsDefault
-
structuredContentContentItemXrefs
-
structuredContentItems
-
-
Constructor Details
-
ContentItemImpl
public ContentItemImpl()
-
-
Method Details
-
getStructuredContent
Description copied from interface:ContentItemReturns the list of StructuredContent associated with this object- Specified by:
getStructuredContentin interfaceContentItem- Returns:
- the list of StructuredContent
-
getId
- Specified by:
getIdin interfaceContentItem
-
setId
- Specified by:
setIdin interfaceContentItem
-
getName
Description copied from interface:ContentItemGets the name for this content item- Specified by:
getNamein interfaceContentItem- Returns:
- the name
-
setName
Description copied from interface:ContentItemSets the name for this content item- Specified by:
setNamein interfaceContentItem- Parameters:
name- - the name
-
getDescription
Description copied from interface:ContentItemGets the description for this content item- Specified by:
getDescriptionin interfaceContentItem- Returns:
- the description
-
setDescription
Description copied from interface:ContentItemSets the description for this content item- Specified by:
setDescriptionin interfaceContentItem- Parameters:
description- - the description
-
getWidget
Description copied from interface:ContentItemGets the widget configured for this content item- Specified by:
getWidgetin interfaceContentItem- Returns:
- the widget
-
setWidget
Description copied from interface:ContentItemSets the widget configured for this content item- Specified by:
setWidgetin interfaceContentItem- Parameters:
widget- - the Widget
-
getZonesUsedAsDefault
Description copied from interface:ContentItemReturns the list ofContentZones that this ContentItem is used as a defaultContentItem in.- Specified by:
getZonesUsedAsDefaultin interfaceContentItem- Returns:
- the list
-
setZonesUsedAsDefault
Description copied from interface:ContentItemSets the list ofContentZones that this ContentItem is used as a defaultContentItem in.- Specified by:
setZonesUsedAsDefaultin interfaceContentItem
-
getStructuredContentContentItemXrefs
Description copied from interface:ContentItemGets 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:
getStructuredContentContentItemXrefsin interfaceContentItem- Returns:
- the list of StructuredContentContentItemXref
-
setStructuredContentContentItemXrefs
public void setStructuredContentContentItemXrefs(List<StructuredContentContentItemXref> structuredContentContentItemXrefs) Description copied from interface:ContentItemSets 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:
setStructuredContentContentItemXrefsin interfaceContentItem- Parameters:
structuredContentContentItemXrefs- - the list of StructuredContentContentItemXref
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-
clone
Description copied from interface:ContentItemClones this instance of ContentItem- Specified by:
clonein interfaceContentItem- Overrides:
clonein classObject- 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:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<ContentItem>- Throws:
CloneNotSupportedException
-