com.liferay.portlet.mail.util.multiaccount
Class MailCache
java.lang.Object
com.liferay.portlet.mail.util.multiaccount.MailCache
public class MailCache
- extends java.lang.Object
View Source
- Author:
- Jorge Ferrer
Method Summary |
static void |
clearCache(javax.servlet.http.HttpSession ses)
|
static javax.mail.Store |
getStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix)
|
static java.util.Collection<MailAccount> |
getUserAccounts(long userId)
|
static void |
putStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix,
javax.mail.Store store)
|
static void |
putUserAccounts(long userId,
java.util.Collection<MailAccount> accounts)
|
static void |
removeStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix)
|
static void |
removeUserAccounts(long userId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailCache
public MailCache()
getStore
public static javax.mail.Store getStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix)
putStore
public static void putStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix,
javax.mail.Store store)
removeStore
public static void removeStore(javax.servlet.http.HttpSession ses,
java.lang.String accountPrefix)
getUserAccounts
public static java.util.Collection<MailAccount> getUserAccounts(long userId)
putUserAccounts
public static void putUserAccounts(long userId,
java.util.Collection<MailAccount> accounts)
removeUserAccounts
public static void removeUserAccounts(long userId)
clearCache
public static void clearCache(javax.servlet.http.HttpSession ses)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException