|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.emailpreview.dao.javamail.JavamailAccountService
@Component public final class JavamailAccountService
A Data Access Object (DAO) for retrieving email account information. Currently all the information retrieved is related to the user's inbox.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.portlet.emailpreview.dao.IEmailAccountService |
|---|
EXCHANGE_WEB_SERVICES, IMAP |
| Constructor Summary | |
|---|---|
JavamailAccountService()
|
|
| Method Summary | |
|---|---|
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. |
javax.mail.Folder[] |
getAllUserInboxFolders(javax.portlet.PortletRequest req)
|
EmailMessage |
getMessage(javax.portlet.PortletRequest req,
String messageId)
Retrieve an individual message from the mail store. |
boolean |
setSeenFlag(javax.portlet.PortletRequest req,
String[] messageIds,
boolean read)
Switch the value of the SEEN flag for the specified messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavamailAccountService()
| Method Detail |
|---|
public AccountSummary getAccountSummary(javax.portlet.PortletRequest req,
int start,
int max,
boolean refresh,
String folder)
throws EmailPreviewException
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 false
EmailPreviewException - On other errors
public EmailMessage getMessage(javax.portlet.PortletRequest req,
String messageId)
IEmailAccountService
getMessage in interface IEmailAccountServicereq - The current PortletRequestmessageId - messageId
public boolean deleteMessages(javax.portlet.PortletRequest req,
String[] messageIds)
IEmailAccountService
deleteMessages in interface IEmailAccountServicereq - The current PortletRequestmessageIds - List of messageIds to delete
public boolean setSeenFlag(javax.portlet.PortletRequest req,
String[] messageIds,
boolean read)
IEmailAccountService
setSeenFlag in interface IEmailAccountServicereq - The current PortletRequestread - The new value of the seen flag
public javax.mail.Folder[] getAllUserInboxFolders(javax.portlet.PortletRequest req)
getAllUserInboxFolders in interface IEmailAccountService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||