org.apache.jetspeed.cache.impl
Class JetspeedCacheKeyGenerator

java.lang.Object
  extended by org.apache.jetspeed.cache.impl.JetspeedCacheKeyGenerator
All Implemented Interfaces:
org.apache.jetspeed.cache.ContentCacheKeyGenerator

public class JetspeedCacheKeyGenerator
extends Object
implements org.apache.jetspeed.cache.ContentCacheKeyGenerator

Wrapper around actual cache implementation

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
private  boolean cacheBySessionId
           
private  List segments
           
 
Constructor Summary
JetspeedCacheKeyGenerator(List segments)
           
 
Method Summary
 org.apache.jetspeed.cache.ContentCacheKey createCacheKey(org.apache.jetspeed.request.RequestContext context, String windowId)
           
 org.apache.jetspeed.cache.ContentCacheKey createSessionCacheKey(String sessionId, String pipeline, String windowId)
           
 org.apache.jetspeed.cache.ContentCacheKey createUserCacheKey(String username, String pipeline, String windowId)
           
 boolean isCacheBySessionId()
           
 boolean isCacheByUsername()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

segments

private List segments

cacheBySessionId

private boolean cacheBySessionId
Constructor Detail

JetspeedCacheKeyGenerator

public JetspeedCacheKeyGenerator(List segments)
Method Detail

createCacheKey

public org.apache.jetspeed.cache.ContentCacheKey createCacheKey(org.apache.jetspeed.request.RequestContext context,
                                                                String windowId)
Specified by:
createCacheKey in interface org.apache.jetspeed.cache.ContentCacheKeyGenerator

createUserCacheKey

public org.apache.jetspeed.cache.ContentCacheKey createUserCacheKey(String username,
                                                                    String pipeline,
                                                                    String windowId)
Specified by:
createUserCacheKey in interface org.apache.jetspeed.cache.ContentCacheKeyGenerator

createSessionCacheKey

public org.apache.jetspeed.cache.ContentCacheKey createSessionCacheKey(String sessionId,
                                                                       String pipeline,
                                                                       String windowId)
Specified by:
createSessionCacheKey in interface org.apache.jetspeed.cache.ContentCacheKeyGenerator

isCacheBySessionId

public boolean isCacheBySessionId()
Specified by:
isCacheBySessionId in interface org.apache.jetspeed.cache.ContentCacheKeyGenerator

isCacheByUsername

public boolean isCacheByUsername()
Specified by:
isCacheByUsername in interface org.apache.jetspeed.cache.ContentCacheKeyGenerator


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