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) |
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) |
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) |
setHttpHeaders
protected 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 getSessionVariable(String key)
public javax.ws.rs.core.Response clearSessionVariable(String key)
public javax.ws.rs.core.Response registeredPlugins()
protected javax.ws.rs.core.Response buildOkResponse(Object entity)
Copyright © 2019 Hitachi Vantara. All rights reserved.