|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.federated.ContentCacheHelper
public class ContentCacheHelper
The ContentCacheHleper manages cache data for the cm system. It has methods to flush the content objects stored in the cache. This helper only manages cache at the API level, not at the SPI
Constructor Summary | |
---|---|
ContentCacheHelper()
|
Method Summary | |
---|---|
static void |
flushAllBinaryCacheEntries(String repositoryName,
String nodeId)
Removes all Binary entries related to a Node. |
static void |
flushBinaryCache(String repositoryName)
Removes all keys and values from a Binary cache. |
static void |
flushBinaryCacheEntry(String repositoryName,
String nodeId,
String propertyUid)
Removes both key and value for a Binary cache entry. |
static void |
flushNodeCache(String repositoryName)
Removes all keys and values from a Node cache. |
static void |
flushNodeCacheEntry(String repositoryName,
String nodeId,
String nodePath)
Removes both key and value for a Node cache entry. |
static void |
flushSearchCache()
This method allows users to flush the global search cache which stores all the search results. |
static void |
flushSearchCacheEntry(Search search)
Removes both key and value for a search cache entry. |
static void |
flushTypeCache(String repositoryName)
Removes all keys and values from a Type cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentCacheHelper()
Method Detail |
---|
public static void flushNodeCacheEntry(String repositoryName, String nodeId, String nodePath)
repositoryName
- The name of the repositorynodeId
- The UID of the node (node.getId().getUid())nodePath
- The path of the nodepublic static void flushBinaryCacheEntry(String repositoryName, String nodeId, String propertyUid)
repositoryName
- The name of the repositorynodeId
- The UID of the node (node.getId().getUid())propertyUid
- The UID of the property (property.getId().getUid())public static void flushSearchCacheEntry(Search search)
search
- the Search objectpublic static void flushAllBinaryCacheEntries(String repositoryName, String nodeId) throws RepositoryException
repositoryName
- The name of the repositorynodeId
- The UID of the node (node.getId().getUid())
RepositoryException
public static void flushNodeCache(String repositoryName)
repositoryName
- The name of the repository.public static void flushTypeCache(String repositoryName)
repositoryName
- The name of the repository.public static void flushBinaryCache(String repositoryName)
repositoryName
- The name of the repository.public static void flushSearchCache()
<cache>
<name>searchCache</name>
<time-to-live>[time to live in ms]</time-to-live>
<max-entries>[maximum entries in the search cache]</max-entries>
</cache>
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |