@Component public final class JavamailAccountDaoImpl extends Object implements IMailAccountDao
| Constructor and Description |
|---|
JavamailAccountDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
deleteMessages(MailStoreConfiguration config,
String[] uuids)
Delete the list of messages from Exchange.
|
AccountSummary |
fetchAccountSummaryFromStore(MailStoreConfiguration config,
String username,
String mailAccount,
String folder,
int start,
int max)
Obtains a summary of the email messages from the configured store (to/from/subject/date) and general
mailbox summary.
|
List<javax.mail.Folder> |
getAllUserInboxFolders(MailStoreConfiguration config)
Gets all the user's inbox folders.
|
EmailMessage |
getMessage(MailStoreConfiguration config,
String messageId)
Gets a message from the mail server.
|
void |
setCredentialsProvider(ICredentialsProvider credentialsProvider) |
boolean |
setMessageReadStatus(MailStoreConfiguration config,
String[] uuids,
boolean read)
Sets the isRead status of the indicated messages to the indicated value.
|
void |
setSecurityFile(String path)
Set the file path to the Anti-samy policy file to be used for cleaning
strings.
|
public void setCredentialsProvider(ICredentialsProvider credentialsProvider)
public void setSecurityFile(String path)
path - @PostConstruct public void afterPropertiesSet() throws Exception
Exceptionpublic AccountSummary fetchAccountSummaryFromStore(MailStoreConfiguration config, String username, String mailAccount, String folder, int start, int max)
IMailAccountDaofetchAccountSummaryFromStore in interface IMailAccountDaoconfig - mailstore configurationusername - Portal usernamemailAccount - Email accountfolder - mailbox folder to usestart - Index of the first expected messagemax - Maximum number of messages to returnpublic EmailMessage getMessage(MailStoreConfiguration config, String messageId)
IMailAccountDaogetMessage in interface IMailAccountDaoconfig - mail configurationmessageId - Messagepublic boolean deleteMessages(MailStoreConfiguration config, String[] uuids)
IMailAccountDaodeleteMessages in interface IMailAccountDaouuids - uuids if the messages to deletepublic boolean setMessageReadStatus(MailStoreConfiguration config, String[] uuids, boolean read)
IMailAccountDaosetMessageReadStatus in interface IMailAccountDaouuids - uuids of the messages to change the read status ofread - true to indicate message has been readpublic List<javax.mail.Folder> getAllUserInboxFolders(MailStoreConfiguration config)
IMailAccountDaogetAllUserInboxFolders in interface IMailAccountDaoCopyright © 2014 Jasig. All Rights Reserved.