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.IThemeService
public fr.paris.lutece.portal.business.style.Theme getTheme(String strCodeTheme)
getTheme
in interface fr.paris.lutece.portal.service.portal.IThemeService
strCodeTheme
- the code themepublic fr.paris.lutece.portal.business.style.Theme getGlobalTheme()
getGlobalTheme
in interface fr.paris.lutece.portal.service.portal.IThemeService
public String getUserTheme(javax.servlet.http.HttpServletRequest request)
getUserTheme
in interface fr.paris.lutece.portal.service.portal.IThemeService
request
- The HTTP requestpublic Collection<fr.paris.lutece.portal.business.style.Theme> getThemesList()
getThemesList
in interface fr.paris.lutece.portal.service.portal.IThemeService
public void setGlobalTheme(String strGlobalTheme)
setGlobalTheme
in interface fr.paris.lutece.portal.service.portal.IThemeService
strGlobalTheme
- 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.IThemeService
theme
- 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.IThemeService
theme
- The instance of the theme which contains the data to storepublic void remove(String strCodeTheme)
remove
in interface fr.paris.lutece.portal.service.portal.IThemeService
strCodeTheme
- The identifier of the theme to removepublic boolean isValidTheme(String strCodeTheme)
isValidTheme
in interface fr.paris.lutece.portal.service.portal.IThemeService
strCodeTheme
- The theme to checkCopyright © 2014 Mairie de Paris. All rights reserved.