public class ExchangeAccountDaoImpl extends Object implements IMailAccountDao<ExchangeFolderDto>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DELETE_ITEM_SOAP_ACTION |
protected static String |
FIND_FOLDER_SOAP_ACTION |
protected static String |
FIND_ITEM_SOAP_ACTION |
protected static String |
GET_FOLDER_SOAP_ACTION |
protected static String |
GET_ITEM_SOAP_ACTION |
protected static QName |
REQUEST_SERVER_VERSION_QNAME |
protected static String |
ROOT_SOAP_ACTION |
protected static String |
UPDATE_ITEM_SOAP_ACTION |
| Constructor and Description |
|---|
ExchangeAccountDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteMessages(MailStoreConfiguration storeConfig,
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<ExchangeFolderDto> |
getAllUserInboxFolders(MailStoreConfiguration storeConfig)
Gets all the user's inbox folders.
|
EmailMessage |
getMessage(MailStoreConfiguration storeConfig,
String uuid)
Gets a message from the mail server.
|
ItemIdType |
getMessageChangeKey(String uuid,
MailStoreConfiguration config) |
void |
setAutoDiscoveryDao(org.jasig.portlet.emailpreview.dao.exchange.IExchangeAutoDiscoverDao autoDiscoveryDao) |
void |
setCredentialsService(ICredentialsProvider credentialsService) |
void |
setFolderCache(net.sf.ehcache.Cache folderCache) |
void |
setFolderCacheKeyGenerator(IMailAccountCacheKeyGenerator folderCacheKeyGenerator) |
void |
setFolderCacheKeyPrefix(String folderCacheKeyPrefix) |
void |
setIdCache(net.sf.ehcache.Cache idCache) |
void |
setIdCacheKeyGenerator(IMessageCacheKeyGenerator idCacheKeyGenerator) |
void |
setLinkServiceRegistry(ILinkServiceRegistry linkServiceRegistry) |
void |
setMarshaller(org.springframework.oxm.Marshaller marshaller) |
boolean |
setMessageReadStatus(MailStoreConfiguration storeConfig,
String[] uuids,
boolean read)
Sets the isRead status of the indicated messages to the indicated value.
|
void |
setMessageUtils(MessageUtils messageUtils) |
void |
setRegexFoldernameExclusionPatterns(List<String> regexFoldernameExclusionPatterns) |
void |
setWebServiceOperations(org.springframework.ws.client.core.WebServiceOperations webServiceOperations) |
protected static final String ROOT_SOAP_ACTION
protected static final String FIND_FOLDER_SOAP_ACTION
protected static final String GET_FOLDER_SOAP_ACTION
protected static final String FIND_ITEM_SOAP_ACTION
protected static final String GET_ITEM_SOAP_ACTION
protected static final String DELETE_ITEM_SOAP_ACTION
protected static final String UPDATE_ITEM_SOAP_ACTION
protected static final QName REQUEST_SERVER_VERSION_QNAME
public void setRegexFoldernameExclusionPatterns(List<String> regexFoldernameExclusionPatterns)
public void setFolderCache(net.sf.ehcache.Cache folderCache)
public void setFolderCacheKeyGenerator(IMailAccountCacheKeyGenerator folderCacheKeyGenerator)
public void setFolderCacheKeyPrefix(String folderCacheKeyPrefix)
public void setIdCache(net.sf.ehcache.Cache idCache)
public void setIdCacheKeyGenerator(IMessageCacheKeyGenerator idCacheKeyGenerator)
public void setWebServiceOperations(org.springframework.ws.client.core.WebServiceOperations webServiceOperations)
public void setLinkServiceRegistry(ILinkServiceRegistry linkServiceRegistry)
public void setMessageUtils(MessageUtils messageUtils)
public void setCredentialsService(ICredentialsProvider credentialsService)
public void setAutoDiscoveryDao(org.jasig.portlet.emailpreview.dao.exchange.IExchangeAutoDiscoverDao autoDiscoveryDao)
public void setMarshaller(org.springframework.oxm.Marshaller marshaller)
public AccountSummary fetchAccountSummaryFromStore(MailStoreConfiguration config, String username, String mailAccount, String folder, int start, int max)
IMailAccountDaofetchAccountSummaryFromStore in interface IMailAccountDao<ExchangeFolderDto>config - 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 storeConfig, String uuid)
IMailAccountDaogetMessage in interface IMailAccountDao<ExchangeFolderDto>storeConfig - mail configurationuuid - Messagepublic ItemIdType getMessageChangeKey(String uuid, MailStoreConfiguration config)
public boolean deleteMessages(MailStoreConfiguration storeConfig, String[] uuids)
IMailAccountDaodeleteMessages in interface IMailAccountDao<ExchangeFolderDto>uuids - uuids if the messages to deletepublic boolean setMessageReadStatus(MailStoreConfiguration storeConfig, String[] uuids, boolean read)
IMailAccountDaosetMessageReadStatus in interface IMailAccountDao<ExchangeFolderDto>uuids - uuids of the messages to change the read status ofread - true to indicate message has been readpublic List<ExchangeFolderDto> getAllUserInboxFolders(MailStoreConfiguration storeConfig)
IMailAccountDaogetAllUserInboxFolders in interface IMailAccountDao<ExchangeFolderDto>Copyright © 2014 Jasig. All Rights Reserved.