fr.paris.lutece.plugins.myportal.service
Class WidgetContentService

java.lang.Object
  extended by fr.paris.lutece.plugins.myportal.service.WidgetContentService

public class WidgetContentService
extends java.lang.Object

WidgetContentService store widget content into a cache


Constructor Summary
WidgetContentService()
          Constructor
 
Method Summary
 java.lang.String getWidgetContent(int nIdWidget, fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)
          Get the widget content
 void removeCache(int nId)
          Remove the cache by a given name
 void removeCache(int nId, fr.paris.lutece.portal.service.security.LuteceUser user)
          Remove the cache by a given name
 void setWidgetContentCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
          Set the cache key service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetContentService

public WidgetContentService()
Constructor

Method Detail

getWidgetContent

public java.lang.String getWidgetContent(int nIdWidget,
                                         fr.paris.lutece.portal.service.security.LuteceUser user,
                                         javax.servlet.http.HttpServletRequest request)
Get the widget content

Parameters:
nIdWidget - The Widget ID
user - The Lutece user
request - HttpServletRequest
Returns:
The widget Content

removeCache

public void removeCache(int nId)
Remove the cache by a given name

Parameters:
nId - the name of the cache to remove

removeCache

public void removeCache(int nId,
                        fr.paris.lutece.portal.service.security.LuteceUser user)
Remove the cache by a given name

Parameters:
nId - the name of the cache to remove
user - the LuteceUser

setWidgetContentCacheKeyService

public void setWidgetContentCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the cache key service

Parameters:
cacheKeyService - the _cacheKeyService to set


Copyright © 2012 Mairie de Paris. All Rights Reserved.