public interface StructuredContent
extends java.io.Serializable
StructuredContentType.
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 |
|---|---|
StructuredContent |
cloneEntity()
Builds a copy of this content item.
|
java.lang.Boolean |
getArchivedFlag()
Gets the archived indicator.
|
AdminAuditable |
getAuditable()
Returns audit information for this content item.
|
java.lang.String |
getContentName()
Gets the name.
|
java.lang.Boolean |
getDeletedFlag()
Gets the "deleted" indicator.
|
java.lang.Long |
getId()
Gets the primary key.
|
Locale |
getLocale()
Gets the
Locale associated with this content item. |
java.lang.Boolean |
getLockedFlag()
Returns the locked flag.
|
java.lang.Boolean |
getOfflineFlag()
Returns the offlineFlag.
|
java.lang.Long |
getOriginalItemId()
Gets the id of a related content item on which this item is based.
|
SandBox |
getOriginalSandBox()
Gets the
SandBox which originally edited this item. |
java.lang.Integer |
getPriority()
Gets the integer priority of this content item.
|
java.util.Set<StructuredContentItemCriteria> |
getQualifyingItemCriteria()
Returns the item (or cart) based rules associated with this content item.
|
SandBox |
getSandbox()
Gets the Sandbox associated with the content item.
|
java.util.Map<java.lang.String,StructuredContentField> |
getStructuredContentFields()
Gets a map with the custom fields associated with this content item.
The map keys are based on the field types. |
java.util.Map<java.lang.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 |
setArchivedFlag(java.lang.Boolean archivedFlag)
Sets the archived flag for this item.
|
void |
setAuditable(AdminAuditable auditable)
Sets audit information for this content item.
|
void |
setContentName(java.lang.String contentName)
Sets the name.
|
void |
setDeletedFlag(java.lang.Boolean deletedFlag)
Sets the deleted flag for this item.
|
void |
setId(java.lang.Long id)
Sets the primary key.
|
void |
setLocale(Locale locale)
Sets the locale associated with this content item.
|
void |
setLockedFlag(java.lang.Boolean lockedFlag)
Sets the lockedFlag for this item.
|
void |
setOfflineFlag(java.lang.Boolean offlineFlag)
Sets the offline flag.
|
void |
setOriginalItemId(java.lang.Long originalItemId)
The id of the item on which this content item is based.
|
void |
setOriginalSandBox(SandBox originalSandBox)
Sets the originalSandBox for this item.
|
void |
setPriority(java.lang.Integer priority)
Sets the display priority of this item.
|
void |
setQualifyingItemCriteria(java.util.Set<StructuredContentItemCriteria> qualifyingItemCriteria)
Sets the item (e.g.
|
void |
setSandbox(SandBox sandbox)
Sets the SandBox for this content item.
|
void |
setStructuredContentFields(java.util.Map<java.lang.String,StructuredContentField> structuredContentFields)
Sets the structured content fields for this item.
|
void |
setStructuredContentMatchRules(java.util.Map<java.lang.String,StructuredContentRule> structuredContentMatchRules)
Sets the targeting rules for this content item.
|
void |
setStructuredContentType(StructuredContentType structuredContentType)
Sets the
StructuredContentType associated with this content item. |
@Nullable java.lang.Long getId()
void setId(@Nullable
java.lang.Long id)
id - the new primary key@Nonnull java.lang.String getContentName()
void setContentName(@Nonnull
java.lang.String contentName)
contentName - void setLocale(@Nonnull
Locale locale)
locale - @Nullable SandBox getSandbox()
void setSandbox(@Nullable
SandBox sandbox)
sandbox - @Nonnull StructuredContentType getStructuredContentType()
StructuredContentType associated with this content item.void setStructuredContentType(@Nonnull
StructuredContentType structuredContentType)
StructuredContentType associated with this content item.@Nullable java.util.Map<java.lang.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
java.util.Map<java.lang.String,StructuredContentField> structuredContentFields)
structuredContentFields - @Nonnull java.lang.Boolean getDeletedFlag()
org.broadleafcommerce.cms.structure.service.StructuredContentService#lookupStructuredContentItemsByType(org.broadleafcommerce.common.sandbox.domain.SandBox, StructuredContentType, org.broadleafcommerce.common.locale.domain.Locale, Integer, java.util.Map)'s}.
In a "production sandbox", an item that returns true for getDeletedFlag
should also return true for getArchivedFlagvoid setDeletedFlag(@Nonnull
java.lang.Boolean deletedFlag)
deletedFlag - @Nonnull java.lang.Boolean getArchivedFlag()
void setArchivedFlag(@Nonnull
java.lang.Boolean archivedFlag)
archivedFlag - @Nullable java.lang.Boolean getOfflineFlag()
void setOfflineFlag(@Nullable
java.lang.Boolean offlineFlag)
offlineFlag - @Nullable java.lang.Integer getPriority()
void setPriority(@Nullable
java.lang.Integer priority)
priority - @Nullable java.lang.Long getOriginalItemId()
void setOriginalItemId(@Nullable
java.lang.Long originalItemId)
originalItemId - @Nonnull StructuredContent cloneEntity()
@Nullable AdminAuditable getAuditable()
void setAuditable(@Nullable
AdminAuditable auditable)
auditable - @Nonnull java.lang.Boolean getLockedFlag()
void setLockedFlag(@Nullable
java.lang.Boolean lockedFlag)
lockedFlag - @Nullable SandBox getOriginalSandBox()
SandBox which originally edited this item. Used by the
Content Management System to determine where to return an item that is being
rejected.void setOriginalSandBox(@Nullable
SandBox originalSandBox)
originalSandBox - @Nullable java.util.Map<java.lang.String,StructuredContentRule> getStructuredContentMatchRules()
void setStructuredContentMatchRules(@Nullable
java.util.Map<java.lang.String,StructuredContentRule> structuredContentMatchRules)
structuredContentMatchRules - @Nullable java.util.Set<StructuredContentItemCriteria> getQualifyingItemCriteria()
void setQualifyingItemCriteria(@Nullable
java.util.Set<StructuredContentItemCriteria> qualifyingItemCriteria)
qualifyingItemCriteria - Copyright © 2018. All Rights Reserved.