本文整理了Java中org.zkoss.zk.ui.Execution.getSession()
方法的一些代码示例,展示了Execution.getSession()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execution.getSession()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.Execution
类名称:Execution
方法名:getSession
[英]Returns the session this execution belongs to.
[中]返回此执行所属的会话。
代码示例来源:origin: org.zkoss.zk/zk
public Session getSession() {
return exec().getSession();
}
代码示例来源:origin: org.zkoss.zk/zkplus
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));
}
代码示例来源:origin: org.zkoss.zk/zk
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;
}
代码示例来源:origin: org.zkoss.zkforge/ckez
/**
* 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
}
代码示例来源:origin: org.zkoss.zkforge/ckez
/**
* 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
}
代码示例来源:origin: org.zkoss.zkforge/ckez
/**
* 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
}
代码示例来源:origin: org.carewebframework/org.carewebframework.security.spring.core
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
内容来源于网络,如有侵权,请联系作者删除!