fr.paris.lutece.plugins.myportal.service.handler
Interface WidgetHandler

All Known Implementing Classes:
HtmlWidgetHandler

public interface WidgetHandler

WidgetHandler


Method Summary
 java.lang.String getDescription()
          Get the description of the handler
 java.lang.String getName()
          Get the name of the handler
 boolean isCustomizable()
          Check if the widget is customizable or not.
 java.lang.String renderWidget(Widget widget, fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)
          Render a widget
 

Method Detail

getName

java.lang.String getName()
Get the name of the handler

Returns:
the name

getDescription

java.lang.String getDescription()
Get the description of the handler

Returns:
the description

renderWidget

java.lang.String renderWidget(Widget widget,
                              fr.paris.lutece.portal.service.security.LuteceUser user,
                              javax.servlet.http.HttpServletRequest request)
Render a widget

Parameters:
widget - the widget
user - the LuteceUser
request - HttpServletRequest
Returns:
a data

isCustomizable

boolean isCustomizable()
Check if the widget is customizable or not.
In other words, if the wiget is indeed customizable, the content depends on the LuteceUser.

Returns:
true if it is customizable, false otherwise


Copyright © 2011 Mairie de Paris. All Rights Reserved.