org.jasig.portlet.calendar.caching
Class RequestAttributeCacheKeyGeneratorImpl

java.lang.Object
  extended by org.jasig.portlet.calendar.caching.DefaultCacheKeyGeneratorImpl
      extended by org.jasig.portlet.calendar.caching.RequestAttributeCacheKeyGeneratorImpl
All Implemented Interfaces:
ICacheKeyGenerator

public class RequestAttributeCacheKeyGeneratorImpl
extends DefaultCacheKeyGeneratorImpl

RequestAttributeCacheKeyGeneratorImpl is an implementation of ICacheKeyGenerator that appends the current session username to the generated key. This implementation requires the username to be added to the session on the user's first login and must therefore by used with one of the initialization services.

Version:
$Header: RequestAttributeCacheKeyGenerator.java Exp $
Author:
Jen Bourey, jennifer.bourey@gmail.com

Constructor Summary
RequestAttributeCacheKeyGeneratorImpl()
           
 
Method Summary
 String getKey(CalendarConfiguration configuration, org.joda.time.Interval interval, javax.portlet.PortletRequest request, String calendarIdentifier)
          Returns a cache key for the calendar.
 
Methods inherited from class org.jasig.portlet.calendar.caching.DefaultCacheKeyGeneratorImpl
isIncludePeriod, setIncludePeriod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeCacheKeyGeneratorImpl

public RequestAttributeCacheKeyGeneratorImpl()
Method Detail

getKey

public String getKey(CalendarConfiguration configuration,
                     org.joda.time.Interval interval,
                     javax.portlet.PortletRequest request,
                     String calendarIdentifier)
Description copied from interface: ICacheKeyGenerator
Returns a cache key for the calendar.

Specified by:
getKey in interface ICacheKeyGenerator
Overrides:
getKey in class DefaultCacheKeyGeneratorImpl
Returns:


Copyright © 2012 Jasig. All Rights Reserved.