public Session getSession() { return exec().getSession(); }
public void cleanup(Execution exec, Execution parent, List errs) throws Exception { Session sess = exec.getSession(); //enforce GAE to write session //enforce Weblogic to sync session if (sess != null) sess.setAttribute(Attributes.ZK_SESSION, sess.getAttribute(Attributes.ZK_SESSION)); }
public boolean remove(String name, String scope) { final Execution exec = Executions.getCurrent(); if (exec == null) throw new IllegalStateException("Not in an execution"); if (EventQueues.DESKTOP.equals(scope)) return remove0(name, exec.getDesktop()); if (EventQueues.APPLICATION.equals(scope)) return remove0(name, exec.getDesktop().getWebApp()); if (EventQueues.SESSION.equals(scope)) return remove0(name, exec.getSession()); return false; }
/** * Set the location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog. * @param filebrowserFlashBrowseUrl */ public void setFilebrowserFlashBrowseUrl(String filebrowserFlashBrowseUrl) { boolean isSetted = false; if (!Objects.equals(_filebrowserFlashBrowseUrl, filebrowserFlashBrowseUrl)) { this._filebrowserFlashBrowseUrl = filebrowserFlashBrowseUrl; String url = String.valueOf(new EncodedURL(filebrowserFlashBrowseUrl).getValue()); Executions.getCurrent().getSession().setAttribute("filebrowserFlashBrowseUrl"+this.getUuid(), url); isSetted = true; } smartUpdate("filebrowserFlashBrowseUrl", isSetted);//won't send the url info to client }
/** * Set the location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog. * @param filebrowserImageBrowseUrl */ public void setFilebrowserImageBrowseUrl(String filebrowserImageBrowseUrl) { boolean isSetted = false; if (!Objects.equals(_filebrowserImageBrowseUrl, filebrowserImageBrowseUrl)) { this._filebrowserImageBrowseUrl = filebrowserImageBrowseUrl; String url = String.valueOf(new EncodedURL(filebrowserImageBrowseUrl).getValue()); Executions.getCurrent().getSession().setAttribute("filebrowserImageBrowseUrl"+this.getUuid(),url); isSetted = true; } smartUpdate("filebrowserImageBrowseUrl", isSetted);//won't send the url info to client }
/** * Set the location of an external file browser, that should be launched when "Browse Server" button is pressed. * @param filebrowserBrowseUrl */ public void setFilebrowserBrowseUrl(String filebrowserBrowseUrl) { boolean isSetted = false; if (!Objects.equals(_filebrowserBrowseUrl, filebrowserBrowseUrl)) { this._filebrowserBrowseUrl = filebrowserBrowseUrl; String url = String.valueOf(new EncodedURL(filebrowserBrowseUrl).getValue()); Executions.getCurrent().getSession().setAttribute("filebrowserBrowseUrl"+this.getUuid(), url); isSetted = true; } smartUpdate("filebrowserBrowseUrl", isSetted);//won't send the url info to client }
public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); timer.setDelay(execution.getSession().getMaxInactiveInterval() * 500); savedRequest = (SavedRequest) session.removeAttribute(org.carewebframework.security.spring.Constants.SAVED_REQUEST); AuthenticationException authError = (AuthenticationException) session