|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uplanet.lucy.server.newsagent.AbstractFilter
@Scriptable public abstract class AbstractFilter
Base class for filters that implements some default behaviour.
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 |
---|
public AbstractFilter()
Method Detail |
---|
public void forConnection(de.uplanet.jdbc.JdbcConnection p_conn)
IFilter
This may be used if the property IFilter.needsSqlPostProcessing()
depends on the database used.
forConnection
in interface IFilter
p_conn
- The database connection used.public void forUser(java.lang.String p_strUserId)
IFilter
forUser
in interface IFilter
p_strUserId
- The sender's or the recipient's GUID.public void filter(java.util.List<Message> p_from, java.util.List<Message> p_to)
IFilter
filter
in interface IFilter
p_from
- Collection of messages to be filtered.p_to
- The filtered collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |