public class CmsInheritedContainerState
extends java.lang.Object
构造器和说明 |
---|
CmsInheritedContainerState()
Default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addConfiguration(CmsContainerConfiguration configuration)
Adds a configuration bean for a new tree level.
|
void |
addConfigurations(CmsContainerConfigurationCache cache,
java.lang.String rootPath,
java.lang.String name,
java.util.Locale locale)
Reads the configurations for a root path and its parents from a cache instance and adds them to this state.
|
java.util.List<CmsContainerElementBean> |
getElements(boolean includeHidden)
Gets a list of container element beans which represent the state of the inherited container.
|
java.util.Set<java.lang.String> |
getNewElementKeys()
Gets the keys of new elements.
|
protected java.util.List<java.lang.Boolean> |
getVisibilities(java.lang.String key)
Gets the list of visibilities for a given key in all the tree levels.
|
boolean |
hasElementWithKey(java.lang.String key)
Checks whether an element with the given key is actually defined in this inherited container state.
|
public void addConfigurations(CmsContainerConfigurationCache cache, java.lang.String rootPath, java.lang.String name, java.util.Locale locale)
cache
- the cache instancerootPath
- the root pathname
- the name of the container configurationlocale
- the localepublic java.util.List<CmsContainerElementBean> getElements(boolean includeHidden)
The container element beans returned will have additional information available via the getInheritanceInfo method.
includeHidden
- if true, hidden elements will be included in the result listpublic java.util.Set<java.lang.String> getNewElementKeys()
public boolean hasElementWithKey(java.lang.String key)
key
- the key for which the check should be performedprotected void addConfiguration(CmsContainerConfiguration configuration)
configuration
- the configuration beanprotected java.util.List<java.lang.Boolean> getVisibilities(java.lang.String key)
key
- the key for which the visibilities should be returned