public class CmsContainerElementData extends CmsContainerElement
CmsContainerElement.ModelGroupStateCLASS_CONTAINER, CLASS_CONTAINER_ELEMENT_END_MARKER, CLASS_CONTAINER_ELEMENT_START_MARKER, CLASS_ELEMENT_ERROR, CLASS_GROUP_CONTAINER_ELEMENT_MARKER, CREATE_AS_NEW, ELEMENT_INSTANCE_ID, GROUP_CONTAINER_TYPE_NAME, INHERIT_CONTAINER_TYPE_NAME, IS_MODEL_GROUP_ALWAYS_REPLACE, MENU_CONTAINER_ID, MODEL_GROUP_ID, MODEL_GROUP_STATE, USE_AS_COPY_MODEL| Constructor and Description |
|---|
CmsContainerElementData() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getContents()
Returns the contents.
|
java.util.Set<java.lang.String> |
getCssResources(java.lang.String containerName)
Returns the required css resources.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getDndId()
Dragging an element may require changing its settings, but this changes the id since it is computed from the settings.
|
java.util.List<CmsAdditionalInfoBean> |
getFormatedIndividualSettings(java.lang.String containerId)
Returns the individual element settings formated with nice-names to be used as additional-info.
|
CmsFormatterConfig |
getFormatterConfig(java.lang.String containerName)
Returns the current formatter configuration.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,CmsFormatterConfig>> |
getFormatters()
Returns the formatter configurations.
|
java.util.List<CmsInheritanceInfo> |
getInheritanceInfos()
Returns the inheritance infos off all sub-items.
|
java.lang.String |
getInheritanceName()
Returns the inheritance name.
|
java.lang.String |
getLastModifiedByUser()
Returns the last modifying user.
|
long |
getLastModifiedDate()
Returns the last modification date.
|
long |
getLoadTime()
Returns the load time.
|
java.lang.String |
getNavText()
Returns the navText.
|
java.util.Map<java.lang.String,CmsXmlContentProperty> |
getSettingConfig(java.lang.String containerName)
Gets the setting configuration for this container element.
|
java.util.Map<java.lang.String,java.lang.String> |
getSettings()
Returns the settings for this container element.
|
java.util.List<java.lang.String> |
getSubItems()
Returns the sub-items.
|
java.lang.String |
getTitle()
Returns the supported container types.
|
java.util.Set<java.lang.String> |
getTypes()
If this element represents an element group, this method will return the supported container type.
|
boolean |
hasAlternativeFormatters(java.lang.String containerName)
Returns if there are alternative formatters available for the given container.
|
boolean |
hasSettings(java.lang.String containerId)
Returns if the element may have settings.
|
boolean |
isGroup()
Returns if this element is used as a group.
|
boolean |
isShowInContext(java.lang.String currentContext)
Returns true if the element should be shown in the current template context.
|
void |
setContents(java.util.Map<java.lang.String,java.lang.String> contents)
Sets the contents.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setDndId(java.lang.String dndId)
During dragging and dropping in the container page editor, it may be required to substitute a different element for the element being dragged.
|
void |
setFormatters(java.util.Map<java.lang.String,java.util.Map<java.lang.String,CmsFormatterConfig>> formatters)
Sets the formatter configurations.
|
void |
setGroup(boolean isGroup)
Sets if this element is used as a group.
|
void |
setInheritanceInfos(java.util.List<CmsInheritanceInfo> inheritanceInfos)
Sets the inheritance infos.
|
void |
setInheritanceName(java.lang.String inheritanceName)
Sets the inheritance name.
|
void |
setLastModifiedByUser(java.lang.String lastModifiedByUser)
Sets the modifying userdByUser.
|
void |
setLastModifiedDate(long lastModifiedDate)
Sets the last modification date.
|
void |
setLoadTime(long loadTime)
Sets the load time.
|
void |
setNavText(java.lang.String navText)
Sets the navText.
|
void |
setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
Sets the settings for this container element.
|
void |
setSubItems(java.util.List<java.lang.String> subItems)
Sets the sub-items.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
void |
setTypes(java.util.Set<java.lang.String> types)
Sets the supported container types.
|
java.lang.String |
toString() |
copy, getBigIconClasses, getClientId, getElementView, getInheritanceInfo, getModelGroupId, getNoEditReason, getResourceType, getSitePath, getSmallIconClasses, getSubTitle, hasEditHandler, hasViewPermission, hasWritePermission, isCopyInModels, isCreateNew, isGroupContainer, isInheritContainer, isModelGroup, isModelGroupAlwaysReplace, isNew, isNewEditorDisabled, isReleasedAndNotExpired, isWasModelGroup, setClientId, setCopyInModels, setCreateNew, setElementView, setHasEditHandler, setHasSettings, setIconClasses, setInheritanceInfo, setModelGroupAlwaysReplace, setModelGroupId, setNew, setNewEditorDisabled, setPermissionInfo, setReleasedAndNotExpired, setResourceType, setSitePath, setSubTitle, setWasModelGrouppublic CmsContainerElementData()
public java.util.Map<java.lang.String,java.lang.String> getContents()
public java.util.Set<java.lang.String> getCssResources(java.lang.String containerName)
containerName - the current container namepublic java.lang.String getDescription()
public java.lang.String getDndId()
public java.util.List<CmsAdditionalInfoBean> getFormatedIndividualSettings(java.lang.String containerId)
containerId - the container idpublic CmsFormatterConfig getFormatterConfig(java.lang.String containerName)
containerName - the current container namepublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,CmsFormatterConfig>> getFormatters()
public java.util.List<CmsInheritanceInfo> getInheritanceInfos()
public java.lang.String getInheritanceName()
public java.lang.String getLastModifiedByUser()
public long getLastModifiedDate()
public long getLoadTime()
public java.lang.String getNavText()
public java.util.Map<java.lang.String,CmsXmlContentProperty> getSettingConfig(java.lang.String containerName)
containerName - the current container namepublic java.util.Map<java.lang.String,java.lang.String> getSettings()
public java.util.List<java.lang.String> getSubItems()
public java.lang.String getTitle()
getTitle in class CmsContainerElementpublic java.util.Set<java.lang.String> getTypes()
public boolean hasAlternativeFormatters(java.lang.String containerName)
containerName - the container nametrue if there are alternative formatters available for the given containerpublic boolean hasSettings(java.lang.String containerId)
CmsContainerElementhasSettings in class CmsContainerElementcontainerId - the container idtrue if the element may have settingsCmsContainerElement.hasSettings(java.lang.String)public boolean isGroup()
public boolean isShowInContext(java.lang.String currentContext)
currentContext - the current template contextpublic void setContents(java.util.Map<java.lang.String,java.lang.String> contents)
contents - the contents to setpublic void setDescription(java.lang.String description)
description - the description to setpublic void setDndId(java.lang.String dndId)
dndId - the drag and drop replacement element's client idpublic void setFormatters(java.util.Map<java.lang.String,java.util.Map<java.lang.String,CmsFormatterConfig>> formatters)
formatters - the formatter configurations to setpublic void setGroup(boolean isGroup)
isGroup - if this element is used as a grouppublic void setInheritanceInfos(java.util.List<CmsInheritanceInfo> inheritanceInfos)
inheritanceInfos - the inheritance infos to setpublic void setInheritanceName(java.lang.String inheritanceName)
inheritanceName - the inheritance name to setpublic void setLastModifiedByUser(java.lang.String lastModifiedByUser)
lastModifiedByUser - the last modifying user to setpublic void setLastModifiedDate(long lastModifiedDate)
lastModifiedDate - the last modification date to setpublic void setLoadTime(long loadTime)
loadTime - the load time to setpublic void setNavText(java.lang.String navText)
navText - the navText to setpublic void setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
settings - the new settingspublic void setSubItems(java.util.List<java.lang.String> subItems)
subItems - the sub-items to setpublic void setTitle(java.lang.String title)
setTitle in class CmsContainerElementtitle - the title to setpublic void setTypes(java.util.Set<java.lang.String> types)
types - the supported container types to setpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()