|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.emailpreview.dao.impl.EmailAccountDaoImpl
@Component public class EmailAccountDaoImpl
A Data Access Object (DAO) for retrieving email account information. Currently all the information retrieved is related to the user's inbox.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
EmailAccountDaoImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected EmailMessageContent |
getContentString(Object content,
String mimeType)
|
protected List<EmailMessage> |
getEmailMessages(Folder mailFolder,
int pageStart,
int messageCount)
|
protected int |
getTotalEmailMessageCount(Folder inbox)
Get the total number of email messages in the supplied folder. |
protected int |
getUnreadEmailMessageCount(Folder inbox)
Get the total number of unread email messages in the supplied folder. |
protected boolean |
isHtml(String mimeType)
Determine if the supplied MIME type represents HTML content. |
AccountInfo |
retrieveEmailAccountInfo(MailStoreConfiguration storeConfig,
Authenticator auth,
int start,
int messageCount)
Retrieve a list of recent email from the mail store, as well as a summary of the email account's current state. |
EmailMessage |
retrieveMessage(MailStoreConfiguration storeConfig,
Authenticator auth,
int messageNum)
Retrieve an individual message from the mail store. |
void |
setApplicationContext(ApplicationContext ctx)
|
void |
setSecurityFile(String path)
Set the file path to the Anti-samy policy file to be used for cleaning strings. |
protected EmailMessage |
wrapMessage(Message currentMessage,
boolean populateContent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public EmailAccountDaoImpl()
| Method Detail |
|---|
public void setApplicationContext(ApplicationContext ctx)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setSecurityFile(String path)
path -
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public AccountInfo retrieveEmailAccountInfo(MailStoreConfiguration storeConfig,
Authenticator auth,
int start,
int messageCount)
throws EmailPreviewException
IEmailAccountDao
retrieveEmailAccountInfo in interface IEmailAccountDaoEmailPreviewException
protected List<EmailMessage> getEmailMessages(Folder mailFolder,
int pageStart,
int messageCount)
throws MessagingException,
IOException,
org.owasp.validator.html.ScanException,
org.owasp.validator.html.PolicyException
MessagingException
IOException
org.owasp.validator.html.ScanException
org.owasp.validator.html.PolicyException
public EmailMessage retrieveMessage(MailStoreConfiguration storeConfig,
Authenticator auth,
int messageNum)
IEmailAccountDao
retrieveMessage in interface IEmailAccountDao
protected EmailMessage wrapMessage(Message currentMessage,
boolean populateContent)
throws MessagingException,
IOException,
org.owasp.validator.html.ScanException,
org.owasp.validator.html.PolicyException
MessagingException
IOException
org.owasp.validator.html.ScanException
org.owasp.validator.html.PolicyException
protected EmailMessageContent getContentString(Object content,
String mimeType)
throws IOException,
MessagingException
IOException
MessagingExceptionprotected boolean isHtml(String mimeType)
mimeType -
protected int getTotalEmailMessageCount(Folder inbox)
throws MessagingException
inbox -
MessagingException
protected int getUnreadEmailMessageCount(Folder inbox)
throws MessagingException
inbox -
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||