public class SessionResource
extends java.lang.Object
Constructor and Description |
---|
SessionResource(<any> authenticatorService,
LocalizationServiceImpl localizationService) |
Modifier and Type | Method and Description |
---|---|
Response |
clearSession(HttpServletRequest req,
java.lang.String username,
java.lang.String password)
Clear logged in users session.
|
Response |
getSession(HttpServletRequest req,
java.lang.String username)
Get the session in the request
|
Response |
login(HttpServletRequest req,
java.lang.String username,
java.lang.String password)
Login to Saiku
|
Response |
logout(HttpServletRequest req)
Logout of the Session
|
public SessionResource(<any> authenticatorService, LocalizationServiceImpl localizationService)
public Response login(HttpServletRequest req, java.lang.String username, java.lang.String password)
req
- Servlet requestusername
- Usernamepassword
- Passwordpublic Response clearSession(HttpServletRequest req, java.lang.String username, java.lang.String password)
req
- Servlet requestusername
- Usernamepassword
- Passwordpublic Response getSession(HttpServletRequest req, java.lang.String username)
req
- The servlet requestpublic Response logout(HttpServletRequest req)
req
- The servlet request