Package de.uplanet.lucy.server.newsagent
Schnittstelle IFilter
- Alle bekannten Implementierungsklassen:
AbstractFilter,AppGuidFilter,AppGuidNullFilter,AppIdFilter,AppIdNullFilter,IdentityFilter,NewsArchiveReceivedFilter,NewsArchiveSentFilter,NotExpiredFilter,RecipientFilter,SingleAppGuidFilter,SingleAppIdFilter
@Scriptable
public interface IFilter
Used for news filtering on collection and / or database level.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidDo the filtering, operating on array lists.voidforConnection(de.uplanet.jdbc.JdbcConnection p_conn) Initialize the filter with a database connection.voidPrepare the filter for a specific user.booleanIndicates if post-processing is needed after SQL retrieval.booleanDecide if the given message passes the filter.sqlQuery()Provide a SQL search query.
-
Methodendetails
-
forConnection
void forConnection(de.uplanet.jdbc.JdbcConnection p_conn) Initialize the filter with a database connection.This may be used if the property
needsSqlPostProcessing()depends on the database used.- Parameter:
p_conn- The database connection used.
-
forUser
Prepare the filter for a specific user.- Parameter:
p_strUserId- The sender's or the recipient's GUID.
-
sqlQuery
String sqlQuery()Provide a SQL search query.- Gibt zurück:
- A SQL query, or
nullif the filter cannot be applied at database level.
-
needsSqlPostProcessing
boolean needsSqlPostProcessing()Indicates if post-processing is needed after SQL retrieval.- Gibt zurück:
trueif post-processing is needed after SQL retrieval,falseotherwise.
-
pass
Decide if the given message passes the filter.- Parameter:
p_message- The message to be filtered.- Gibt zurück:
trueif the message passes the filter,falseotherwise.
-
filter
Do the filtering, operating on array lists.- Parameter:
p_from- Collection of messages to be filtered.p_to- The filtered collection.
-