org.apache.jetspeed.cache
Interface ContentCacheKeyGenerator


public interface ContentCacheKeyGenerator

Provides interface to Jetspeed for content cache key generation

Version:
$Id: $
Author:
David Sean Taylor

Method Summary
 ContentCacheKey createCacheKey(RequestContext context, String windowId)
          Normalized and pluggable cache key generator
 ContentCacheKey createSessionCacheKey(String sessionid, String pipeline, String windowId)
          Create a cache key without request context information, but by providing required parameters sessinid and windowid
 ContentCacheKey createUserCacheKey(String username, String pipeline, String windowId)
          Create a cache key without request context information, but by providing required parameters username and windowid
 boolean isCacheBySessionId()
          return true if caching is by session id, not username
 boolean isCacheByUsername()
          return true if caching is by username, not sessionid
 

Method Detail

createCacheKey

ContentCacheKey createCacheKey(RequestContext context,
                               String windowId)
Normalized and pluggable cache key generator

Parameters:
context -
windowId - The window id of the portlet to be cached.
Returns:
Since:
2.1.2

createUserCacheKey

ContentCacheKey createUserCacheKey(String username,
                                   String pipeline,
                                   String windowId)
Create a cache key without request context information, but by providing required parameters username and windowid

Parameters:
username -
pipeline - "desktop" or "portal"
windowId -
Returns:

createSessionCacheKey

ContentCacheKey createSessionCacheKey(String sessionid,
                                      String pipeline,
                                      String windowId)
Create a cache key without request context information, but by providing required parameters sessinid and windowid

Parameters:
sessionid -
pipeline - "desktop" or "portal"
windowId -
Returns:

isCacheBySessionId

boolean isCacheBySessionId()
return true if caching is by session id, not username

Returns:

isCacheByUsername

boolean isCacheByUsername()
return true if caching is by username, not sessionid

Returns:


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.