org.jasig.portlet.calendar.caching
Class RequestAttributeCacheKeyGeneratorImpl

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

public class RequestAttributeCacheKeyGeneratorImpl
extends Object
implements ICacheKeyGenerator

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, net.fortuna.ical4j.model.Period period, javax.servlet.http.HttpServletRequest request, String calendarIdentifier)
          Returns a cache key for the calendar.
 String getKey(CalendarConfiguration configuration, net.fortuna.ical4j.model.Period period, javax.portlet.PortletRequest request, String calendarIdentifier)
          Returns a cache key for the calendar.
 
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,
                     net.fortuna.ical4j.model.Period period,
                     javax.servlet.http.HttpServletRequest request,
                     String calendarIdentifier)
Description copied from interface: ICacheKeyGenerator
Returns a cache key for the calendar.

Specified by:
getKey in interface ICacheKeyGenerator
Returns:

getKey

public String getKey(CalendarConfiguration configuration,
                     net.fortuna.ical4j.model.Period period,
                     javax.portlet.PortletRequest request,
                     String calendarIdentifier)
Description copied from interface: ICacheKeyGenerator
Returns a cache key for the calendar.

Specified by:
getKey in interface ICacheKeyGenerator
Returns:


Copyright © 2011 Jasig. All Rights Reserved.