public class UserConsoleResource extends AbstractJaxRSResource
| Modifier and Type | Field and Description |
|---|---|
protected static UserConsoleService |
userConsoleService |
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML| Constructor and Description |
|---|
UserConsoleResource() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response |
buildOkResponse(Object entity) |
javax.ws.rs.core.Response |
clearSessionVariable(String key)
Deletes the value of a session variable.
|
List<Setting> |
getAdminContent()
Returns the list of admin related settings
|
javax.ws.rs.core.Response |
getLocale()
Return the server side locale
|
List<Setting> |
getMantleSettings()
Return the current user console settings
|
List<Cube> |
getMondrianCatalogs()
Return the list of mondrian cubes in the platform
|
javax.ws.rs.core.Response |
getSessionVariable(String key)
Gets the value of a session variable.
|
javax.ws.rs.core.Response |
isAdministrator()
Returns whether the current user is an administrator.
|
javax.ws.rs.core.Response |
isAuthenticated()
Returns whether the user is sn authenticated user or not.
|
javax.ws.rs.core.Response |
registeredPlugins() |
javax.ws.rs.core.Response |
setLocaleOverride(String locale)
Apply the selected locale to the user console.
|
javax.ws.rs.core.Response |
setSessionVariable(String key,
String value)
Sets the value of a session variable.
|
setHttpHeadersprotected static UserConsoleService userConsoleService
public javax.ws.rs.core.Response isAdministrator()
Example Request:
GET pentaho/api/mantle/isAdministrator
Example Response:
true
public javax.ws.rs.core.Response isAuthenticated()
Example Request:
GET pentaho/api/mantle/isAuthenticated
Example Response:
true
public List<Setting> getAdminContent()
public List<Setting> getMantleSettings()
public List<Cube> getMondrianCatalogs()
public javax.ws.rs.core.Response setLocaleOverride(String locale)
locale - (user console's locale)public javax.ws.rs.core.Response getLocale()
public javax.ws.rs.core.Response setSessionVariable(String key, String value)
key - The name of the session variablevalue - The value of the session variablepublic javax.ws.rs.core.Response getSessionVariable(String key)
key - The name of the session variablepublic javax.ws.rs.core.Response clearSessionVariable(String key)
key - The name of the session variablepublic javax.ws.rs.core.Response registeredPlugins()
protected javax.ws.rs.core.Response buildOkResponse(Object entity)
Copyright © 2020 Hitachi Vantara. All rights reserved.