public final class AlertDefUtil extends Object
| Constructor and Description |
|---|
AlertDefUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatAlertConditionForDisplay(org.rhq.core.domain.alert.AlertCondition cond,
javax.servlet.http.HttpServletRequest request) |
static List<AlertConditionBean> |
getAlertConditionBeanList(org.rhq.core.domain.auth.Subject subject,
javax.servlet.http.HttpServletRequest request,
Set<org.rhq.core.domain.alert.AlertCondition> conds)
Converts the list of alert conditions into a list of AlertConditionBean objects.
|
static org.rhq.core.domain.alert.AlertDefinition |
getAlertDefinition(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
static String |
getAlertRecoveryInfo(org.rhq.core.domain.alert.Alert alert,
int resourceId) |
static List<OptionItem> |
getControlActions(org.rhq.core.domain.auth.Subject subject,
Integer id,
ResourceForm.FormContext context)
Returns a List of LabelValueBean objects whose labels and values are both set to the string of the control
actions for the passed-in resource.
|
static long |
getSecondsConsideringUnits(Integer duration,
org.rhq.core.domain.alert.AlertDampening.TimeUnits units) |
static void |
setAlertDampeningRequestAttributes(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.alert.AlertDefinition alertDefinition)
Sets the following request attributes based on what's contained in the AlertConditionValue.
|
public static long getSecondsConsideringUnits(Integer duration, org.rhq.core.domain.alert.AlertDampening.TimeUnits units)
public static List<AlertConditionBean> getAlertConditionBeanList(org.rhq.core.domain.auth.Subject subject, javax.servlet.http.HttpServletRequest request, Set<org.rhq.core.domain.alert.AlertCondition> conds)
subject - conds - @return List of AlertConditionBean objectspublic static String formatAlertConditionForDisplay(org.rhq.core.domain.alert.AlertCondition cond, javax.servlet.http.HttpServletRequest request)
public static void setAlertDampeningRequestAttributes(javax.servlet.http.HttpServletRequest request,
org.rhq.core.domain.alert.AlertDefinition alertDefinition)
request - the http requestalertDef - @Deprecated public static org.rhq.core.domain.alert.AlertDefinition getAlertDefinition(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic static List<OptionItem> getControlActions(org.rhq.core.domain.auth.Subject subject, Integer id, ResourceForm.FormContext context) throws Exception
Exceptionpublic static String getAlertRecoveryInfo(org.rhq.core.domain.alert.Alert alert, int resourceId)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.