public interface StructuredContent extends Serializable, MultiTenantCloneable<StructuredContent>
StructuredContentType.
 org.broadleafcommerce.cms.web.structure.DisplayContentTag taglib.
 StructuredContent is to display targeted ads.
 Consider a StructuredContentType of "ad" with fields "ad-image" and
 "target-url".    This "ad" might show on a websites home page.  By adding
 StructuredContentMatchRules and setting the priority,
 different ads could be shown to different users.
 It would not be typical in a Broadleaf implementation to extend this interface
 or to use any implementation other than StructuredContentImpl.StructuredContentType}, 
StructuredContentImpl}, 
org.broadleafcommerce.cms.web.structure.DisplayContentTag}| Modifier and Type | Method and Description | 
|---|---|
| String | getContentName()Gets the name. | 
| String | getFieldValue(String fieldName)Returns the value of the associated  StructuredContentFieldif the given fieldName
 exists in the map returned bygetStructuredContentFieldXrefs(), and null otherwise. | 
| Map<String,String> | getFieldValues() | 
| Long | getId()Gets the primary key. | 
| Locale | getLocale()Gets the  Localeassociated with this content item. | 
| Boolean | getOfflineFlag()Returns the offlineFlag. | 
| Integer | getPriority()Gets the integer priority of this content item. | 
| Set<StructuredContentItemCriteria> | getQualifyingItemCriteria()Deprecated. 
 - no longer supported - simplifying interface
 
 Functionality removed as of BLC 3.2 | 
| Map<String,StructuredContentField> | getStructuredContentFields()Deprecated. 
 | 
| Map<String,StructuredContentFieldXref> | getStructuredContentFieldXrefs()NOTE: This method is typically only used when wanting to persist new  StructuredContentFields. | 
| Map<String,StructuredContentRule> | getStructuredContentMatchRules()Deprecated. 
 - Not supported - simplifying interface
 
 Functionality removed as of BLC 3.2 | 
| StructuredContentType | getStructuredContentType()Gets the  StructuredContentTypeassociated with this content item. | 
| void | setContentName(String contentName)Sets the name. | 
| void | setFieldValues(Map<String,String> fieldValuesMap)Sets the transient fieldValues map on this StructuredContent. | 
| void | setId(Long id)Sets the primary key. | 
| void | setLocale(Locale locale)Sets the locale associated with this content item. | 
| void | setOfflineFlag(Boolean offlineFlag)Sets the offline flag. | 
| void | setPriority(Integer priority)Sets the display priority of this item. | 
| void | setQualifyingItemCriteria(Set<StructuredContentItemCriteria> qualifyingItemCriteria)Deprecated. 
 - no longer supported - simplifying interface
 
 Functionality removed as of BLC 3.2 | 
| void | setStructuredContentFields(Map<String,StructuredContentField> structuredContentFields)Deprecated. 
 | 
| void | setStructuredContentFieldXrefs(Map<String,StructuredContentFieldXref> structuredContentFields)Sets the structured content fields for this item. | 
| void | setStructuredContentMatchRules(Map<String,StructuredContentRule> structuredContentMatchRules)Deprecated. 
 - Not supported - simplifying interface
 
 Functionality removed as of BLC 3.2 | 
| void | setStructuredContentType(StructuredContentType structuredContentType)Sets the  StructuredContentTypeassociated with this content item. | 
createOrRetrieveCopyInstancevoid setContentName(@Nonnull String contentName)
contentName - void setLocale(@Nonnull Locale locale)
locale - @Nonnull StructuredContentType getStructuredContentType()
StructuredContentType associated with this content item.void setStructuredContentType(@Nonnull StructuredContentType structuredContentType)
StructuredContentType associated with this content item.@Nullable @Deprecated Map<String,StructuredContentField> getStructuredContentFields()
getStructuredContentFieldXrefs()@Deprecated void setStructuredContentFields(@Nullable Map<String,StructuredContentField> structuredContentFields)
setStructuredContentFieldXrefs(Map)structuredContentFields - @Nullable Map<String,StructuredContentFieldXref> getStructuredContentFieldXrefs()
StructuredContentFields.
 Users trying to get a field to render should typically invoke getFieldValues().
 
 Gets a map with the custom fields associated with this content item.StructuredContentType of ad which defined a field
 named targetUrl.    The field could be accessed with
 structuredContentItem.getStructuredContentFields().get("targetUrl")void setStructuredContentFieldXrefs(@Nullable Map<String,StructuredContentFieldXref> structuredContentFields)
structuredContentFields - @Nullable Boolean getOfflineFlag()
void setOfflineFlag(@Nullable Boolean offlineFlag)
offlineFlag - @Nullable Integer getPriority()
void setPriority(@Nullable Integer priority)
priority - @Nullable @Deprecated Map<String,StructuredContentRule> getStructuredContentMatchRules()
@Deprecated void setStructuredContentMatchRules(@Nullable Map<String,StructuredContentRule> structuredContentMatchRules)
structuredContentMatchRules - @Nullable @Deprecated Set<StructuredContentItemCriteria> getQualifyingItemCriteria()
@Deprecated void setQualifyingItemCriteria(@Nullable Set<StructuredContentItemCriteria> qualifyingItemCriteria)
qualifyingItemCriteria - String getFieldValue(String fieldName)
StructuredContentField if the given fieldName
 exists in the map returned by getStructuredContentFieldXrefs(), and null otherwise.fieldName - void setFieldValues(Map<String,String> fieldValuesMap)
fieldValuesMap - Map<String,String> getFieldValues()
StructuredContentField field key names to their associated valuesCopyright © 2020. All rights reserved.