org.opennms.web.event.filter
Class NegativeServiceFilter

java.lang.Object
  extended by org.opennms.web.filter.BaseFilter<T>
      extended by org.opennms.web.filter.OneArgFilter<T>
          extended by org.opennms.web.filter.NotEqualOrNullFilter<Integer>
              extended by org.opennms.web.event.filter.NegativeServiceFilter
All Implemented Interfaces:
Filter

public class NegativeServiceFilter
extends NotEqualOrNullFilter<Integer>

Encapsulates all service filtering functionality.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Field Summary
protected  int serviceId
           
static String TYPE
          Constant TYPE="servicenot"
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
NegativeServiceFilter(int serviceId, org.springframework.context.ApplicationContext appContext)
          Constructor for NegativeServiceFilter.
NegativeServiceFilter(int serviceId, javax.servlet.ServletContext servletContext)
          Constructor for NegativeServiceFilter.
 
Method Summary
 boolean equals(Object obj)
          
 int getServiceId()
          Getter for the field serviceId.
 String getTextDescription()
          getTextDescription
 String toString()
          toString
 
Methods inherited from class org.opennms.web.filter.NotEqualOrNullFilter
getCriterion, getSQLTemplate
 
Methods inherited from class org.opennms.web.filter.OneArgFilter
bindParam, getBoundValue, getParamSql, getSql, getValue, getValueString
 
Methods inherited from class org.opennms.web.filter.BaseFilter
bindValue, formatValue, getDescription, getPropertyName, getSQLFieldName, getValueAsString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
Constant TYPE="servicenot"

See Also:
Constant Field Values

serviceId

protected int serviceId
Constructor Detail

NegativeServiceFilter

public NegativeServiceFilter(int serviceId,
                             javax.servlet.ServletContext servletContext)

Constructor for NegativeServiceFilter.

Parameters:
serviceId - a int.
servletContext -

NegativeServiceFilter

public NegativeServiceFilter(int serviceId,
                             org.springframework.context.ApplicationContext appContext)

Constructor for NegativeServiceFilter.

Parameters:
serviceId - a int.
appContext -
Method Detail

getTextDescription

public String getTextDescription()

getTextDescription

Specified by:
getTextDescription in interface Filter
Overrides:
getTextDescription in class OneArgFilter<Integer>
Returns:
a String object.

toString

public String toString()

toString

Overrides:
toString in class BaseFilter<Integer>
Returns:
a String object.

getServiceId

public int getServiceId()

Getter for the field serviceId.

Returns:
a int.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.