|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.mail.AbstractMessageFilter | +--com.compoze.mail.MessageFilter
Fields inherited from class com.compoze.mail.AbstractMessageFilter |
m_bFilterOr, m_bOr, m_filter |
Constructor Summary | |
MessageFilter()
Constructor. |
Method Summary | |
boolean |
accepts(IMessage message)
Checks if the filter accepts specified message. |
void |
clearReceivedDate()
Clears the sent date filter. |
void |
clearSentDate()
Clears the sent date filter. |
void |
clearSubject()
Clears the subject filter. |
com.compoze.ejb.persistence.database.IFilterRule |
getFilterRule()
Gets the filter rule associated with this message filter. |
javax.mail.search.SearchTerm |
getSearchTerm()
Gets the search term associated with this message filter. |
java.util.Date |
getSentDateEnd()
Gets the sent date end filter (if set). |
java.util.Date |
getSentDateStart()
Gets the sent date start filter (if set). |
java.lang.String |
getSubject()
Gets the subject filter (if set). |
boolean |
isReceivedDateSet()
Checks if the the received date filter is set. |
boolean |
isSentDateSet()
Checks if the the sent date filter is set. |
boolean |
isSubjectExact()
Checks if the subject exact filter is set. |
boolean |
isSubjectSet()
Checks if the subject filter is set. |
void |
setReceivedDate(java.util.Date startDate,
java.util.Date endDate)
Sets the received date filter to the specified date range. |
void |
setSentDate(java.util.Date startDate,
java.util.Date endDate)
Sets the sent date filter to the specified date range. |
void |
setSubject(java.lang.String sSubject)
Sets the subject filter. |
void |
setSubject(java.lang.String sSubject,
boolean bCaseSensitive,
boolean bExact)
Sets the subject filter. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class com.compoze.mail.AbstractMessageFilter |
acceptMessages, addFilter, compareDate, compareString, compareStringStartsWith, getFilter, setOr |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MessageFilter()
Method Detail |
public void setSubject(java.lang.String sSubject)
sSubject
- the string to filter bypublic void setSubject(java.lang.String sSubject, boolean bCaseSensitive, boolean bExact)
sSubject
- the string to filter bybCaseSensitive
- true
to be case sensitive; false
otherwisebExact
- true
to be an exact match; false
for containspublic void clearSubject()
public boolean isSubjectSet()
true
if the subject is set; false
otherwisepublic boolean isSubjectExact()
true
if the subject is exact; false
otherwisepublic java.lang.String getSubject()
null
if not setpublic void setSentDate(java.util.Date startDate, java.util.Date endDate)
startDate
- the start date (exclusive) (may not be null
)endDate
- the end date (exclusive) (may not be null
)public void clearSentDate()
public boolean isSentDateSet()
true
if the filter is set; false
otherwisepublic java.util.Date getSentDateStart()
null
if not setpublic java.util.Date getSentDateEnd()
null
if not setpublic void setReceivedDate(java.util.Date startDate, java.util.Date endDate)
startDate
- the start date (exclusive) (may not be null
)endDate
- the end date (exclusive) (may not be null
)public void clearReceivedDate()
public boolean isReceivedDateSet()
true
if the filter is set; false
otherwisepublic boolean accepts(IMessage message) throws MailException
AbstractMessageFilter
accepts
in class AbstractMessageFilter
com.compoze.mail.AbstractMessageFilter
message
- the message to checktrue
if the filter accepts the message; false
otherwisepublic javax.mail.search.SearchTerm getSearchTerm()
null
for no filteringpublic com.compoze.ejb.persistence.database.IFilterRule getFilterRule()
AbstractMessageFilter
getFilterRule
in class AbstractMessageFilter
com.compoze.mail.AbstractMessageFilter
null
for no filteringpublic java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |