public class ExchangeAccountDaoImpl extends Object
| 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 String |
folderCacheKeyPrefix |
protected static String |
GET_FOLDER_SOAP_ACTION |
protected static String |
GET_ITEM_SOAP_ACTION |
protected org.apache.commons.logging.Log |
log |
protected static String |
ROOT_SOAP_ACTION |
protected static String |
UPDATE_ITEM_SOAP_ACTION |
| Constructor and Description |
|---|
ExchangeAccountDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccountSummaryCache(String username,
String mailAccount) |
void |
deleteMessages(String[] uuids)
Delete the list of messages from Exchange.
|
AccountSummary |
fetchAccountSummaryFromStore(MailStoreConfiguration config,
String username,
String mailAccount,
int start,
int max,
String folder)
Performs the heavy-lifting of
IEmailAccountService but in a way
that exposes Exchange implementation details. |
List<ExchangeFolderDto> |
getAllUserInboxFolders()
Gets all the user's inbox folders.
|
EmailMessage |
getMessage(String uuid,
MailStoreConfiguration storeConfig)
Gets a message from the Exchange server.
|
ItemIdType |
getMessageChangeKey(String uuid) |
void |
setCredentialsService(IExchangeCredentialsService credentialsService) |
void |
setFolderCache(net.sf.ehcache.Cache folderCache) |
void |
setFolderCacheKeyGenerator(IUsernameCacheKeyGenerator folderCacheKeyGenerator) |
void |
setFolderCacheKeyPrefix(String folderCacheKeyPrefix) |
void |
setIdCache(net.sf.ehcache.Cache idCache) |
void |
setIdCacheKeyGenerator(IMessageCacheKeyGenerator idCacheKeyGenerator) |
void |
setLinkServiceRegistry(ILinkServiceRegistry linkServiceRegistry) |
void |
setMessageReadStatus(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 final org.apache.commons.logging.Log log
protected String folderCacheKeyPrefix
public void setRegexFoldernameExclusionPatterns(List<String> regexFoldernameExclusionPatterns)
public void setFolderCache(net.sf.ehcache.Cache folderCache)
public void setFolderCacheKeyGenerator(IUsernameCacheKeyGenerator 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(IExchangeCredentialsService credentialsService)
@TriggersRemove(cacheName="inboxCache",
keyGenerator=@KeyGenerator(name="StringCacheKeyGenerator",properties=@Property(name="includeMethod",value="false")))
public void clearAccountSummaryCache(String username,
String mailAccount)
@Cacheable(cacheName="inboxCache",
selfPopulating=true,
keyGenerator=@KeyGenerator(name="StringCacheKeyGenerator",properties=@Property(name="includeMethod",value="false")))
public AccountSummary fetchAccountSummaryFromStore(MailStoreConfiguration config,
@PartialCacheKey
String username,
@PartialCacheKey
String mailAccount,
int start,
int max,
String folder)
throws EmailPreviewException
IEmailAccountService but in a way
that exposes Exchange implementation details. Caching annotations can be
wrapped around these methods.username - Portal usernamemailAccount - Email accountstart - Index of the first expected messagemax - Maximum size of the collection of messages in the
returned AccountSummary objectEmailPreviewExceptionpublic EmailMessage getMessage(String uuid, MailStoreConfiguration storeConfig)
uuid - MessagestoreConfig - mail configurationpublic ItemIdType getMessageChangeKey(String uuid)
public void deleteMessages(String[] uuids)
uuids - uuids if the messages to deletepublic void setMessageReadStatus(String[] uuids, boolean read)
uuids - uuids of the messages to change the read status ofread - true to indicate message has been readpublic List<ExchangeFolderDto> getAllUserInboxFolders()
Copyright © 2013 Jasig. All Rights Reserved.