Package jadex.platform.service.email
Class SubscriptionInfo
- java.lang.Object
- 
- jadex.platform.service.email.SubscriptionInfo
 
- 
 public class SubscriptionInfo extends java.lang.ObjectInfo struct for email subscriptions.
- 
- 
Field SummaryFields Modifier and Type Field Description protected EmailAccountaccountThe account.protected IFilter<Email>filterThe filter.protected booleanfullconvFlag if full email conversion is necessary for filtering.protected Emaillastseenmsgprotected intlastseennoprotected inttotalThe number of messages in the folder.
 - 
Constructor SummaryConstructors Constructor Description SubscriptionInfo(IFilter<Email> filter, EmailAccount account, boolean fullconv)Create a new subscription info.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectParts(javax.mail.Multipart multipart, java.util.List<java.lang.String> contents, java.util.List<java.lang.Object> attachments)protected java.lang.String[]convertAddresses(javax.mail.Address[] addrs)Convert email addresses to strings.protected EmailconvertBodyMessage(javax.mail.Message msg, Email email)Convert an email message to the simple jadex email format.protected EmailconvertHeaderMessage(javax.mail.Message msg, Email email)Convert an email message to the simple jadex email format.protected EmailconvertMessage(javax.mail.Message msg)Convert an email message to the simple jadex email format.protected EmailconvertSubjectMessage(javax.mail.Message msg, Email email)Convert an email message to the simple jadex email format.EmailAccountgetAccount()Get the account.IFilter<Email>getFilter()Get the filter.EmailgetLastSeenMsg()Get the lastseenmsg.intgetLastSeenNo()Get the lastseenno.java.util.List<Email>getNewEmails()Fetch new emails from the inbox.intgetTotal()Get the total.voidsetAccount(EmailAccount account)Set the account.voidsetFilter(IFilter<Email> filter)Set the filter.voidsetLastSeenMsg(Email lastseenmsg)Set the lastseenmsg.voidsetLastSeenNo(int lastseenno)Set the lastseenno.voidsetTotal(int total)Set the total.
 
- 
- 
- 
Field Detail- 
accountprotected EmailAccount account The account.
 - 
fullconvprotected boolean fullconv Flag if full email conversion is necessary for filtering.
 - 
totalprotected int total The number of messages in the folder.
 - 
lastseennoprotected int lastseenno 
 - 
lastseenmsgprotected Email lastseenmsg 
 
- 
 - 
Constructor Detail- 
SubscriptionInfopublic SubscriptionInfo(IFilter<Email> filter, EmailAccount account, boolean fullconv) Create a new subscription info.
 
- 
 - 
Method Detail- 
setFilterpublic void setFilter(IFilter<Email> filter) Set the filter.- Parameters:
- filter- The filter to set.
 
 - 
getAccountpublic EmailAccount getAccount() Get the account.- Returns:
- The account.
 
 - 
setAccountpublic void setAccount(EmailAccount account) Set the account.- Parameters:
- account- The account to set.
 
 - 
getTotalpublic int getTotal() Get the total. return The total.
 - 
setTotalpublic void setTotal(int total) Set the total.- Parameters:
- total- The total to set.
 
 - 
getLastSeenNopublic int getLastSeenNo() Get the lastseenno. return The lastseenno.
 - 
setLastSeenNopublic void setLastSeenNo(int lastseenno) Set the lastseenno.- Parameters:
- lastseenno- The lastseenno to set.
 
 - 
getLastSeenMsgpublic Email getLastSeenMsg() Get the lastseenmsg. return The lastseenmsg.
 - 
setLastSeenMsgpublic void setLastSeenMsg(Email lastseenmsg) Set the lastseenmsg.- Parameters:
- lastseenmsg- The lastseenmsg to set.
 
 - 
getNewEmailspublic java.util.List<Email> getNewEmails() Fetch new emails from the inbox.
 - 
convertMessageprotected Email convertMessage(javax.mail.Message msg) Convert an email message to the simple jadex email format.
 - 
convertSubjectMessageprotected Email convertSubjectMessage(javax.mail.Message msg, Email email) Convert an email message to the simple jadex email format.
 - 
convertHeaderMessageprotected Email convertHeaderMessage(javax.mail.Message msg, Email email) Convert an email message to the simple jadex email format.
 - 
convertBodyMessageprotected Email convertBodyMessage(javax.mail.Message msg, Email email) Convert an email message to the simple jadex email format.
 - 
collectPartsprotected void collectParts(javax.mail.Multipart multipart, java.util.List<java.lang.String> contents, java.util.List<java.lang.Object> attachments) throws javax.mail.MessagingException, java.io.IOException- Throws:
- javax.mail.MessagingException
- java.io.IOException
 
 - 
convertAddressesprotected java.lang.String[] convertAddresses(javax.mail.Address[] addrs) Convert email addresses to strings.
 
- 
 
-