public class CmsContainerConfigurationCacheState extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INHERITANCE_CONFIG_FILE_NAME
The standard file name for inherited container configurations.
|
static org.apache.commons.logging.Log |
LOG
The logger instance for this class.
|
| Constructor and Description |
|---|
CmsContainerConfigurationCacheState(java.util.Collection<CmsContainerConfigurationGroup> groups)
Creates a new cache state.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getBasePath(java.lang.String rootPath)
Returns the base path for a given configuration file.
|
protected java.lang.String |
getCacheKey(java.lang.String basePath)
Gets the cache key for a given base path.
|
CmsContainerConfiguration |
getContainerConfiguration(java.lang.String rootPath,
java.lang.String name)
Gets the container configuration for a given root path, name and locale.
|
CmsContainerConfigurationCacheState |
updateWithChangedGroups(java.util.Map<CmsUUID,CmsContainerConfigurationGroup> updateGroups)
Creates a new inheritance container cache state, which is based on this instance, but with some changed configurations.
|
public static final java.lang.String INHERITANCE_CONFIG_FILE_NAME
public static final org.apache.commons.logging.Log LOG
public CmsContainerConfigurationCacheState(java.util.Collection<CmsContainerConfigurationGroup> groups)
groups - the inheritance group configurations.public CmsContainerConfiguration getContainerConfiguration(java.lang.String rootPath, java.lang.String name)
rootPath - the root pathname - the configuration namepublic CmsContainerConfigurationCacheState updateWithChangedGroups(java.util.Map<CmsUUID,CmsContainerConfigurationGroup> updateGroups)
updateGroups - a map of the updated configurations, with the structure ids as keysprotected java.lang.String getBasePath(java.lang.String rootPath)
rootPath - the root path of the configuration fileprotected java.lang.String getCacheKey(java.lang.String basePath)
basePath - the base path