Package de.uplanet.lucy.server.newsagent
Class NotExpiredFilter
java.lang.Object
de.uplanet.lucy.server.newsagent.AbstractFilter
de.uplanet.lucy.server.newsagent.NotExpiredFilter
- All Implemented Interfaces:
IFilter
Filters messages that have not expired yet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDo the filtering, operating on array lists.booleanIndicates if post-processing is needed after SQL retrieval.booleanDecide if the given message passes the filter.voidsetCurrentDate(Timestamp p_dtNow) voidsetIgnoreVisitedMessages(boolean p_bIgnoreVisitedMessages) sqlQuery()Provide a SQL search query.Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter
forConnection, forUser
-
Constructor Details
-
NotExpiredFilter
public NotExpiredFilter()
-
-
Method Details
-
setIgnoreVisitedMessages
public void setIgnoreVisitedMessages(boolean p_bIgnoreVisitedMessages) - Parameters:
p_bIgnoreVisitedMessages- Flag that indicates if visited messages are to be ignored (default istrue).
-
setCurrentDate
- Parameters:
p_dtNow- The value for the current date and time.
-
sqlQuery
Description copied from interface:IFilterProvide a SQL search query.- Returns:
- A SQL query, or
nullif the filter cannot be applied at database level.
-
needsSqlPostProcessing
public boolean needsSqlPostProcessing()Description copied from interface:IFilterIndicates if post-processing is needed after SQL retrieval.- Returns:
- Always
false. - See Also:
-
pass
Description copied from interface:IFilterDecide if the given message passes the filter.- Parameters:
p_message- The message to be filtered.- Returns:
trueif the message passes the filter,falseotherwise.
-
filter
Description copied from interface:IFilterDo the filtering, operating on array lists.- Specified by:
filterin interfaceIFilter- Overrides:
filterin classAbstractFilter- Parameters:
p_from- Collection of messages to be filtered.p_to- The filtered collection.
-