public class CmsDetailNameCache extends java.lang.Object implements I_CmsGlobalConfigurationCache
| Modifier and Type | Field and Description |
|---|---|
static int |
DELAY_MILLIS
The delay between updates.
|
| Constructor and Description |
|---|
CmsDetailNameCache(CmsObject cms)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache.
|
CmsUUID |
getDetailId(java.lang.String name)
Gets the structure id for a given URL name.
|
void |
initialize()
Initializes the cache by scheduling the update actions and loading the initial cache contents.
|
void |
remove(CmsPublishedResource pubRes)
Removes a published resource from the cache.
|
void |
remove(CmsResource resource)
Removes a resource from the cache.
|
void |
update(CmsPublishedResource pubRes)
Updates the cache entry for the given published resource.
|
void |
update(CmsResource resource)
Updates the cache entry for the given resource.
|
public static final int DELAY_MILLIS
public CmsDetailNameCache(CmsObject cms)
cms - the CMS context to usepublic void clear()
I_CmsGlobalConfigurationCacheclear in interface I_CmsGlobalConfigurationCacheI_CmsGlobalConfigurationCache.clear()public CmsUUID getDetailId(java.lang.String name)
name - the URL namepublic void initialize()
public void remove(CmsPublishedResource pubRes)
I_CmsGlobalConfigurationCacheremove in interface I_CmsGlobalConfigurationCachepubRes - the published resourceI_CmsGlobalConfigurationCache.remove(org.opencms.db.CmsPublishedResource)public void remove(CmsResource resource)
I_CmsGlobalConfigurationCacheremove in interface I_CmsGlobalConfigurationCacheresource - the resource to removeI_CmsGlobalConfigurationCache.remove(org.opencms.file.CmsResource)public void update(CmsPublishedResource pubRes)
I_CmsGlobalConfigurationCacheNOTE: Cache implementations should not directly read the updated resource in this method because it might interfere with other caches. Instead, the resource should be marked as updated and read the next time the cache is queried.
update in interface I_CmsGlobalConfigurationCachepubRes - a published resourceI_CmsGlobalConfigurationCache.update(org.opencms.db.CmsPublishedResource)public void update(CmsResource resource)
I_CmsGlobalConfigurationCacheNOTE: Cache implementations should not directly read the updated resource in this method because it might interfere with other caches. Instead, the resource should be marked as updated and read the next time the cache is queried.
update in interface I_CmsGlobalConfigurationCacheresource - the resource for which the cache entry should be updatedI_CmsGlobalConfigurationCache.update(org.opencms.file.CmsResource)