org.opennms.web.alarm
Class AlarmUtil

java.lang.Object
  extended by org.opennms.web.alarm.AlarmUtil

public abstract class AlarmUtil
extends Object

Abstract AlarmUtil class.

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

Field Summary
static String ANY_RELATIVE_TIMES_OPTION
          Constant ANY_RELATIVE_TIMES_OPTION="Any"
static String ANY_SERVICES_OPTION
          Constant ANY_SERVICES_OPTION="Any"
static String ANY_SEVERITIES_OPTION
          Constant ANY_SEVERITIES_OPTION="Any"
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
AlarmUtil()
           
 
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

ANY_SERVICES_OPTION

public static final String ANY_SERVICES_OPTION
Constant ANY_SERVICES_OPTION="Any"

See Also:
Constant Field Values

ANY_SEVERITIES_OPTION

public static final String ANY_SEVERITIES_OPTION
Constant ANY_SEVERITIES_OPTION="Any"

See Also:
Constant Field Values

ANY_RELATIVE_TIMES_OPTION

public static final String ANY_RELATIVE_TIMES_OPTION
Constant ANY_RELATIVE_TIMES_OPTION="Any"

See Also:
Constant Field Values

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

AlarmUtil

public AlarmUtil()
Method Detail

getFilter

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

getFilter

Parameters:
filterString - a String object.
Returns:
a Filter object.

getFilterString

public static String getFilterString(Filter filter)

getFilterString

Parameters:
filter - a Filter object.
Returns:
a String object.

getRelativeTimeFilter

public static Filter getRelativeTimeFilter(int relativeTime)

getRelativeTimeFilter

Parameters:
relativeTime - a int.
Returns:
a Filter object.


Copyright © 2011. All Rights Reserved.