public void put(String name, Object value) { action.setVmReference(name, value, m_req); } }
public void put(String name, Object value) { action.setVmReference(name, value, m_req); } }
/** * Setup the vm context for a courier * * @param request */ protected void setVmCourier(HttpServletRequest request, int refresh) { // the url for the chat courier Placement placement = ToolManager.getCurrentPlacement(); if (placement != null) { String userId = SessionManager.getCurrentSessionUserId(); StringBuilder url = new StringBuilder(Web.serverUrl(request)); url.append("/courier/"); url.append(placement.getId()); url.append("?userId="); url.append(userId); setVmReference("courier", url.toString(), request); setVmReference("courierTimeout", Integer.toString(refresh), request); } }
/** * Setup the vm context for a courier * * @param request */ protected void setVmCourier(HttpServletRequest request, int refresh) { // the url for the chat courier Placement placement = ToolManager.getCurrentPlacement(); if (placement != null) { String userId = SessionManager.getCurrentSessionUserId(); StringBuilder url = new StringBuilder(Web.serverUrl(request)); url.append("/courier/"); url.append(placement.getId()); url.append("?userId="); url.append(userId); setVmReference("courier", url.toString(), request); setVmReference("courierTimeout", Integer.toString(refresh), request); } }
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) { HttpServletRequest req = rundata.getRequest(); Session session = SessionManager.getCurrentSession(); if (getVmReference("is_wireless_device", req) == null) { Object c = session.getAttribute("is_wireless_device"); setVmReference("is_wireless_device", c, req); } // Set a CSRF token for velocity-based forms if (getVmReference(SAKAI_CSRF_TOKEN, req) == null) { Object csrfToken = session.getAttribute(UsageSessionService.SAKAI_CSRF_SESSION_ATTRIBUTE); setVmReference(SAKAI_CSRF_TOKEN, csrfToken, req); } }
setVmReference("config", ServerConfigurationService.getInstance(), request); setVmReference("pid", getPid(request), request); setVmReference("portalCdnQuery", query, request); setVmReference("topRefresh", Boolean.TRUE, request); session.removeAttribute(ATTR_TOP_REFRESH); if (ids != null) setVmReference("frameRefresh", ids, request); session.removeAttribute(ATTR_FRAME_REFRESH); if (focusPath != null) setVmReference("focusChange", focusPath, request); session.removeAttribute(ATTR_FRAME_FOCUS); if (tool != null) setVmReference("toolTitle", tool.getTitle(), request);
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) { HttpServletRequest req = rundata.getRequest(); Session session = SessionManager.getCurrentSession(); if (getVmReference("is_wireless_device", req) == null) { Object c = session.getAttribute("is_wireless_device"); setVmReference("is_wireless_device", c, req); } // Set a CSRF token for velocity-based forms if (getVmReference(SAKAI_CSRF_TOKEN, req) == null) { Object csrfToken = session.getAttribute(UsageSessionService.SAKAI_CSRF_SESSION_ATTRIBUTE); setVmReference(SAKAI_CSRF_TOKEN, csrfToken, req); } }
setVmReference("config", ServerConfigurationService.getInstance(), request); setVmReference("pid", getPid(request), request); setVmReference("portalCdnQuery", query, request); setVmReference("topRefresh", Boolean.TRUE, request); session.removeAttribute(ATTR_TOP_REFRESH); if (ids != null) setVmReference("frameRefresh", ids, request); session.removeAttribute(ATTR_FRAME_REFRESH); if (focusPath != null) setVmReference("focusChange", focusPath, request); session.removeAttribute(ATTR_FRAME_FOCUS); if (tool != null) setVmReference("toolTitle", tool.getTitle(), request);
setVmReference(ALERT_ATTR, alert, req); setVmReference("alertMessage", buf.toString(), req); setVmReference("flashNotif", sbNotif.toString(), req); setVmReference("flashNotifCloseTitle",rb.getString("flashNotifCloseTitle"),req); setVmReference("validator", m_validator, req);
setVmReference(ALERT_ATTR, alert, req); setVmReference("alertMessage", buf.toString(), req); setVmReference("flashNotif", sbNotif.toString(), req); setVmReference("flashNotifCloseTitle",rb.getString("flashNotifCloseTitle"),req); setVmReference("validator", m_validator, req);