com.funambol.email.items.manager
Class EntityManagerFilter

java.lang.Object
  extended by com.funambol.email.items.manager.EntityManager
      extended by com.funambol.email.items.manager.EntityManagerFilter
Direct Known Subclasses:
ImapEntityManager, PopEntityManager

public class EntityManagerFilter
extends EntityManager

Filter class.


Field Summary
 
Fields inherited from class com.funambol.email.items.manager.EntityManager
cmsw, ed, log, serverType, timeStart, timeStop
 
Constructor Summary
EntityManagerFilter()
           
 
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
 

Constructor Detail

EntityManagerFilter

public EntityManagerFilter()
Method Detail

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 session
FID - parent folder id
FMID - mail id in the folder
msg - Message
status - status of the item; char
loc - 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 session
FID - parent folder id
FMID - mail id in the folder
msg - Message
status - status of the item; char
loc - Locale
numBytes - 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 session
FID - parent folder id
FMID - mail id in the folder
msg - Message
status - status of the item; char
loc - Locale
numBytes - int
Returns:
ItemMessage
Throws:
EntityException


Copyright © 2005-2006 Funambol.