org.jasig.portal.layout.dlm
Class LayoutCachingService

java.lang.Object
  extended by org.jasig.portal.layout.dlm.LayoutCachingService
All Implemented Interfaces:
EventListener, ILayoutCachingService, ApplicationListener

public class LayoutCachingService
extends Object
implements ApplicationListener, ILayoutCachingService

Provides API for layout caching service


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
LayoutCachingService()
           
 
Method Summary
 void cacheLayout(IPerson owner, UserProfile profile, Document layout)
           
 Document getCachedLayout(IPerson owner, UserProfile profile)
           
protected  Serializable getCacheKey(IPerson owner, UserProfile profile)
           
 Map<Serializable,Document> getLayoutCache()
           
 void onApplicationEvent(ApplicationEvent event)
           
 void removeCachedLayout(IPerson owner, UserProfile profile)
           
 void setLayoutCache(Map<Serializable,Document> layoutCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

LayoutCachingService

public LayoutCachingService()
Method Detail

getLayoutCache

public Map<Serializable,Document> getLayoutCache()
Returns:
the layoutCache

setLayoutCache

public void setLayoutCache(Map<Serializable,Document> layoutCache)
Parameters:
layoutCache - the layoutCache to set

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener

cacheLayout

public void cacheLayout(IPerson owner,
                        UserProfile profile,
                        Document layout)
Specified by:
cacheLayout in interface ILayoutCachingService

getCachedLayout

public Document getCachedLayout(IPerson owner,
                                UserProfile profile)
Specified by:
getCachedLayout in interface ILayoutCachingService

removeCachedLayout

public void removeCachedLayout(IPerson owner,
                               UserProfile profile)
Specified by:
removeCachedLayout in interface ILayoutCachingService

getCacheKey

protected Serializable getCacheKey(IPerson owner,
                                   UserProfile profile)


Copyright © 2010 Jasig. All Rights Reserved.