@Scriptable
public interface IFilter
Modifier and Type | Method and Description |
---|---|
void |
filter(List<Message> p_from,
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(String p_strUserId)
Prepare the filter for a specific user.
|
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.
|
void forConnection(de.uplanet.jdbc.JdbcConnection p_conn)
This may be used if the property needsSqlPostProcessing()
depends on the database used.
p_conn
- The database connection used.Users must call this method before SQL-related properties are read. |
void forUser(String p_strUserId)
p_strUserId
- The sender's or the recipient's GUID.String sqlQuery()
null
if the filter
cannot be applied at database level.boolean needsSqlPostProcessing()
true
if post-processing is needed after SQL retrieval,
false
otherwise.boolean pass(Message p_message)
p_message
- The message to be filtered.true
if the message passes the filter,
false
otherwise.