@Entity public class StructuredContentImpl extends Object implements StructuredContent
Modifier and Type | Class and Description |
---|---|
static class |
StructuredContentImpl.Presentation |
Modifier and Type | Field and Description |
---|---|
protected Boolean |
archivedFlag |
protected AdminAuditable |
auditable |
protected String |
contentName |
protected Boolean |
deletedFlag |
protected Long |
id |
protected Locale |
locale |
protected Boolean |
lockedFlag |
protected Boolean |
offlineFlag |
protected Long |
originalItemId |
protected SandBox |
originalSandBox |
protected Integer |
priority |
protected Set<StructuredContentItemCriteria> |
qualifyingItemCriteria |
protected SandBox |
sandbox |
protected Map<String,StructuredContentField> |
structuredContentFields |
protected StructuredContentType |
structuredContentType |
Constructor and Description |
---|
StructuredContentImpl() |
Modifier and Type | Method and Description |
---|---|
StructuredContent |
cloneEntity()
Builds a copy of this content item.
|
Boolean |
getArchivedFlag()
Gets the archived indicator.
|
AdminAuditable |
getAuditable()
Returns audit information for this content item.
|
String |
getContentName()
Gets the name.
|
Boolean |
getDeletedFlag()
Gets the "deleted" indicator.
|
Long |
getId()
Gets the primary key.
|
Locale |
getLocale()
Gets the
Locale associated with this content item. |
Boolean |
getLockedFlag()
Returns the locked flag.
|
String |
getMainEntityName() |
Boolean |
getOfflineFlag()
Returns the offlineFlag.
|
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. |
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.
|
SandBox |
getSandbox()
Gets the Sandbox associated with the 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 |
setArchivedFlag(Boolean archivedFlag)
Sets the archived flag for this item.
|
void |
setAuditable(AdminAuditable auditable)
Sets audit information for this content item.
|
void |
setContentName(String contentName)
Sets the name.
|
void |
setDeletedFlag(Boolean deletedFlag)
Sets the deleted flag for this item.
|
void |
setId(Long id)
Sets the primary key.
|
void |
setLocale(Locale locale)
Sets the locale associated with this content item.
|
void |
setLockedFlag(Boolean lockedFlag)
Sets the lockedFlag for this item.
|
void |
setOfflineFlag(Boolean offlineFlag)
Sets the offline flag.
|
void |
setOriginalItemId(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(Integer priority)
Sets the display priority of this item.
|
void |
setQualifyingItemCriteria(Set<StructuredContentItemCriteria> qualifyingItemCriteria)
Sets the item (e.g.
|
void |
setSandbox(SandBox sandbox)
Sets the SandBox for this content item.
|
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 Long originalItemId
protected SandBox sandbox
protected SandBox originalSandBox
protected StructuredContentType structuredContentType
protected Map<String,StructuredContentField> structuredContentFields
protected Boolean deletedFlag
protected Boolean archivedFlag
protected Boolean offlineFlag
protected Boolean lockedFlag
public Long getId()
StructuredContent
getId
in interface StructuredContent
public void setId(Long id)
StructuredContent
setId
in interface StructuredContent
id
- the new primary keypublic String getContentName()
StructuredContent
getContentName
in interface StructuredContent
public void setContentName(String contentName)
StructuredContent
setContentName
in interface StructuredContent
public Locale getLocale()
StructuredContent
Locale
associated with this content item.getLocale
in interface StructuredContent
public void setLocale(Locale locale)
StructuredContent
setLocale
in interface StructuredContent
public SandBox getSandbox()
StructuredContent
getSandbox
in interface StructuredContent
public void setSandbox(SandBox sandbox)
StructuredContent
setSandbox
in interface StructuredContent
public StructuredContentType getStructuredContentType()
StructuredContent
StructuredContentType
associated with this content item.getStructuredContentType
in interface StructuredContent
public void setStructuredContentType(StructuredContentType structuredContentType)
StructuredContent
StructuredContentType
associated with this content item.setStructuredContentType
in interface StructuredContent
public Map<String,StructuredContentField> getStructuredContentFields()
StructuredContent
StructuredContentType
of ad which defined a field
named targetUrl. The field could be accessed with
structuredContentItem.getStructuredContentFields().get("targetUrl")
getStructuredContentFields
in interface StructuredContent
public void setStructuredContentFields(Map<String,StructuredContentField> structuredContentFields)
StructuredContent
setStructuredContentFields
in interface StructuredContent
public Boolean getDeletedFlag()
StructuredContent
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 getArchivedFlag
getDeletedFlag
in interface StructuredContent
public void setDeletedFlag(Boolean deletedFlag)
StructuredContent
setDeletedFlag
in interface StructuredContent
public Boolean getOfflineFlag()
StructuredContent
getOfflineFlag
in interface StructuredContent
public void setOfflineFlag(Boolean offlineFlag)
StructuredContent
setOfflineFlag
in interface StructuredContent
public Integer getPriority()
StructuredContent
getPriority
in interface StructuredContent
public void setPriority(Integer priority)
StructuredContent
setPriority
in interface StructuredContent
public Long getOriginalItemId()
StructuredContent
getOriginalItemId
in interface StructuredContent
public void setOriginalItemId(Long originalItemId)
StructuredContent
setOriginalItemId
in interface StructuredContent
public Boolean getArchivedFlag()
StructuredContent
getArchivedFlag
in interface StructuredContent
public void setArchivedFlag(Boolean archivedFlag)
StructuredContent
setArchivedFlag
in interface StructuredContent
public AdminAuditable getAuditable()
StructuredContent
getAuditable
in interface StructuredContent
public void setAuditable(AdminAuditable auditable)
StructuredContent
setAuditable
in interface StructuredContent
public Boolean getLockedFlag()
StructuredContent
getLockedFlag
in interface StructuredContent
public void setLockedFlag(Boolean lockedFlag)
StructuredContent
setLockedFlag
in interface StructuredContent
public SandBox getOriginalSandBox()
StructuredContent
SandBox
which originally edited this item. Used by the
Content Management System to determine where to return an item that is being
rejected.getOriginalSandBox
in interface StructuredContent
public void setOriginalSandBox(SandBox originalSandBox)
StructuredContent
setOriginalSandBox
in interface StructuredContent
public Map<String,StructuredContentRule> getStructuredContentMatchRules()
StructuredContent
getStructuredContentMatchRules
in interface StructuredContent
public void setStructuredContentMatchRules(Map<String,StructuredContentRule> structuredContentMatchRules)
StructuredContent
setStructuredContentMatchRules
in interface StructuredContent
public Set<StructuredContentItemCriteria> getQualifyingItemCriteria()
StructuredContent
getQualifyingItemCriteria
in interface StructuredContent
public void setQualifyingItemCriteria(Set<StructuredContentItemCriteria> qualifyingItemCriteria)
StructuredContent
setQualifyingItemCriteria
in interface StructuredContent
public String getMainEntityName()
public StructuredContent cloneEntity()
StructuredContent
cloneEntity
in interface StructuredContent
Copyright © 2014. All rights reserved.