org.opennms.web.vulnerability.filter
Class CreationDateBeforeFilter
java.lang.Object
org.opennms.web.vulnerability.filter.CreationDateBeforeFilter
- All Implemented Interfaces:
- Filter
- public class CreationDateBeforeFilter
- extends java.lang.Object
- implements Filter
Field Summary |
protected java.util.Date |
date
|
protected static java.text.DateFormat |
DATE_FORMAT
|
static java.lang.String |
TYPE
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.util.Date |
getDate()
|
java.lang.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. |
java.lang.String |
getSql()
Returns an expresions for a SQL where clause. |
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
DATE_FORMAT
protected static final java.text.DateFormat DATE_FORMAT
date
protected java.util.Date date
CreationDateBeforeFilter
public CreationDateBeforeFilter(java.util.Date date)
CreationDateBeforeFilter
public CreationDateBeforeFilter(long epochTime)
getSql
public java.lang.String getSql()
- Description copied from interface:
Filter
- Returns an expresions for a SQL where clause. Remember to include a
trailing space, but no leading AND or OR.
- Specified by:
getSql
in interface Filter
getDescription
public java.lang.String getDescription()
- Description copied from interface:
Filter
- 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:
- "node=1"
- "interface=192.168.0.1"
- "severity=3"
- "nodenamelike=opennms"
- Specified by:
getDescription
in interface Filter
getTextDescription
public java.lang.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
):
- "node=nodelabel_of_node_1"
- "interface=192.168.0.1"
- "severity=Normal"
- "node name containing \"opennms\""
- Specified by:
getTextDescription
in interface Filter
toString
public java.lang.String toString()
getDate
public java.util.Date getDate()
equals
public boolean equals(java.lang.Object obj)
Generated by eevans on May 29 2005 2015.