org.opennms.web.notification.filter
Class UserFilter

java.lang.Object
  extended by org.opennms.web.filter.BaseFilter<T>
      extended by org.opennms.web.filter.OneArgFilter<String>
          extended by org.opennms.web.notification.filter.UserFilter
All Implemented Interfaces:
Filter

public class UserFilter
extends OneArgFilter<String>

Encapsulates all user filtering functionality.


Field Summary
static String TYPE
           
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
UserFilter(String user)
           
 
Method Summary
 boolean equals(Object obj)
           
 org.hibernate.criterion.Criterion getCriterion()
          Criterion used to construction an OnmsCritieria
 String getSQLTemplate()
           
 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.
 String getUser()
           
 String toString()
           
 
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
See Also:
Constant Field Values
Constructor Detail

UserFilter

public UserFilter(String user)
Method Detail

getSQLTemplate

public String getSQLTemplate()
Specified by:
getSQLTemplate in class OneArgFilter<String>

getCriterion

public org.hibernate.criterion.Criterion getCriterion()
Description copied from interface: Filter
Criterion used to construction an OnmsCritieria

Specified by:
getCriterion in interface Filter
Specified by:
getCriterion in class BaseFilter<String>
Returns:
A Criterion that represents a criteria restriction imposed by this filter

getTextDescription

public String getTextDescription()
Description copied from interface: Filter
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):

Specified by:
getTextDescription in interface Filter
Specified by:
getTextDescription in class BaseFilter<String>

toString

public String toString()
Overrides:
toString in class BaseFilter<String>

getUser

public String getUser()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009. All Rights Reserved.