@Entity public class StructuredContentImpl extends Object implements StructuredContent, AdminMainEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
StructuredContentImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected AdminAuditable |
auditable |
protected String |
contentName |
protected Map<String,String> |
fieldValuesMap |
protected Long |
id |
protected Locale |
locale |
protected Boolean |
offlineFlag |
protected Integer |
priority |
protected Set<StructuredContentItemCriteria> |
qualifyingItemCriteria |
protected Map<String,StructuredContentField> |
structuredContentFields |
protected StructuredContentType |
structuredContentType |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
StructuredContentImpl() |
| Modifier and Type | Method and Description |
|---|---|
AdminAuditable |
getAuditable()
Returns audit information for this content item.
|
String |
getContentName()
Gets the name.
|
Map<String,String> |
getFieldValues() |
Long |
getId()
Gets the primary key.
|
Locale |
getLocale()
Gets the
Locale associated with this content item. |
String |
getMainEntityName() |
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()
NOTE: This method is typically only used when wanting to persist new
StructuredContentFields. |
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 |
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)
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. |
protected Long id
protected AdminAuditable auditable
protected String contentName
protected Locale locale
protected Integer priority
protected Set<StructuredContentItemCriteria> qualifyingItemCriteria
protected StructuredContentType structuredContentType
protected Map<String,StructuredContentField> structuredContentFields
protected Boolean offlineFlag
public Long getId()
StructuredContentgetId in interface StructuredContentpublic void setId(Long id)
StructuredContentsetId in interface StructuredContentid - the new primary keypublic String getContentName()
StructuredContentgetContentName in interface StructuredContentpublic void setContentName(String contentName)
StructuredContentsetContentName in interface StructuredContentpublic Locale getLocale()
StructuredContentLocale associated with this content item.getLocale in interface StructuredContentpublic void setLocale(Locale locale)
StructuredContentsetLocale in interface StructuredContentpublic StructuredContentType getStructuredContentType()
StructuredContentStructuredContentType associated with this content item.getStructuredContentType in interface StructuredContentpublic void setStructuredContentType(StructuredContentType structuredContentType)
StructuredContentStructuredContentType associated with this content item.setStructuredContentType in interface StructuredContentpublic Map<String,StructuredContentField> getStructuredContentFields()
StructuredContentStructuredContentFields.
Users trying to get a field to render should typically invoke StructuredContent.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")getStructuredContentFields in interface StructuredContentpublic void setStructuredContentFields(Map<String,StructuredContentField> structuredContentFields)
StructuredContentsetStructuredContentFields in interface StructuredContentpublic void setFieldValues(Map<String,String> fieldValuesMap)
StructuredContentsetFieldValues in interface StructuredContentpublic Map<String,String> getFieldValues()
getFieldValues in interface StructuredContentStructuredContentField field key names to their associated valuespublic Boolean getOfflineFlag()
StructuredContentgetOfflineFlag in interface StructuredContentpublic void setOfflineFlag(Boolean offlineFlag)
StructuredContentsetOfflineFlag in interface StructuredContentpublic Integer getPriority()
StructuredContentgetPriority in interface StructuredContentpublic void setPriority(Integer priority)
StructuredContentsetPriority in interface StructuredContentpublic AdminAuditable getAuditable()
StructuredContentgetAuditable in interface StructuredContentpublic void setAuditable(AdminAuditable auditable)
StructuredContentsetAuditable in interface StructuredContentpublic Map<String,StructuredContentRule> getStructuredContentMatchRules()
StructuredContentgetStructuredContentMatchRules in interface StructuredContentpublic void setStructuredContentMatchRules(Map<String,StructuredContentRule> structuredContentMatchRules)
StructuredContentsetStructuredContentMatchRules in interface StructuredContentpublic Set<StructuredContentItemCriteria> getQualifyingItemCriteria()
StructuredContentgetQualifyingItemCriteria in interface StructuredContentpublic void setQualifyingItemCriteria(Set<StructuredContentItemCriteria> qualifyingItemCriteria)
StructuredContentsetQualifyingItemCriteria in interface StructuredContentpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2014. All rights reserved.