org.opennms.web.event.filter
Interface Filter

All Known Implementing Classes:
AcknowledgedByFilter, AfterDateFilter, AlarmIDFilter, BeforeDateFilter, DescriptionSubstringFilter, ExactUEIFilter, InterfaceFilter, IPLikeFilter, LogMessageMatchesAnyFilter, LogMessageSubstringFilter, NegativeAcknowledgedByFilter, NegativeExactUEIFilter, NegativeInterfaceFilter, NegativeNodeFilter, NegativePartialUEIFilter, NegativeServiceFilter, NegativeSeverityFilter, NodeFilter, NodeNameLikeFilter, PartialUEIFilter, ServiceFilter, SeverityFilter

public interface Filter

Convenience class to determine what sort of events to include in a query.


Method Summary
 String getDescription()
          Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.
 String getSql()
          Returns an expresions for a SQL where clause.
 String getTextDescription()
          Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.
 

Method Detail

getSql

String getSql()
Returns an expresions for a SQL where clause. Remember to include a trailing space, but no leading AND or OR.


getDescription

String getDescription()
Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.

Some examples:


getTextDescription

String getTextDescription()
Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.

Some examples (corresponding to the examples in getDescription):



Copyright ? 2007. All Rights Reserved.