public class CmsJspStandardContextBean.CmsContainerElementWrapper extends CmsContainerElementBean
Modifier | Constructor and Description |
---|---|
protected |
CmsJspStandardContextBean.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,CmsJspStandardContextBean.ElementSettingWrapper> |
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)
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() |
cloneWithSettings, createElementForResourceType, getTypeName, isCopyModel, isModelGroup, isModelGroupAlwaysReplace
protected CmsJspStandardContextBean.CmsContainerElementWrapper(CmsContainerElementBean element)
element
- the element to wrappublic CmsContainerElementBean clone()
clone
in class CmsContainerElementBean
CmsContainerElementBean.clone()
public java.lang.String editorHash()
CmsContainerElementBean
editorHash
in class CmsContainerElementBean
CmsContainerElementBean.editorHash()
public boolean equals(java.lang.Object obj)
equals
in class CmsContainerElementBean
CmsContainerElementBean.equals(java.lang.Object)
public CmsUUID getFormatterId()
CmsContainerElementBean
getFormatterId
in class CmsContainerElementBean
CmsContainerElementBean.getFormatterId()
public CmsUUID getId()
CmsContainerElementBean
getId
in class CmsContainerElementBean
CmsContainerElementBean.getId()
public java.util.Map<java.lang.String,java.lang.String> getIndividualSettings()
CmsContainerElementBean
getIndividualSettings
in class CmsContainerElementBean
CmsContainerElementBean.getIndividualSettings()
public CmsInheritanceInfo getInheritanceInfo()
CmsContainerElementBean
getInheritanceInfo
in class CmsContainerElementBean
null
if not availableCmsContainerElementBean.getInheritanceInfo()
public java.lang.String getInstanceId()
CmsContainerElementBean
getInstanceId
in class CmsContainerElementBean
CmsContainerElementBean.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 CmsContainerElementBean
CmsContainerElementBean.getResource()
public java.lang.String getResourceTypeName()
public java.util.Map<java.lang.String,CmsJspStandardContextBean.ElementSettingWrapper> getSetting()
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 CmsContainerElementBean
CmsContainerElementBean.getSettings()
public java.lang.String getSitePath()
CmsContainerElementBean
It is required to call CmsContainerElementBean.initResource(CmsObject)
before this method can be used.
getSitePath
in class CmsContainerElementBean
CmsContainerElementBean.getSitePath()
public int hashCode()
hashCode
in class CmsContainerElementBean
CmsContainerElementBean.hashCode()
public void initResource(CmsObject cms) throws CmsException
CmsContainerElementBean
initResource
in class CmsContainerElementBean
cms
- the CMS contextCmsException
- if something goes wrong reading the element resourceCmsContainerElementBean.initResource(org.opencms.file.CmsObject)
public void initSettings(CmsObject cms, I_CmsFormatterBean formatterBean)
CmsContainerElementBean
initSettings
in class CmsContainerElementBean
cms
- the CMS contextformatterBean
- the formatter configuration beanCmsContainerElementBean.initSettings(org.opencms.file.CmsObject, org.opencms.xml.containerpage.I_CmsFormatterBean)
public boolean isCreateNew()
CmsContainerElementBean
isCreateNew
in class CmsContainerElementBean
true
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
CmsContainerElementBean
isGroupContainer
in class CmsContainerElementBean
cms
- 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
CmsContainerElementBean
isInheritedContainer
in class CmsContainerElementBean
cms
- 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()
CmsContainerElementBean
isInMemoryOnly
in class CmsContainerElementBean
true
if the represented resource is in memory only and not persisted in the VFSCmsContainerElementBean.isInMemoryOnly()
public boolean isReleasedAndNotExpired()
CmsContainerElementBean
isReleasedAndNotExpired
in class CmsContainerElementBean
true
if the element resource is released and not expiredCmsContainerElementBean.isReleasedAndNotExpired()
public boolean isTemporaryContent()
CmsContainerElementBean
isTemporaryContent
in class CmsContainerElementBean
true
if the element resource contains temporary file contentCmsContainerElementBean.isTemporaryContent()
public void removeInstanceId()
CmsContainerElementBean
removeInstanceId
in class CmsContainerElementBean
CmsContainerElementBean.removeInstanceId()
public void setFormatterId(CmsUUID formatterId)
CmsContainerElementBean
setFormatterId
in class CmsContainerElementBean
formatterId
- the formatter idCmsContainerElementBean.setFormatterId(org.opencms.util.CmsUUID)
public void setHistoryFile(CmsFile file)
CmsContainerElementBean
setHistoryFile
in class CmsContainerElementBean
file
- the historical fileCmsContainerElementBean.setHistoryFile(org.opencms.file.CmsFile)
public void setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
CmsContainerElementBean
setInheritanceInfo
in class CmsContainerElementBean
inheritanceInfo
- the inheritance infoCmsContainerElementBean.setInheritanceInfo(org.opencms.ade.containerpage.shared.CmsInheritanceInfo)
public void setTemporaryFile(CmsFile elementFile)
CmsContainerElementBean
setTemporaryFile
in class CmsContainerElementBean
elementFile
- the temporary fileCmsContainerElementBean.setTemporaryFile(org.opencms.file.CmsFile)
public java.lang.String toString()
toString
in class CmsContainerElementBean
CmsContainerElementBean.toString()