com.funambol.email.items.manager
Class EntityManagerFilter

java.lang.Object
  extended bycom.funambol.email.items.manager.EntityManager
      extended bycom.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, timeStart, timeStop
 
Constructor Summary
EntityManagerFilter()
           
 
Method Summary
 ItemMessage get_H(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 get_HB(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 get_HBA(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, getAllEmails, getEmailFromClause, getMaxEmailNumber, hasMatchedDate, hasMatchedSize, insertCustomFolder, insertDefaultFolder, insertInvalidItem, isEmail, isEmailInFilter, sendEmail, setFlags, 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

get_H

public ItemMessage get_H(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

get_HB

public ItemMessage get_HB(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

get_HBA

public ItemMessage get_HBA(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 © 2003-2006 Funambol.