fr.paris.lutece.portal.service.portal
Class ThemesService

java.lang.Object
  extended by fr.paris.lutece.portal.service.portal.ThemesService

public class ThemesService
extends java.lang.Object

ThemesService


Field Summary
static java.lang.String DEFAULT_THEME
           
 
Constructor Summary
ThemesService()
           
 
Method Summary
static java.lang.String getGlobalTheme()
          Returns the global theme
static java.lang.String getThemeCSS(java.lang.String strTheme)
           
static java.lang.String getThemeImages(java.lang.String strTheme)
           
static ReferenceList getThemesList()
          Returns the list of the code_theme of the page
static java.lang.String getUserTheme(javax.servlet.http.HttpServletRequest request)
          Gets the theme selected by the user
static void setGlobalTheme(java.lang.String strTheme)
          Sets the global theme
static void setUserTheme(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String strTheme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_THEME

public static final java.lang.String DEFAULT_THEME
See Also:
Constant Field Values
Constructor Detail

ThemesService

public ThemesService()
Method Detail

getThemesList

public static ReferenceList getThemesList()
Returns the list of the code_theme of the page

Returns:
the list of the page Code_theme in form of ReferenceList

getUserTheme

public static java.lang.String getUserTheme(javax.servlet.http.HttpServletRequest request)
Gets the theme selected by the user

Parameters:
request - The HTTP request
Returns:
The theme if available otherwise null

setUserTheme

public static void setUserTheme(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                java.lang.String strTheme)

getGlobalTheme

public static java.lang.String getGlobalTheme()
Returns the global theme

Returns:
the global theme

setGlobalTheme

public static void setGlobalTheme(java.lang.String strTheme)
Sets the global theme

Parameters:
strTheme - The global theme

getThemeCSS

public static java.lang.String getThemeCSS(java.lang.String strTheme)

getThemeImages

public static java.lang.String getThemeImages(java.lang.String strTheme)


Copyright © 2009 Mairie de Paris. All Rights Reserved.