de.uplanet.lucy.server.newsagent
Class IdentityFilter

java.lang.Object
  extended by de.uplanet.lucy.server.newsagent.AbstractFilter
      extended by de.uplanet.lucy.server.newsagent.IdentityFilter
All Implemented Interfaces:
IFilter

@Scriptable
public final class IdentityFilter
extends AbstractFilter

This filter actually performs no filtering. All items of the source collection are copied to the filtered collection.

Version:
$Revision: 71682 $

Constructor Summary
IdentityFilter()
           
 
Method Summary
 void filter(java.util.List<Message> p_from, java.util.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.
 java.lang.String sqlQuery()
          A SQL query for identity filtering, actually null.
 
Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter
forConnection, forUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityFilter

public IdentityFilter()
Method Detail

sqlQuery

public java.lang.String sqlQuery()
A SQL query for identity filtering, actually null.

Returns:
null.
See Also:
IFilter.sqlQuery()

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 or false if the message parameter is null.
See Also:
IFilter.pass(Message)

filter

public void filter(java.util.List<Message> p_from,
                   java.util.List<Message> p_to)
Description copied from interface: IFilter
Do the filtering, operating on array lists.

Specified by:
filter in interface IFilter
Overrides:
filter in class AbstractFilter
Parameters:
p_from - Collection of messages to be filtered.
p_to - The filtered collection.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.