de.mguennewig.pobjsearch
Class StaticSearchFilter

java.lang.Object
  extended by de.mguennewig.pobjsearch.AbstractSearchFilter
      extended by de.mguennewig.pobjsearch.StaticSearchFilter
All Implemented Interfaces:
SearchFilter

public class StaticSearchFilter
extends AbstractSearchFilter

A search filter that ignores any user input.

Author:
Michael Günnewig
See Also:
SearchModel

Constructor Summary
StaticSearchFilter(java.lang.String identifier, java.lang.String label, Condition... filters)
          Creates a new search filter.
 
Method Summary
 void addFilter(PClassSearchForm.Condition condition, Query q)
          Adds this filter to the query.
 
Methods inherited from class de.mguennewig.pobjsearch.AbstractSearchFilter
getIdentifier, getLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticSearchFilter

public StaticSearchFilter(java.lang.String identifier,
                          java.lang.String label,
                          Condition... filters)
Creates a new search filter.

Parameters:
identifier - The identifier for this filter.
label - The label used to identify this filter in the UI.
filters - Set of the filter terms.
See Also:
Query.addTableExpr(Class, boolean), Member
Method Detail

addFilter

public void addFilter(PClassSearchForm.Condition condition,
                      Query q)
Adds this filter to the query.