fr.paris.lutece.plugins.theme.service
public class ThemeService extends Object implements fr.paris.lutece.portal.service.portal.IThemeService
| Constructor and Description |
|---|
ThemeService() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.portal.business.style.Theme |
create(fr.paris.lutece.portal.business.style.Theme theme)
Creation of an instance of a theme
|
fr.paris.lutece.portal.business.style.Theme |
getGlobalTheme()
Get the global theme
|
static ThemeService |
getInstance()
Return the ThemeService singleton
|
fr.paris.lutece.portal.business.style.Theme |
getTheme(String strCodeTheme)
Get the theme with a given code theme
|
fr.paris.lutece.util.ReferenceList |
getThemes()
Get the list of themes
|
Collection<fr.paris.lutece.portal.business.style.Theme> |
getThemesList()
Return the list of all the themes
|
String |
getUserTheme(javax.servlet.http.HttpServletRequest request)
Gets the theme selected by the user
|
void |
init()
Init
|
boolean |
isValidTheme(String strCodeTheme)
Checks if the theme is among existing themes
|
void |
remove(String strCodeTheme)
Remove the theme whose identifier is specified in parameter
|
void |
setGlobalTheme(String strGlobalTheme)
Set the global theme
|
fr.paris.lutece.portal.business.style.Theme |
update(fr.paris.lutece.portal.business.style.Theme theme)
Update of the theme which is specified
|
public static ThemeService getInstance()
public void init()
public fr.paris.lutece.util.ReferenceList getThemes()
getThemes in interface fr.paris.lutece.portal.service.portal.IThemeServicepublic fr.paris.lutece.portal.business.style.Theme getTheme(String strCodeTheme)
getTheme in interface fr.paris.lutece.portal.service.portal.IThemeServicestrCodeTheme - the code themepublic fr.paris.lutece.portal.business.style.Theme getGlobalTheme()
getGlobalTheme in interface fr.paris.lutece.portal.service.portal.IThemeServicepublic String getUserTheme(javax.servlet.http.HttpServletRequest request)
getUserTheme in interface fr.paris.lutece.portal.service.portal.IThemeServicerequest - The HTTP requestpublic Collection<fr.paris.lutece.portal.business.style.Theme> getThemesList()
getThemesList in interface fr.paris.lutece.portal.service.portal.IThemeServicepublic void setGlobalTheme(String strGlobalTheme)
setGlobalTheme in interface fr.paris.lutece.portal.service.portal.IThemeServicestrGlobalTheme - the code theme of the global themepublic fr.paris.lutece.portal.business.style.Theme create(fr.paris.lutece.portal.business.style.Theme theme)
create in interface fr.paris.lutece.portal.service.portal.IThemeServicetheme - An instance of a theme which contains the informations to storepublic fr.paris.lutece.portal.business.style.Theme update(fr.paris.lutece.portal.business.style.Theme theme)
update in interface fr.paris.lutece.portal.service.portal.IThemeServicetheme - The instance of the theme which contains the data to storepublic void remove(String strCodeTheme)
remove in interface fr.paris.lutece.portal.service.portal.IThemeServicestrCodeTheme - The identifier of the theme to removepublic boolean isValidTheme(String strCodeTheme)
isValidTheme in interface fr.paris.lutece.portal.service.portal.IThemeServicestrCodeTheme - The theme to checkCopyright © 2014 Mairie de Paris. All rights reserved.