Class ThemeResource
java.lang.Object
org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
org.pentaho.platform.web.http.api.resources.ThemeResource
Resource manages themes for the platform
-
Field Summary
FieldsFields inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseReturn the name of the active themeList the current supported themes in the platformjakarta.ws.rs.core.ResponseSet the current theme to the one provided in this requestMethods inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
setHttpHeaders
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
ThemeResource
public ThemeResource()
-
-
Method Details
-
getSystemThemes
@GET @Path("/list") @Produces({"application/json","application/xml"}) public ThemeWrapper getSystemThemes()List the current supported themes in the platform- Returns:
- list of themes
-
setTheme
@POST @Path("/set") @Consumes("*/*") @Produces("text/plain") public jakarta.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
@GET @Path("/active") @Produces("text/plain") public jakarta.ws.rs.core.Response getActiveTheme()Return the name of the active theme- Returns:
- active theme
-