public class EmailAccountService extends Object implements IEmailAccountService
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
EXCHANGE_WEB_SERVICES, IMAP| Constructor and Description |
|---|
EmailAccountService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteMessages(javax.portlet.PortletRequest req,
String[] messageIds)
Delete and expunge the specified massages from the store.
|
AccountSummary |
getAccountSummary(javax.portlet.PortletRequest req,
int start,
int max,
boolean refresh,
String folder)
Obtains the
AccountSummary object from the data store itself, or possibly from cache. |
List<javax.mail.Folder> |
getAllUserInboxFolders(javax.portlet.PortletRequest req) |
EmailMessage |
getMessage(javax.portlet.PortletRequest req,
String messageId)
Retrieve an individual message from the mail store.
|
void |
setAccountSummaryCacheKeyGenerator(IAccountSummaryCacheKeyGenerator accountSummaryCacheKeyGenerator) |
void |
setCredentialsService(ICredentialsProvider credentialsService) |
void |
setDao(IMailAccountDao dao) |
void |
setFolderCache(net.sf.ehcache.Cache folderCache) |
void |
setFolderCacheKeyGenerator(IMailAccountCacheKeyGenerator folderCacheKeyGenerator) |
void |
setFolderCacheKeyPrefix(String folderCacheKeyPrefix) |
void |
setInboxCache(net.sf.ehcache.Cache inboxCache) |
boolean |
setSeenFlag(javax.portlet.PortletRequest req,
String[] messageIds,
boolean read)
Switch the value of the SEEN flag for the specified messages.
|
public void setInboxCache(net.sf.ehcache.Cache inboxCache)
public void setAccountSummaryCacheKeyGenerator(IAccountSummaryCacheKeyGenerator accountSummaryCacheKeyGenerator)
public void setFolderCache(net.sf.ehcache.Cache folderCache)
public void setFolderCacheKeyGenerator(IMailAccountCacheKeyGenerator folderCacheKeyGenerator)
public void setFolderCacheKeyPrefix(String folderCacheKeyPrefix)
public void setDao(IMailAccountDao dao)
public void setCredentialsService(ICredentialsProvider credentialsService)
public AccountSummary getAccountSummary(javax.portlet.PortletRequest req, int start, int max, boolean refresh, String folder)
IEmailAccountServiceAccountSummary object from the data store itself, or possibly from cache.getAccountSummary in interface IEmailAccountServicereq - The current PortletRequestmax - The maximum number of messages (header info) that may be returned with the summaryrefresh - True if the concrete service implementation must not return cached data; otherwise falsepublic EmailMessage getMessage(javax.portlet.PortletRequest req, String messageId)
IEmailAccountServicegetMessage in interface IEmailAccountServicereq - The current PortletRequestmessageId - messageIdpublic boolean deleteMessages(javax.portlet.PortletRequest req,
String[] messageIds)
IEmailAccountServicedeleteMessages in interface IEmailAccountServicereq - The current PortletRequestmessageIds - List of messageIds to deletepublic boolean setSeenFlag(javax.portlet.PortletRequest req,
String[] messageIds,
boolean read)
IEmailAccountServicesetSeenFlag in interface IEmailAccountServicereq - The current PortletRequestread - The new value of the seen flagpublic List<javax.mail.Folder> getAllUserInboxFolders(javax.portlet.PortletRequest req)
getAllUserInboxFolders in interface IEmailAccountServiceCopyright © 2014 Jasig. All Rights Reserved.