public class SessionResource extends AbstractJaxRSResource
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML
Constructor and Description |
---|
SessionResource() |
Modifier and Type | Method and Description |
---|---|
String |
doGetCurrentUser()
Returns the current user's user name.
|
String |
doGetCurrentUserDir()
Returns the current user's workspace folder path.
|
String |
doGetUserDir(String user)
Returns the workspace folder path for the selected user.
|
protected org.pentaho.platform.api.engine.IPentahoSession |
getSession() |
protected String |
getUserHomeFolderPath(String username) |
javax.ws.rs.core.Response |
setredirect() |
setHttpHeaders
public String doGetCurrentUserDir()
Example Request:
GET pentaho/api/session/userWorkspaceDir
Example Response:
/home/admin/workspace
public String doGetCurrentUser()
Example Request:
GET pentaho/api/session/userName
Example Response:
suzy
public String doGetUserDir(String user)
Example Request:
GET pentaho/api/session/workspaceDirForUser/admin
user
- String of the user name.Example Response:
workspace
public javax.ws.rs.core.Response setredirect()
protected org.pentaho.platform.api.engine.IPentahoSession getSession()
Copyright © 2021 Hitachi Vantara. All rights reserved.