Package de.uplanet.lucy.server.newsagent
Class RecipientFilter
- java.lang.Object
-
- de.uplanet.lucy.server.newsagent.AbstractFilter
-
- de.uplanet.lucy.server.newsagent.RecipientFilter
-
- All Implemented Interfaces:
IFilter
@Scriptable public class RecipientFilter extends AbstractFilter
-
-
Constructor Summary
Constructors Constructor Description RecipientFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(List<Message> p_from, List<Message> p_to)
Do the filtering, operating on array lists.boolean
needsSqlPostProcessing()
Indicates if post-processing is needed after SQL retrieval.boolean
pass(Message p_message)
Decide if the given message passes the filter.String
sqlQuery()
Provide a SQL search query.-
Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter
forConnection, forUser
-
-
-
-
Method Detail
-
sqlQuery
public String sqlQuery()
Description copied from interface:IFilter
Provide a SQL search query.- Returns:
- A SQL query, or
null
if the filter cannot be applied at database level.
-
needsSqlPostProcessing
public boolean needsSqlPostProcessing()
Description copied from interface:IFilter
Indicates if post-processing is needed after SQL retrieval.- Returns:
- Always
false
. - See Also:
IFilter.needsSqlPostProcessing()
-
pass
public boolean pass(Message p_message)
Decide if the given message passes the filter.- Parameters:
p_message
- The message to be filtered.- Returns:
true
for all non-null
messages orfalse
if the message parameter isnull
.- See Also:
IFilter.pass(Message)
-
filter
public void filter(List<Message> p_from, List<Message> p_to)
Description copied from interface:IFilter
Do the filtering, operating on array lists.- Specified by:
filter
in interfaceIFilter
- Overrides:
filter
in classAbstractFilter
- Parameters:
p_from
- Collection of messages to be filtered.p_to
- The filtered collection.
-
-