|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.portal.ThemesService
public final class ThemesService
ThemesService
| Field Summary | |
|---|---|
static String |
GLOBAL_THEME
|
| Method Summary | |
|---|---|
static Theme |
create(Theme theme)
Create a new theme |
static String |
getGlobalTheme()
Returns the global theme |
static Theme |
getGlobalTheme(String strTheme)
Returns the global theme |
static Theme |
getGlobalThemeObject()
Returns the global theme Object |
static ReferenceList |
getPageThemes(Locale locale)
Returns a reference list which contains all the themes |
static Theme |
getTheme(PageData data,
javax.servlet.http.HttpServletRequest request)
Get the theme code depending of the different priorities. |
static ReferenceList |
getThemes()
Get the list of themes as a ReferenceList |
static Collection<Theme> |
getThemesList()
Get a collection of themes |
static String |
getUserTheme(javax.servlet.http.HttpServletRequest request)
Gets the theme selected by the user |
static boolean |
isAvailable()
Check if the theme service is available. |
static boolean |
isValidTheme(String strCodeTheme)
Check if the theme is valid |
static void |
remove(String strCodeTheme)
Remove a theme |
static void |
setGlobalTheme(String strGlobalTheme)
Sets the global theme |
static void |
setUserTheme(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strTheme)
Sets the users theme using a cookie |
static Theme |
update(Theme theme)
Update a theme |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GLOBAL_THEME
| Method Detail |
|---|
public static Theme getTheme(PageData data,
javax.servlet.http.HttpServletRequest request)
data - The PageData objectrequest - The HttpServletRequest
public static String getUserTheme(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static void setUserTheme(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strTheme)
request - The HTTP requestresponse - The HTTP responsestrTheme - The Theme codepublic static String getGlobalTheme()
public static Theme getGlobalThemeObject()
public static Theme getGlobalTheme(String strTheme)
strTheme - The theme
public static void setGlobalTheme(String strGlobalTheme)
strGlobalTheme - The global themepublic static ReferenceList getPageThemes(Locale locale)
locale - The Locale
public static boolean isAvailable()
plugin-theme is activatedplugin-theme is defined
public static Theme create(Theme theme)
theme - the theme
public static Theme update(Theme theme)
theme - the theme to update
public static void remove(String strCodeTheme)
strCodeTheme - the code themepublic static Collection<Theme> getThemesList()
public static ReferenceList getThemes()
ReferenceList
ReferenceListpublic static boolean isValidTheme(String strCodeTheme)
strCodeTheme - the code theme
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||