Package de.uplanet.lucy.server.newsagent
Class IdentityFilter
java.lang.Object
de.uplanet.lucy.server.newsagent.AbstractFilter
de.uplanet.lucy.server.newsagent.IdentityFilter
- All Implemented Interfaces:
IFilter
This filter actually performs no filtering.
All items of the source collection are copied to the filtered collection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(List<de.uplanet.lucy.server.newsagent.Message> p_from, List<de.uplanet.lucy.server.newsagent.Message> p_to) Do the filtering, operating on array lists.boolean
Indicates if post-processing is needed after SQL retrieval.boolean
pass
(de.uplanet.lucy.server.newsagent.Message p_message) Decide if the given message passes the filter.sqlQuery()
A SQL query for identity filtering, actuallynull
.Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter
forConnection, forUser
-
Constructor Details
-
IdentityFilter
public IdentityFilter()
-
-
Method Details
-
sqlQuery
A SQL query for identity filtering, actuallynull
.- Returns:
null
.- See Also:
-
needsSqlPostProcessing
public boolean needsSqlPostProcessing()Description copied from interface:IFilter
Indicates if post-processing is needed after SQL retrieval.- Returns:
- Always
false
. - See Also:
-
pass
public boolean pass(de.uplanet.lucy.server.newsagent.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:
-
filter
public void filter(List<de.uplanet.lucy.server.newsagent.Message> p_from, List<de.uplanet.lucy.server.newsagent.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.
-