|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.legacy.action.resource.common.monitor.alerts.AlertDefUtil
public final class AlertDefUtil
Utility class for dealing with rendering alert definition conditions.
| Constructor Summary | |
|---|---|
AlertDefUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertDefUtil()
| Method Detail |
|---|
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 objects
public 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.ServletException
public static List<OptionItem> getControlActions(org.rhq.core.domain.auth.Subject subject,
Integer id,
ResourceForm.FormContext context)
throws Exception
Exception
public static String getAlertRecoveryInfo(org.rhq.core.domain.alert.Alert alert,
int resourceId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||