org.opennms.web.event
Class EventUtil

java.lang.Object
  extended by org.opennms.web.event.EventUtil

public abstract class EventUtil
extends Object

Abstract EventUtil class.

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

Field Summary
static int LAST_DAY_RELATIVE_TIME
          Constant LAST_DAY_RELATIVE_TIME=5
static int LAST_EIGHT_HOURS_RELATIVE_TIME
          Constant LAST_EIGHT_HOURS_RELATIVE_TIME=3
static int LAST_FOUR_HOURS_RELATIVE_TIME
          Constant LAST_FOUR_HOURS_RELATIVE_TIME=2
static int LAST_HOUR_RELATIVE_TIME
          Constant LAST_HOUR_RELATIVE_TIME=1
static int LAST_MONTH_RELATIVE_TIME
          Constant LAST_MONTH_RELATIVE_TIME=7
static int LAST_TWELVE_HOURS_RELATIVE_TIME
          Constant LAST_TWELVE_HOURS_RELATIVE_TIME=4
static int LAST_WEEK_RELATIVE_TIME
          Constant LAST_WEEK_RELATIVE_TIME=6
 
Constructor Summary
EventUtil()
           
 
Method Summary
static Filter getFilter(String filterString, javax.servlet.ServletContext servletContext)
          getFilter
static String getFilterString(Filter filter)
          getFilterString
static Filter getRelativeTimeFilter(int relativeTime)
          getRelativeTimeFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_HOUR_RELATIVE_TIME

public static final int LAST_HOUR_RELATIVE_TIME
Constant LAST_HOUR_RELATIVE_TIME=1

See Also:
Constant Field Values

LAST_FOUR_HOURS_RELATIVE_TIME

public static final int LAST_FOUR_HOURS_RELATIVE_TIME
Constant LAST_FOUR_HOURS_RELATIVE_TIME=2

See Also:
Constant Field Values

LAST_EIGHT_HOURS_RELATIVE_TIME

public static final int LAST_EIGHT_HOURS_RELATIVE_TIME
Constant LAST_EIGHT_HOURS_RELATIVE_TIME=3

See Also:
Constant Field Values

LAST_TWELVE_HOURS_RELATIVE_TIME

public static final int LAST_TWELVE_HOURS_RELATIVE_TIME
Constant LAST_TWELVE_HOURS_RELATIVE_TIME=4

See Also:
Constant Field Values

LAST_DAY_RELATIVE_TIME

public static final int LAST_DAY_RELATIVE_TIME
Constant LAST_DAY_RELATIVE_TIME=5

See Also:
Constant Field Values

LAST_WEEK_RELATIVE_TIME

public static final int LAST_WEEK_RELATIVE_TIME
Constant LAST_WEEK_RELATIVE_TIME=6

See Also:
Constant Field Values

LAST_MONTH_RELATIVE_TIME

public static final int LAST_MONTH_RELATIVE_TIME
Constant LAST_MONTH_RELATIVE_TIME=7

See Also:
Constant Field Values
Constructor Detail

EventUtil

public EventUtil()
Method Detail

getFilter

public static Filter getFilter(String filterString,
                               javax.servlet.ServletContext servletContext)

getFilter

Parameters:
filterString - a String object.
Returns:
a org$opennms$web$filter$Filter object.

getFilterString

public static String getFilterString(Filter filter)

getFilterString

Parameters:
filter - a org$opennms$web$filter$Filter object.
Returns:
a String object.

getRelativeTimeFilter

public static Filter getRelativeTimeFilter(int relativeTime)

getRelativeTimeFilter

Parameters:
relativeTime - a int.
Returns:
a org$opennms$web$filter$Filter object.


Copyright © 2011. All Rights Reserved.