Class SessionResource
java.lang.Object
org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
org.pentaho.platform.web.http.api.resources.SessionResource
The SessionResource service lists the user's current workspace as well as the workspace folder path.
-
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 TypeMethodDescriptionReturns the current user's user name.Returns the current user's workspace folder path.doGetUserDir
(String user) Returns the workspace folder path for the selected user.protected org.pentaho.platform.api.engine.IPentahoSession
protected String
getUserHomeFolderPath
(String username) javax.ws.rs.core.Response
Methods inherited from class org.pentaho.platform.web.http.api.resources.AbstractJaxRSResource
setHttpHeaders
-
Constructor Details
-
SessionResource
public SessionResource()
-
-
Method Details
-
doGetCurrentUserDir
Returns the current user's workspace folder path.Example Request:
GET pentaho/api/session/userWorkspaceDir- Returns:
- String object containing the workspace folder path.
Example Response:
/home/admin/workspace
-
doGetCurrentUser
Returns the current user's user name.Example Request:
GET pentaho/api/session/userName- Returns:
- String object The current user name.
Example Response:
suzy
-
doGetUserDir
Returns the workspace folder path for the selected user.Example Request:
GET pentaho/api/session/workspaceDirForUser/admin- Parameters:
user
- String of the user name.- Returns:
- String object containing the workspace folder path.
Example Response:
workspace
-
setredirect
public javax.ws.rs.core.Response setredirect() -
getSession
protected org.pentaho.platform.api.engine.IPentahoSession getSession() -
getUserHomeFolderPath
-