org.jasig.portlet.calendar.caching
Class RequestAttributeCacheKeyGeneratorImpl
java.lang.Object
org.jasig.portlet.calendar.caching.DefaultCacheKeyGeneratorImpl
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestAttributeCacheKeyGeneratorImpl
public RequestAttributeCacheKeyGeneratorImpl()
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.