com.liferay.portlet.mail.util.multiaccount
Class MailAccounts

java.lang.Object
  extended bycom.liferay.portlet.mail.util.multiaccount.MailAccounts

public class MailAccounts
extends java.lang.Object

View Source

Handles all the mail accounts that belong to the current user.

Author:
Jorge Ferrer

Field Summary
static java.lang.String ACCOUNT_FINDER_PASSWORD
           
 
Constructor Summary
MailAccounts()
           
 
Method Summary
static MailAccount getCurrentAccount(javax.portlet.ActionRequest req)
           
static MailAccount getCurrentAccount(javax.servlet.http.HttpServletRequest req)
           
static void setAccount(javax.servlet.http.HttpServletRequest req, java.lang.String accountName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCOUNT_FINDER_PASSWORD

public static final java.lang.String ACCOUNT_FINDER_PASSWORD
Constructor Detail

MailAccounts

public MailAccounts()
Method Detail

getCurrentAccount

public static MailAccount getCurrentAccount(javax.servlet.http.HttpServletRequest req)
                                     throws MailAccountsException
Throws:
MailAccountsException

getCurrentAccount

public static MailAccount getCurrentAccount(javax.portlet.ActionRequest req)
                                     throws MailAccountsException
Throws:
MailAccountsException

setAccount

public static void setAccount(javax.servlet.http.HttpServletRequest req,
                              java.lang.String accountName)
                       throws MailAccountsException
Throws:
MailAccountsException