|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StructuredContent
StructuredContent implementations provide a representation of a generic content
item with a set of predefined fields. The fields associated with an instance
of StructuredContent are defined by its associated StructuredContentType.
StructuredContent items are typically maintained via the Broadleaf Commerce admin.
Display structured content items is typically done using the
DisplayContentTag taglib.
An typical usage for 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}| Method Summary | |
|---|---|
AdminAuditable |
getAuditable()
Returns audit information for this content item. |
String |
getContentName()
Gets the name. |
Long |
getId()
Gets the primary key. |
Locale |
getLocale()
Gets the Locale associated with this content item. |
Boolean |
getOfflineFlag()
Returns the offlineFlag. |
Integer |
getPriority()
Gets the integer priority of this content item. |
Set<StructuredContentItemCriteria> |
getQualifyingItemCriteria()
Returns the item (or cart) based rules associated with this content item. |
Map<String,StructuredContentField> |
getStructuredContentFields()
Gets a map with the custom fields associated with this content item. The map keys are based on the field types. |
Map<String,StructuredContentRule> |
getStructuredContentMatchRules()
Returns a map of the targeting rules associated with this content item. |
StructuredContentType |
getStructuredContentType()
Gets the StructuredContentType associated with this content item. |
void |
setAuditable(AdminAuditable auditable)
Sets audit information for this content item. |
void |
setContentName(String contentName)
Sets the name. |
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)
Sets the item (e.g. |
void |
setStructuredContentFields(Map<String,StructuredContentField> structuredContentFields)
Sets the structured content fields for this item. |
void |
setStructuredContentMatchRules(Map<String,StructuredContentRule> structuredContentMatchRules)
Sets the targeting rules for this content item. |
void |
setStructuredContentType(StructuredContentType structuredContentType)
Sets the StructuredContentType associated with this content item. |
| Method Detail |
|---|
@Nullable Long getId()
void setId(@Nullable
Long id)
id - the new primary key@Nonnull String getContentName()
void setContentName(@Nonnull
String contentName)
contentName - @Nonnull Locale getLocale()
Locale associated with this content item.
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 Map<String,StructuredContentField> getStructuredContentFields()
StructuredContentType of ad which defined a field
named targetUrl. The field could be accessed with
structuredContentItem.getStructuredContentFields().get("targetUrl")
void setStructuredContentFields(@Nullable
Map<String,StructuredContentField> structuredContentFields)
structuredContentFields - @Nullable Boolean getOfflineFlag()
void setOfflineFlag(@Nullable
Boolean offlineFlag)
offlineFlag - @Nullable Integer getPriority()
void setPriority(@Nullable
Integer priority)
priority - @Nullable AdminAuditable getAuditable()
void setAuditable(@Nullable
AdminAuditable auditable)
auditable - @Nullable Map<String,StructuredContentRule> getStructuredContentMatchRules()
void setStructuredContentMatchRules(@Nullable
Map<String,StructuredContentRule> structuredContentMatchRules)
structuredContentMatchRules - @Nullable Set<StructuredContentItemCriteria> getQualifyingItemCriteria()
void setQualifyingItemCriteria(@Nullable
Set<StructuredContentItemCriteria> qualifyingItemCriteria)
qualifyingItemCriteria -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||