public class CmsDetailNameCache extends java.lang.Object implements I_CmsGlobalConfigurationCache
限定符和类型 | 字段和说明 |
---|---|
static int |
DELAY_MILLIS
The delay between updates.
|
构造器和说明 |
---|
CmsDetailNameCache(CmsObject cms)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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_CmsGlobalConfigurationCache
public CmsUUID getDetailId(java.lang.String name)
name
- the URL namepublic void initialize()
public void remove(CmsPublishedResource pubRes)
I_CmsGlobalConfigurationCache
remove
在接口中 I_CmsGlobalConfigurationCache
pubRes
- the published resourceI_CmsGlobalConfigurationCache.remove(org.opencms.db.CmsPublishedResource)
public void remove(CmsResource resource)
I_CmsGlobalConfigurationCache
remove
在接口中 I_CmsGlobalConfigurationCache
resource
- the resource to removeI_CmsGlobalConfigurationCache.remove(org.opencms.file.CmsResource)
public void update(CmsPublishedResource pubRes)
I_CmsGlobalConfigurationCache
NOTE: 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
在接口中 I_CmsGlobalConfigurationCache
pubRes
- a published resourceI_CmsGlobalConfigurationCache.update(org.opencms.db.CmsPublishedResource)
public void update(CmsResource resource)
I_CmsGlobalConfigurationCache
NOTE: 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
在接口中 I_CmsGlobalConfigurationCache
resource
- the resource for which the cache entry should be updatedI_CmsGlobalConfigurationCache.update(org.opencms.file.CmsResource)