Package org.opennms.web.alarm
Class AlarmUtil
- java.lang.Object
-
- org.opennms.web.alarm.AlarmUtil
-
public abstract class AlarmUtil extends java.lang.Object
Abstract AlarmUtil class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANY_RELATIVE_TIMES_OPTION
ConstantANY_RELATIVE_TIMES_OPTION="Any"
static java.lang.String
ANY_SERVICES_OPTION
ConstantANY_SERVICES_OPTION="Any"
static java.lang.String
ANY_SEVERITIES_OPTION
ConstantANY_SEVERITIES_OPTION="Any"
static int
LAST_DAY_RELATIVE_TIME
ConstantLAST_DAY_RELATIVE_TIME=5
static int
LAST_EIGHT_HOURS_RELATIVE_TIME
ConstantLAST_EIGHT_HOURS_RELATIVE_TIME=3
static int
LAST_FOUR_HOURS_RELATIVE_TIME
ConstantLAST_FOUR_HOURS_RELATIVE_TIME=2
static int
LAST_HOUR_RELATIVE_TIME
ConstantLAST_HOUR_RELATIVE_TIME=1
static int
LAST_MONTH_RELATIVE_TIME
ConstantLAST_MONTH_RELATIVE_TIME=7
static int
LAST_TWELVE_HOURS_RELATIVE_TIME
ConstantLAST_TWELVE_HOURS_RELATIVE_TIME=4
static int
LAST_WEEK_RELATIVE_TIME
ConstantLAST_WEEK_RELATIVE_TIME=6
-
Constructor Summary
Constructors Constructor Description AlarmUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Filter
getFilter(java.lang.String filterString, javax.servlet.ServletContext servletContext)
getFilterstatic java.util.List<Filter>
getFilterList(java.lang.String[] filterStrings, javax.servlet.ServletContext servletContext)
static java.lang.String
getFilterString(Filter filter)
getFilterStringstatic OnmsCriteria
getOnmsCriteria(AlarmCriteria alarmCriteria)
static Filter
getRelativeTimeFilter(int relativeTime)
getRelativeTimeFilter
-
-
-
Field Detail
-
ANY_SERVICES_OPTION
public static final java.lang.String ANY_SERVICES_OPTION
ConstantANY_SERVICES_OPTION="Any"
- See Also:
- Constant Field Values
-
ANY_SEVERITIES_OPTION
public static final java.lang.String ANY_SEVERITIES_OPTION
ConstantANY_SEVERITIES_OPTION="Any"
- See Also:
- Constant Field Values
-
ANY_RELATIVE_TIMES_OPTION
public static final java.lang.String ANY_RELATIVE_TIMES_OPTION
ConstantANY_RELATIVE_TIMES_OPTION="Any"
- See Also:
- Constant Field Values
-
LAST_HOUR_RELATIVE_TIME
public static final int LAST_HOUR_RELATIVE_TIME
ConstantLAST_HOUR_RELATIVE_TIME=1
- See Also:
- Constant Field Values
-
LAST_FOUR_HOURS_RELATIVE_TIME
public static final int LAST_FOUR_HOURS_RELATIVE_TIME
ConstantLAST_FOUR_HOURS_RELATIVE_TIME=2
- See Also:
- Constant Field Values
-
LAST_EIGHT_HOURS_RELATIVE_TIME
public static final int LAST_EIGHT_HOURS_RELATIVE_TIME
ConstantLAST_EIGHT_HOURS_RELATIVE_TIME=3
- See Also:
- Constant Field Values
-
LAST_TWELVE_HOURS_RELATIVE_TIME
public static final int LAST_TWELVE_HOURS_RELATIVE_TIME
ConstantLAST_TWELVE_HOURS_RELATIVE_TIME=4
- See Also:
- Constant Field Values
-
LAST_DAY_RELATIVE_TIME
public static final int LAST_DAY_RELATIVE_TIME
ConstantLAST_DAY_RELATIVE_TIME=5
- See Also:
- Constant Field Values
-
LAST_WEEK_RELATIVE_TIME
public static final int LAST_WEEK_RELATIVE_TIME
ConstantLAST_WEEK_RELATIVE_TIME=6
- See Also:
- Constant Field Values
-
LAST_MONTH_RELATIVE_TIME
public static final int LAST_MONTH_RELATIVE_TIME
ConstantLAST_MONTH_RELATIVE_TIME=7
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOnmsCriteria
public static OnmsCriteria getOnmsCriteria(AlarmCriteria alarmCriteria)
-
getFilter
public static Filter getFilter(java.lang.String filterString, javax.servlet.ServletContext servletContext)
getFilter
- Parameters:
filterString
- aString
object.- Returns:
- a
Filter
object.
-
getFilterString
public static java.lang.String getFilterString(Filter filter)
getFilterString
- Parameters:
filter
- aFilter
object.- Returns:
- a
String
object.
-
getRelativeTimeFilter
public static Filter getRelativeTimeFilter(int relativeTime)
getRelativeTimeFilter
- Parameters:
relativeTime
- a int.- Returns:
- a
Filter
object.
-
getFilterList
public static java.util.List<Filter> getFilterList(java.lang.String[] filterStrings, javax.servlet.ServletContext servletContext)
-
-