|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.CacheManager
This helper class is used by WcmNavigationDataProvider and WcmAuthoringDataProvider for cahching navigation data.
Field Summary | |
static int |
CONTAINEE
|
static int |
CONTAINER
|
Constructor Summary | |
CacheManager()
|
Method Summary | |
void |
clear()
Clear the gneral session cache |
void |
clear(java.lang.String objectStoreName,
java.lang.String objectId,
int mode,
int objectType,
java.lang.String[] parentIds)
Deprecated. use clearContainer or clearContainee signatures. |
void |
clearContainee(com.filenet.wcm.api.Document document)
For each container of the document, clear its cached Document containees. |
void |
clearContainee(com.filenet.wcm.api.Folder folder)
Clear the cached Folder containees of the specified folder's parent folder. |
void |
clearContainee(java.lang.String objectStoreName,
int objectType,
java.lang.Object parentInfo)
For the containers in the specified object store specified in parentInfo, clear the cached items of the specified object type. |
void |
clearContainer(com.filenet.wcm.api.Folder folder)
Clears all cached containees of the specified container. |
void |
clearContainer(java.lang.String objectStoreName,
java.lang.String folderId)
Clears all cached containees of the specified container. |
static void |
clearStaticCache()
Clear the static application cache value |
java.lang.Object |
get(java.lang.String key)
Get the general session cache value |
static CacheManager |
getCacheManager(WcmDataStore ds)
Returns a singleton CacheManager objects |
org.w3c.dom.Document |
getResults(com.filenet.wcm.api.Session session,
FilterData filterData)
This runtine gets the requested results from from CS |
org.w3c.dom.Document |
getResults(com.filenet.wcm.api.Session session,
FilterData filterData,
boolean ignoreCache)
This runtine gets the requested results from the cache and retrieves what ever it needs from CS |
static java.lang.Object |
getStatic(java.lang.String key)
Get the static application cache value |
long |
getTimeLastUpdated(FilterData filterData)
|
void |
initializeCache()
|
boolean |
isContainerDeleted(java.lang.String containerId)
Checks if the container is is the deleted list with in the cache. |
void |
put(java.lang.String key,
java.lang.Object value)
Put an element into the general cache |
static void |
putStatic(java.lang.String key,
java.lang.Object value)
Put an element into the static application cache |
void |
removeDeletedContainer(java.lang.String containerId)
Removes the container from the deleted list. |
void |
setDeletedContainer(java.lang.String containerId)
used to inform the cache that a container has been deleted so that a hit to the server can be avoided. |
static java.lang.String |
substringBetween(java.lang.String str,
java.lang.String open,
java.lang.String close,
boolean searchBackwards)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CONTAINER
public static final int CONTAINEE
Constructor Detail |
public CacheManager()
Method Detail |
public void initializeCache()
public void setDeletedContainer(java.lang.String containerId)
containerId
- public boolean isContainerDeleted(java.lang.String containerId)
containerId
-
public void removeDeletedContainer(java.lang.String containerId)
containerId
- public static CacheManager getCacheManager(WcmDataStore ds) throws java.lang.Exception
ds
- The data store for the controller
java.lang.Exception
public void put(java.lang.String key, java.lang.Object value)
key
- The cache keyvalue
- The cache valuepublic static void putStatic(java.lang.String key, java.lang.Object value)
key
- The cache keyvalue
- The cache valuepublic static java.lang.Object getStatic(java.lang.String key)
key
- The Cache key
public java.lang.Object get(java.lang.String key)
key
- The Cache key
public static void clearStaticCache()
public void clear()
public long getTimeLastUpdated(FilterData filterData)
public void clearContainer(com.filenet.wcm.api.Folder folder)
folder
- public void clearContainer(java.lang.String objectStoreName, java.lang.String folderId)
objectStoreName
- folderId
- public void clearContainee(com.filenet.wcm.api.Document document)
document
- public void clearContainee(com.filenet.wcm.api.Folder folder)
folder
- public void clearContainee(java.lang.String objectStoreName, int objectType, java.lang.Object parentInfo)
objectStoreName
- The name of the object store where the specified folders reside.objectType
- Object type constant. Valid values are the WcmAuthoringDataProvider.TYPE_... constants.parentInfo
- Parent info can be either a String[] of folder IDs, a Folders collection, or a single Folder object.public void clear(java.lang.String objectStoreName, java.lang.String objectId, int mode, int objectType, java.lang.String[] parentIds)
public org.w3c.dom.Document getResults(com.filenet.wcm.api.Session session, FilterData filterData) throws java.lang.Exception
session
- The current sessionfilterData
- The requested container object
java.lang.Exception
public org.w3c.dom.Document getResults(com.filenet.wcm.api.Session session, FilterData filterData, boolean ignoreCache) throws java.lang.Exception
session
- The current sessionfilterData
- The reqested container objectsignoreCache
- ignore the cashe
java.lang.Exception
public static java.lang.String substringBetween(java.lang.String str, java.lang.String open, java.lang.String close, boolean searchBackwards)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |