Class SystemResource
java.lang.Object
org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
org.pentaho.platform.web.http.api.resources.SystemResource
This api provides methods for discovering information about the system
- Author:
- pminutillo
-
Field Summary
Fields inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getAll()
Returns all users, roles, and ACLs in an XML document.javax.ws.rs.core.Response
Return JSON string reporting which authentication provider is currently in use Response sample: { "authenticationType": "JCR_BASED_AUTHENTICATION" }javax.ws.rs.core.Response
Retrieves the list of supported content type in the platformjavax.ws.rs.core.Response
Return the server side localeReturns a list of TimeZones ensuring that the server (default) timezone is at the top of the list (0th element)javax.ws.rs.core.Response
setLocaleOverride
(String locale) Apply the selected locale to the user consoleMethods inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
setHttpHeaders
-
Constructor Details
-
SystemResource
public SystemResource() -
SystemResource
public SystemResource(org.pentaho.platform.api.engine.ISystemConfig systemConfig)
-
-
Method Details
-
getAll
Returns all users, roles, and ACLs in an XML document. Moved here from now removed SystemAllResource class Response Sample:joe Admin Update 8 - Returns:
- Response containing roles, users, and acls
- Throws:
Exception
-
getAuthenticationProvider
Return JSON string reporting which authentication provider is currently in use Response sample: { "authenticationType": "JCR_BASED_AUTHENTICATION" }- Returns:
- AuthenticationProvider represented as JSON response
- Throws:
Exception
-
getTimeZones
Returns a list of TimeZones ensuring that the server (default) timezone is at the top of the list (0th element)- Returns:
- a list of TimeZones ensuring that the server (default) timezone is at the top of the list (0th element)
-
getLocale
public javax.ws.rs.core.Response getLocale()Return the server side locale- Returns:
- server's locale
-
setLocaleOverride
Apply the selected locale to the user console- Parameters:
locale
- (user console's locale)- Returns:
-
getExecutableTypes
public javax.ws.rs.core.Response getExecutableTypes()Retrieves the list of supported content type in the platform- Returns:
- list of
ExecutableFileTypeDto
-