use of org.pentaho.platform.web.http.session.PentahoHttpSession in project pentaho-platform by pentaho.
the class HttpSessionPentahoSessionIntegrationFilter method generatePentahoSession.
protected IPentahoSession generatePentahoSession(final HttpServletRequest httpRequest) {
HttpSession httpSession = httpRequest.getSession(false);
IPentahoSession pentahoSession = null;
if (httpSession != null) {
pentahoSession = new PentahoHttpSession(null, httpSession, httpRequest.getLocale(), null);
} else {
pentahoSession = new NoDestroyStandaloneSession(null);
}
if (callSetAuthenticatedForAnonymousUsers) {
pentahoSession.setAuthenticated(getAnonymousUser());
}
ITempFileDeleter deleter = PentahoSystem.get(ITempFileDeleter.class, pentahoSession);
if (deleter != null) {
pentahoSession.setAttribute(ITempFileDeleter.DELETER_SESSION_VARIABLE, deleter);
}
return pentahoSession;
}
Aggregations