Class ThemeResource
- java.lang.Object
-
- org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
-
- org.pentaho.platform.web.http.api.resources.ThemeResource
-
public class ThemeResource extends AbstractJaxRSResource
Resource manages themes for the platform
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
logger
-
Fields inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML
-
-
Constructor Summary
Constructors Constructor Description ThemeResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getActiveTheme()
Return the name of the active themeList<Theme>
getSystemThemes()
List the current supported themes in the platformjavax.ws.rs.core.Response
setTheme(String theme)
Set the current theme to the one provided in this request-
Methods inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
setHttpHeaders
-
-
-
-
Method Detail
-
getSystemThemes
public List<Theme> getSystemThemes()
List the current supported themes in the platform- Returns:
- list of themes
-
setTheme
public javax.ws.rs.core.Response setTheme(String theme)
Set the current theme to the one provided in this request- Parameters:
theme
- (theme to be changed to)- Returns:
-
getActiveTheme
public javax.ws.rs.core.Response getActiveTheme()
Return the name of the active theme- Returns:
- active theme
-
-