m_sessionManager.updateSessionInfo(cms, req); } catch (CmsRoleViolationException rv) {
OpenCmsCore.getInstance().initCmsContextForUI(request, response, this); super.service(request, response); OpenCms.getSessionManager().updateSessionInfo(getCmsObject(), request);
/** * Changes to the given site. Will update session and workplace settings.<p> * * @param siteRoot the site to change to */ public void changeSite(String siteRoot) { if (!getCmsObject().getRequestContext().getSiteRoot().equals(siteRoot)) { getCmsObject().getRequestContext().setSiteRoot(siteRoot); getWorkplaceSettings().setSite(siteRoot); OpenCms.getSessionManager().updateSessionInfo(getCmsObject(), getHttpSession()); } }
/** * Displays a resource from the OpenCms by writing the result to the provided * Servlet response output stream.<p> * * @param req the current servlet request * @param res the current servlet response */ protected void showResource(HttpServletRequest req, HttpServletResponse res) { CmsObject cms = null; try { cms = initCmsObject(req, res); // user is initialized, now deliver the requested resource CmsResource resource = initResource(cms, cms.getRequestContext().getUri(), req, res); if (resource != null) { // a file was read, go on process it m_resourceManager.loadResource(cms, resource, req, res); m_sessionManager.updateSessionInfo(cms, req); } } catch (Throwable t) { errorHandling(cms, req, res, t); } }
CmsWorkplaceManager.SESSION_WORKPLACE_SETTINGS, settings); OpenCms.getSessionManager().updateSessionInfo(newCms, request);
/** * Changes to the given project. Will update session and workplace settings.<p> * * @param project the project to change to */ public void changeProject(CmsProject project) { CmsObject cms = getCmsObject(); if (!cms.getRequestContext().getCurrentProject().equals(project)) { cms.getRequestContext().setCurrentProject(project); getWorkplaceSettings().setProject(project.getUuid()); OpenCms.getSessionManager().updateSessionInfo(cms, getHttpSession()); if (!project.isOnlineProject()) { setAttribute(LAST_OFFLINE_PROJECT, project); } } }
m_sessionManager.updateSessionInfo(cms, req);
OpenCms.getSessionManager().updateSessionInfo(getCmsObject(), getRequest()); OpenCms.getSessionManager().sendBroadcast(null, loginMessage.getMessage(), user);
context.getRemoteAddress())); OpenCms.getSessionManager().updateSessionInfo( currentCms, (HttpServletRequest)VaadinService.getCurrentRequest());