org.opennms.web.alarm
Class AlarmUtil

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

public abstract class AlarmUtil
extends Object


Field Summary
protected static Map<AlarmFactory.AcknowledgeType,String> ackTypes
           
protected static Map<String,AlarmFactory.AcknowledgeType> ackTypesString
           
static String ANY_RELATIVE_TIMES_OPTION
           
static String ANY_SERVICES_OPTION
           
static String ANY_SEVERITIES_OPTION
           
protected static Map<Integer,String> colors
           
protected static Map<Integer,String> labels
           
static int LAST_DAY_RELATIVE_TIME
           
static int LAST_EIGHT_HOURS_RELATIVE_TIME
           
static int LAST_FOUR_HOURS_RELATIVE_TIME
           
static int LAST_HOUR_RELATIVE_TIME
           
static int LAST_MONTH_RELATIVE_TIME
           
static int LAST_TWELVE_HOURS_RELATIVE_TIME
           
static int LAST_WEEK_RELATIVE_TIME
           
protected static List<Integer> severities
           
protected static Map<AlarmFactory.SortStyle,String> sortStyles
           
protected static Map<String,AlarmFactory.SortStyle> sortStylesString
           
 
Constructor Summary
AlarmUtil()
           
 
Method Summary
static AlarmFactory.AcknowledgeType getAcknowledgeType(String ackTypeString)
           
static String getAcknowledgeTypeString(AlarmFactory.AcknowledgeType ackType)
           
static Filter getFilter(String filterString)
           
static String getFilterString(Filter filter)
           
static Filter getRelativeTimeFilter(int relativeTime)
           
static String getSeverityColor(int severity)
           
static int getSeverityId(int index)
           
static String getSeverityLabel(int severity)
           
static List getSeverityList()
           
static AlarmFactory.SortStyle getSortStyle(String sortStyleString)
           
static String getSortStyleString(AlarmFactory.SortStyle sortStyle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colors

protected static final Map<Integer,String> colors

labels

protected static final Map<Integer,String> labels

sortStyles

protected static final Map<AlarmFactory.SortStyle,String> sortStyles

sortStylesString

protected static final Map<String,AlarmFactory.SortStyle> sortStylesString

ackTypes

protected static final Map<AlarmFactory.AcknowledgeType,String> ackTypes

ackTypesString

protected static final Map<String,AlarmFactory.AcknowledgeType> ackTypesString

severities

protected static final List<Integer> severities

ANY_SERVICES_OPTION

public static final String ANY_SERVICES_OPTION
See Also:
Constant Field Values

ANY_SEVERITIES_OPTION

public static final String ANY_SEVERITIES_OPTION
See Also:
Constant Field Values

ANY_RELATIVE_TIMES_OPTION

public static final String ANY_RELATIVE_TIMES_OPTION
See Also:
Constant Field Values

LAST_HOUR_RELATIVE_TIME

public static final int LAST_HOUR_RELATIVE_TIME
See Also:
Constant Field Values

LAST_FOUR_HOURS_RELATIVE_TIME

public static final int LAST_FOUR_HOURS_RELATIVE_TIME
See Also:
Constant Field Values

LAST_EIGHT_HOURS_RELATIVE_TIME

public static final int LAST_EIGHT_HOURS_RELATIVE_TIME
See Also:
Constant Field Values

LAST_TWELVE_HOURS_RELATIVE_TIME

public static final int LAST_TWELVE_HOURS_RELATIVE_TIME
See Also:
Constant Field Values

LAST_DAY_RELATIVE_TIME

public static final int LAST_DAY_RELATIVE_TIME
See Also:
Constant Field Values

LAST_WEEK_RELATIVE_TIME

public static final int LAST_WEEK_RELATIVE_TIME
See Also:
Constant Field Values

LAST_MONTH_RELATIVE_TIME

public static final int LAST_MONTH_RELATIVE_TIME
See Also:
Constant Field Values
Constructor Detail

AlarmUtil

public AlarmUtil()
Method Detail

getSeverityList

public static List getSeverityList()

getSeverityId

public static int getSeverityId(int index)

getSeverityColor

public static String getSeverityColor(int severity)

getSeverityLabel

public static String getSeverityLabel(int severity)

getSortStyle

public static AlarmFactory.SortStyle getSortStyle(String sortStyleString)

getSortStyleString

public static String getSortStyleString(AlarmFactory.SortStyle sortStyle)

getAcknowledgeType

public static AlarmFactory.AcknowledgeType getAcknowledgeType(String ackTypeString)

getAcknowledgeTypeString

public static String getAcknowledgeTypeString(AlarmFactory.AcknowledgeType ackType)

getFilter

public static Filter getFilter(String filterString)

getFilterString

public static String getFilterString(Filter filter)

getRelativeTimeFilter

public static Filter getRelativeTimeFilter(int relativeTime)


Copyright ? 2007. All Rights Reserved.