com.funambol.email.items.manager
Class EntityManagerFilter
java.lang.Object
com.funambol.email.items.manager.EntityManager
com.funambol.email.items.manager.EntityManagerFilter
- Direct Known Subclasses:
- ImapEntityManager, PopEntityManager
public class EntityManagerFilter
- extends EntityManager
Filter class.
Method Summary |
ItemMessage |
getH(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
EmailFilter filter)
returns only header |
ItemMessage |
getHB(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
int numBytes,
EmailFilter filter)
returns header and body with byte quatity limitation |
ItemMessage |
getHBA(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
int numBytes,
EmailFilter filter)
if numBytes = -1 it returns all parts of the message
(header, body, attachements) without byte quatity limitation. |
Methods inherited from class com.funambol.email.items.manager.EntityManager |
checkMessageIDforDrafts, createFoundationFolder, createFoundationMail, createMessage, createMessageWithoutSignature, createMessageWithSignature, getAllEmails, getEmailFromClause, hasMatchedDate, hasMatchedSize, insertCustomFolder, insertDefaultFolder, insertInvalidItem, isEmail, isEmailInFilter, sendEmail, setItemFolder, setItemMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityManagerFilter
public EntityManagerFilter()
getH
public ItemMessage getH(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
EmailFilter filter)
throws EntityException
- returns only header
- Parameters:
session
- opened mail server sessionFID
- parent folder idFMID
- mail id in the foldermsg
- Messagestatus
- status of the item; charloc
- Locale
- Returns:
- ItemMessage
- Throws:
EntityException
getHB
public ItemMessage getHB(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
int numBytes,
EmailFilter filter)
throws EntityException
- returns header and body with byte quatity limitation
- Parameters:
session
- opened mail server sessionFID
- parent folder idFMID
- mail id in the foldermsg
- Messagestatus
- status of the item; charloc
- LocalenumBytes
- int
- Returns:
- ItemMessage
- Throws:
EntityException
getHBA
public ItemMessage getHBA(javax.mail.Session session,
java.lang.String FID,
java.lang.String FMID,
javax.mail.Message msg,
char status,
java.util.Locale loc,
int numBytes,
EmailFilter filter)
throws EntityException
- if numBytes = -1 it returns all parts of the message
(header, body, attachements) without byte quatity limitation.
if messageSize <= numBytes it returns all parts of the message
(header, body, attachements)
otherwise it returns all parts of the message
(header, body, attachements) but there is the byte number limitation
- Parameters:
session
- opened mail server sessionFID
- parent folder idFMID
- mail id in the foldermsg
- Messagestatus
- status of the item; charloc
- LocalenumBytes
- int
- Returns:
- ItemMessage
- Throws:
EntityException
Copyright © 2005-2006 Funambol.