de.uplanet.lucy.server.newsagent
Class AppGuidFilter

java.lang.Object
  extended by de.uplanet.lucy.server.newsagent.AbstractFilter
      extended by de.uplanet.lucy.server.newsagent.AppGuidFilter
All Implemented Interfaces:
IFilter

@Scriptable
public final class AppGuidFilter
extends AbstractFilter

Filter by applications by GUIDs.

Version:
$Revision: 71693 $

Constructor Summary
AppGuidFilter()
           
 
Method Summary
 boolean needsSqlPostProcessing()
          Indicates if post-processing is needed after SQL retrieval.
 boolean pass(Message p_message)
          Decide if the given message passes the filter.
 void setApplicationGuidList(java.util.List<java.lang.String> p_listAppGuid)
          Set a list of application GUIDs to filter for.
 void setComplement(boolean p_bComplement)
           
 java.lang.String sqlQuery()
          Provide a SQL search query.
 
Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter
filter, forConnection, forUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppGuidFilter

public AppGuidFilter()
Method Detail

setApplicationGuidList

public void setApplicationGuidList(java.util.List<java.lang.String> p_listAppGuid)
Set a list of application GUIDs to filter for.

Parameters:
p_listAppGuid - A list of application GUIDs.

setComplement

public void setComplement(boolean p_bComplement)
Parameters:
p_bComplement - true if the complement set should be returned, false otherwise (default is false).

needsSqlPostProcessing

public boolean needsSqlPostProcessing()
Description copied from interface: IFilter
Indicates if post-processing is needed after SQL retrieval.

Returns:
Always false.
See Also:
IFilter.needsSqlPostProcessing()

pass

public boolean pass(Message p_message)
Description copied from interface: IFilter
Decide if the given message passes the filter.

Parameters:
p_message - The message to be filtered.
Returns:
true if the message passes the filter, false otherwise.

sqlQuery

public java.lang.String sqlQuery()
Description copied from interface: IFilter
Provide a SQL search query.

Returns:
A SQL query, or null if the filter cannot be applied at database level.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.