public class CmsJspStandardContextBean.CmsContainerElementWrapper extends CmsContainerElementBean
| Modifier | Constructor and Description |
|---|---|
protected |
CmsContainerElementWrapper(CmsContainerElementBean element)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CmsContainerElementBean |
clone() |
java.lang.String |
editorHash()
Returns the ADE client editor has value.
|
boolean |
equals(java.lang.Object obj) |
CmsUUID |
getFormatterId()
Returns the structure id of the formatter of this element.
|
CmsUUID |
getId()
Returns the structure id of the resource of this element.
|
java.util.Map<java.lang.String,java.lang.String> |
getIndividualSettings()
Returns the settings of this element.
|
CmsInheritanceInfo |
getInheritanceInfo()
Returns the inheritance info.
|
java.lang.String |
getInstanceId()
Returns the element instance id.
|
CmsJspStandardContextBean.CmsContainerElementWrapper |
getParent()
Returns the parent element if present.
|
CmsResource |
getResource()
Returns the resource of this element.
|
java.lang.String |
getResourceTypeName()
Returns the resource type name of the element resource.
|
java.util.Map<java.lang.String,CmsJspElementSettingValueWrapper> |
getSetting()
Returns a lazy initialized setting map.
|
java.util.Map<java.lang.String,java.lang.String> |
getSettings()
Returns the element settings including default values for settings not set.
|
java.lang.String |
getSitePath()
Returns the site path of the resource of this element.
|
int |
hashCode() |
void |
initResource(CmsObject cms)
Initializes the resource and the site path of this element.
|
void |
initSettings(CmsObject cms,
I_CmsFormatterBean formatterBean,
java.util.Locale locale,
javax.servlet.ServletRequest request,
java.util.Map<java.lang.String,java.lang.String> settingPresets)
Initializes the element settings.
|
boolean |
isCreateNew()
Returns if a new element should be created replacing the given one on first edit of a container-page.
|
boolean |
isGroupContainer(CmsObject cms)
Tests whether this element refers to a group container.
|
boolean |
isInheritedContainer(CmsObject cms)
Returns whether this element refers to an inherited container element.
|
boolean |
isInMemoryOnly()
Returns if the represented resource is in memory only and not persisted in the VFS.
|
boolean |
isReleasedAndNotExpired()
Returns if the element resource is released and not expired.
|
boolean |
isTemporaryContent()
Returns if the element resource contains temporary file content.
|
void |
removeInstanceId()
Removes the instance id.
|
void |
setFormatterId(CmsUUID formatterId)
Sets the formatter id.
|
void |
setHistoryFile(CmsFile file)
Sets a historical file.
|
void |
setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
Sets the inheritance info for this element.
|
void |
setTemporaryFile(CmsFile elementFile)
Sets the element resource as a temporary file.
|
java.lang.String |
toString() |
addFormatterSetting, cloneWithFormatter, cloneWithSettings, createElementForResourceType, getTypeName, isCopyModel, isModelGroup, isModelGroupAlwaysReplace, updateIndividualSettingsprotected CmsContainerElementWrapper(CmsContainerElementBean element)
element - the element to wrappublic CmsContainerElementBean clone()
clone in class CmsContainerElementBeanCmsContainerElementBean.clone()public java.lang.String editorHash()
CmsContainerElementBeaneditorHash in class CmsContainerElementBeanCmsContainerElementBean.editorHash()public boolean equals(java.lang.Object obj)
equals in class CmsContainerElementBeanCmsContainerElementBean.equals(java.lang.Object)public CmsUUID getFormatterId()
CmsContainerElementBeangetFormatterId in class CmsContainerElementBeanCmsContainerElementBean.getFormatterId()public CmsUUID getId()
CmsContainerElementBeangetId in class CmsContainerElementBeanCmsContainerElementBean.getId()public java.util.Map<java.lang.String,java.lang.String> getIndividualSettings()
CmsContainerElementBeangetIndividualSettings in class CmsContainerElementBeanCmsContainerElementBean.getIndividualSettings()public CmsInheritanceInfo getInheritanceInfo()
CmsContainerElementBeangetInheritanceInfo in class CmsContainerElementBeannull if not availableCmsContainerElementBean.getInheritanceInfo()public java.lang.String getInstanceId()
CmsContainerElementBeangetInstanceId in class CmsContainerElementBeanCmsContainerElementBean.getInstanceId()public CmsJspStandardContextBean.CmsContainerElementWrapper getParent()
null if not availablepublic CmsResource getResource()
CmsContainerElementBean
It is required to call CmsContainerElementBean.initResource(CmsObject) before this method can be used.
getResource in class CmsContainerElementBeanCmsContainerElementBean.getResource()public java.lang.String getResourceTypeName()
public java.util.Map<java.lang.String,CmsJspElementSettingValueWrapper> getSetting()
The values returned in the map are instances of A_CmsJspValueWrapper.
public java.util.Map<java.lang.String,java.lang.String> getSettings()
CmsContainerElementBean
Will return null if the element bean has not been initialized with CmsContainerElementBean.initResource(org.opencms.file.CmsObject).
getSettings in class CmsContainerElementBeanCmsContainerElementBean.getSettings()public java.lang.String getSitePath()
CmsContainerElementBean
It is required to call CmsContainerElementBean.initResource(CmsObject) before this method can be used.
getSitePath in class CmsContainerElementBeanCmsContainerElementBean.getSitePath()public int hashCode()
hashCode in class CmsContainerElementBeanCmsContainerElementBean.hashCode()public void initResource(CmsObject cms) throws CmsException
CmsContainerElementBeaninitResource in class CmsContainerElementBeancms - the CMS contextCmsException - if something goes wrong reading the element resourceCmsContainerElementBean.initResource(org.opencms.file.CmsObject)public void initSettings(CmsObject cms, I_CmsFormatterBean formatterBean, java.util.Locale locale, javax.servlet.ServletRequest request, java.util.Map<java.lang.String,java.lang.String> settingPresets)
CmsContainerElementBeaninitSettings in class CmsContainerElementBeancms - the CMS contextformatterBean - the formatter configuration beanlocale - the content localerequest - the current request, if availablesettingPresets - the presets for container element settingsCmsContainerElementBean.initSettings(org.opencms.file.CmsObject, org.opencms.xml.containerpage.I_CmsFormatterBean, java.util.Locale, javax.servlet.ServletRequest, java.util.Map)public boolean isCreateNew()
CmsContainerElementBeanisCreateNew in class CmsContainerElementBeantrue if a new element should be created replacing the given one on first edit of a container-pageCmsContainerElementBean.isCreateNew()public boolean isGroupContainer(CmsObject cms) throws CmsException
CmsContainerElementBeanisGroupContainer in class CmsContainerElementBeancms - the CmsObject used for VFS operationstrue if the container element refers to a group containerCmsException - if something goes wrongCmsContainerElementBean.isGroupContainer(org.opencms.file.CmsObject)public boolean isInheritedContainer(CmsObject cms) throws CmsException
CmsContainerElementBeanisInheritedContainer in class CmsContainerElementBeancms - the CmsObject used for VFS operationstrue if the container element refers to an inherited containerCmsException - if something goes wrongCmsContainerElementBean.isInheritedContainer(org.opencms.file.CmsObject)public boolean isInMemoryOnly()
CmsContainerElementBeanisInMemoryOnly in class CmsContainerElementBeantrue if the represented resource is in memory only and not persisted in the VFSCmsContainerElementBean.isInMemoryOnly()public boolean isReleasedAndNotExpired()
CmsContainerElementBeanisReleasedAndNotExpired in class CmsContainerElementBeantrue if the element resource is released and not expiredCmsContainerElementBean.isReleasedAndNotExpired()public boolean isTemporaryContent()
CmsContainerElementBeanisTemporaryContent in class CmsContainerElementBeantrue if the element resource contains temporary file contentCmsContainerElementBean.isTemporaryContent()public void removeInstanceId()
CmsContainerElementBeanremoveInstanceId in class CmsContainerElementBeanCmsContainerElementBean.removeInstanceId()public void setFormatterId(CmsUUID formatterId)
CmsContainerElementBeansetFormatterId in class CmsContainerElementBeanformatterId - the formatter idCmsContainerElementBean.setFormatterId(org.opencms.util.CmsUUID)public void setHistoryFile(CmsFile file)
CmsContainerElementBeansetHistoryFile in class CmsContainerElementBeanfile - the historical fileCmsContainerElementBean.setHistoryFile(org.opencms.file.CmsFile)public void setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
CmsContainerElementBeansetInheritanceInfo in class CmsContainerElementBeaninheritanceInfo - the inheritance infoCmsContainerElementBean.setInheritanceInfo(org.opencms.ade.containerpage.shared.CmsInheritanceInfo)public void setTemporaryFile(CmsFile elementFile)
CmsContainerElementBeansetTemporaryFile in class CmsContainerElementBeanelementFile - the temporary fileCmsContainerElementBean.setTemporaryFile(org.opencms.file.CmsFile)public java.lang.String toString()
toString in class CmsContainerElementBeanCmsContainerElementBean.toString()