Package org.opencms.jsp.util
Class CmsJspStandardContextBean.CmsContainerElementWrapper
java.lang.Object
org.opencms.xml.containerpage.CmsContainerElementBean
org.opencms.jsp.util.CmsJspStandardContextBean.CmsContainerElementWrapper
- All Implemented Interfaces:
Cloneable
- Enclosing class:
CmsJspStandardContextBean
Container element wrapper to add some API methods.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCmsContainerElementWrapper(Supplier<CmsContainerElementBean> elementProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the ADE client editor has value.booleanReturns the structure id of the formatter of this element.Returns the formatter key, if possible, otherwise the formatter configuration id, or null if nothing at all can be found.getId()Returns the structure id of the resource of this element.Returns the settings of this element.Returns the inheritance info.Returns the element instance id.Returns the parent element if present.Returns the resource of this element.Returns the resource type name of the element resource.Returns a lazy initialized setting map.Returns the element settings including default values for settings not set.Returns the site path of the resource of this element.inthashCode()voidinitResource(CmsObject cms) Initializes the resource and the site path of this element.voidinitSettings(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> settingPresets) Initializes the element settings.booleanReturns if a new element should be created replacing the given one on first edit of a container-page.booleanTests whether this element refers to a group container.booleanChecks if the element is used for displaying a historical content (usually from the history dialog).booleanReturns whether this element refers to an inherited container element.booleanReturns if the represented resource is in memory only and not persisted in the VFS.booleanReturns if the element resource is released and not expired.booleanReturns if the element resource contains temporary file content.voidsetFormatterId(CmsUUID formatterId) Sets the formatter id.voidsetHistoryFile(CmsFile file) Sets a historical file.voidsetInheritanceInfo(CmsInheritanceInfo inheritanceInfo) Sets the inheritance info for this element.voidsetTemporaryFile(CmsFile elementFile) Sets the element resource as a temporary file.toString()Methods inherited from class org.opencms.xml.containerpage.CmsContainerElementBean
addFormatterSetting, cloneWithFormatter, cloneWithSettings, createElementForResourceType, ensureNewInstanceId, getTypeName, isCopyModel, isDoNotCache, isModelGroup, isModelGroupAlwaysReplace, setDoNotCache, updateIndividualSettings
-
Constructor Details
-
CmsContainerElementWrapper
Constructor.- Parameters:
element- the element to wrap
-
-
Method Details
-
clone
- Overrides:
clonein classCmsContainerElementBean- See Also:
-
editorHash
Description copied from class:CmsContainerElementBeanReturns the ADE client editor has value.- Overrides:
editorHashin classCmsContainerElementBean- Returns:
- the ADE client editor has value
- See Also:
-
equals
- Overrides:
equalsin classCmsContainerElementBean- See Also:
-
getFormatterId
Description copied from class:CmsContainerElementBeanReturns the structure id of the formatter of this element.- Overrides:
getFormatterIdin classCmsContainerElementBean- Returns:
- the structure id of the formatter of this element
- See Also:
-
getFormatterKey
Returns the formatter key, if possible, otherwise the formatter configuration id, or null if nothing at all can be found.- Returns:
- the formatter key
-
getId
Description copied from class:CmsContainerElementBeanReturns the structure id of the resource of this element.- Overrides:
getIdin classCmsContainerElementBean- Returns:
- the structure id of the resource of this element
- See Also:
-
getIndividualSettings
Description copied from class:CmsContainerElementBeanReturns the settings of this element.- Overrides:
getIndividualSettingsin classCmsContainerElementBean- Returns:
- the settings of this element
- See Also:
-
getInheritanceInfo
Description copied from class:CmsContainerElementBeanReturns the inheritance info.- Overrides:
getInheritanceInfoin classCmsContainerElementBean- Returns:
- the inheritance info or
nullif not available - See Also:
-
getInstanceId
Description copied from class:CmsContainerElementBeanReturns the element instance id.- Overrides:
getInstanceIdin classCmsContainerElementBean- Returns:
- the element instance id
- See Also:
-
getParent
Returns the parent element if present.- Returns:
- the parent element or
nullif not available
-
getResource
Description copied from class:CmsContainerElementBeanReturns the resource of this element.It is required to call
CmsContainerElementBean.initResource(CmsObject)before this method can be used.- Overrides:
getResourcein classCmsContainerElementBean- Returns:
- the resource of this element
- See Also:
-
getResourceTypeName
Returns the resource type name of the element resource.- Returns:
- the resource type name
-
getSetting
Returns a lazy initialized setting map.The values returned in the map are instances of
A_CmsJspValueWrapper.- Returns:
- the wrapped settings
-
getSettings
Description copied from class:CmsContainerElementBeanReturns the element settings including default values for settings not set.Will return
nullif the element bean has not been initialized withCmsContainerElementBean.initResource(org.opencms.file.CmsObject).- Overrides:
getSettingsin classCmsContainerElementBean- Returns:
- the element settings
- See Also:
-
getSitePath
Description copied from class:CmsContainerElementBeanReturns the site path of the resource of this element.It is required to call
CmsContainerElementBean.initResource(CmsObject)before this method can be used.- Overrides:
getSitePathin classCmsContainerElementBean- Returns:
- the site path of the resource of this element
- See Also:
-
hashCode
- Overrides:
hashCodein classCmsContainerElementBean- See Also:
-
initResource
Description copied from class:CmsContainerElementBeanInitializes the resource and the site path of this element.- Overrides:
initResourcein classCmsContainerElementBean- Parameters:
cms- the CMS context- Throws:
CmsException- if something goes wrong reading the element resource- See Also:
-
initSettings
public void initSettings(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> settingPresets) Description copied from class:CmsContainerElementBeanInitializes the element settings.- Overrides:
initSettingsin classCmsContainerElementBean- Parameters:
cms- the CMS contextformatterBean- the formatter configuration beanlocale- the content localerequest- the current request, if availablesettingPresets- the presets for container element settings- See Also:
-
isCreateNew
Description copied from class:CmsContainerElementBeanReturns if a new element should be created replacing the given one on first edit of a container-page.- Overrides:
isCreateNewin classCmsContainerElementBean- Returns:
trueif a new element should be created replacing the given one on first edit of a container-page- See Also:
-
isGroupContainer
Description copied from class:CmsContainerElementBeanTests whether this element refers to a group container.- Overrides:
isGroupContainerin classCmsContainerElementBean- Parameters:
cms- the CmsObject used for VFS operations- Returns:
trueif the container element refers to a group container- Throws:
CmsException- if something goes wrong- See Also:
-
isHistoryContent
Description copied from class:CmsContainerElementBeanChecks if the element is used for displaying a historical content (usually from the history dialog).- Overrides:
isHistoryContentin classCmsContainerElementBean- Returns:
- true if the element is used for displaying a historical content
- See Also:
-
isInheritedContainer
Description copied from class:CmsContainerElementBeanReturns whether this element refers to an inherited container element.- Overrides:
isInheritedContainerin classCmsContainerElementBean- Parameters:
cms- the CmsObject used for VFS operations- Returns:
trueif the container element refers to an inherited container- Throws:
CmsException- if something goes wrong- See Also:
-
isInMemoryOnly
Description copied from class:CmsContainerElementBeanReturns if the represented resource is in memory only and not persisted in the VFS.- Overrides:
isInMemoryOnlyin classCmsContainerElementBean- Returns:
trueif the represented resource is in memory only and not persisted in the VFS- See Also:
-
isReleasedAndNotExpired
Description copied from class:CmsContainerElementBeanReturns if the element resource is released and not expired.- Overrides:
isReleasedAndNotExpiredin classCmsContainerElementBean- Returns:
trueif the element resource is released and not expired- See Also:
-
isTemporaryContent
Description copied from class:CmsContainerElementBeanReturns if the element resource contains temporary file content.- Overrides:
isTemporaryContentin classCmsContainerElementBean- Returns:
trueif the element resource contains temporary file content- See Also:
-
setFormatterId
Description copied from class:CmsContainerElementBeanSets the formatter id.- Overrides:
setFormatterIdin classCmsContainerElementBean- Parameters:
formatterId- the formatter id- See Also:
-
setHistoryFile
Description copied from class:CmsContainerElementBeanSets a historical file.- Overrides:
setHistoryFilein classCmsContainerElementBean- Parameters:
file- the historical file- See Also:
-
setTemporaryFile
Description copied from class:CmsContainerElementBeanSets the element resource as a temporary file.- Overrides:
setTemporaryFilein classCmsContainerElementBean- Parameters:
elementFile- the temporary file- See Also:
-
toString
- Overrides:
toStringin classCmsContainerElementBean- See Also:
-