Package com.agiletec.plugins.jpwebmail.aps.system.services.webmail

Examples of com.agiletec.plugins.jpwebmail.aps.system.services.webmail.IWebMailManager.closeConnection()


      UserDetails currentUser = (UserDetails) session.getAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER);
      if (currentUser.getUsername().equals(SystemConstants.GUEST_USER_NAME)) return super.doStartTag();
      if (currentUser.getUsername().equals(SystemConstants.ADMIN_USER_NAME) && !this.isCheckAdmin()) return super.doStartTag();
      store = webmailManager.initInboxConnection(currentUser.getUsername(), currentUser.getPassword());
    } catch (Throwable t) {
      webmailManager.closeConnection(store);
      this.pageContext.setAttribute(this.getVar(), info);
      ApsSystemUtils.logThrowable(t, this, "doStartTag");
      return super.doStartTag();
    }
    try {
View Full Code Here


      this.pageContext.setAttribute(this.getVar(), info);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "doStartTag");
      throw new JspException("Errore inizializzazione tag", t);
    } finally {
      webmailManager.closeConnection(store);
    }
    return super.doStartTag();
  }
 
  @Override
View Full Code Here

    if (null == store) return "noStore";
    IWebMailBaseAction webMailAction = (IWebMailBaseAction) invocation.getAction();
    webMailAction.setStore(store);
    String result = invocation.invoke();
    webMailAction.closeFolders();
    webmailManager.closeConnection(store);
    return result;
  }
 
  private Store getStore(IWebMailManager webmailManager) {
    HttpSession session = ServletActionContext.getRequest().getSession();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.