de.uplanet.lucy.server.newsagent
Class AbstractFilter

java.lang.Object
  extended by de.uplanet.lucy.server.newsagent.AbstractFilter
All Implemented Interfaces:
IFilter
Direct Known Subclasses:
AppGuidFilter, AppGuidNullFilter, AppIdFilter, AppIdNullFilter, IdentityFilter, NewsArchiveReceivedFilter, NewsArchiveSentFilter, NotExpiredFilter, RecipientFilter, SingleAppGuidFilter, SingleAppIdFilter

@Scriptable
public abstract class AbstractFilter
extends java.lang.Object
implements IFilter

Base class for filters that implements some default behaviour.

Version:
$Revision: 71473 $

Constructor Summary
AbstractFilter()
           
 
Method Summary
 void filter(java.util.List<Message> p_from, java.util.List<Message> p_to)
          Do the filtering, operating on array lists.
 void forConnection(de.uplanet.jdbc.JdbcConnection p_conn)
          Initialize the filter with a database connection.
 void forUser(java.lang.String p_strUserId)
          Prepare the filter for a specific user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.uplanet.lucy.server.newsagent.IFilter
needsSqlPostProcessing, pass, sqlQuery
 

Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

forConnection

public void forConnection(de.uplanet.jdbc.JdbcConnection p_conn)
Description copied from interface: IFilter
Initialize the filter with a database connection.

This may be used if the property IFilter.needsSqlPostProcessing() depends on the database used.

Specified by:
forConnection in interface IFilter
Parameters:
p_conn - The database connection used.

forUser

public void forUser(java.lang.String p_strUserId)
Description copied from interface: IFilter
Prepare the filter for a specific user.

Specified by:
forUser in interface IFilter
Parameters:
p_strUserId - The sender's or the recipient's GUID.

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
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.