|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.alert.AlertRule
public class AlertRule
Field Summary |
---|
Fields inherited from interface com.jalios.jcms.alert.AlertConstants |
---|
HTML_MARKUP, MSG_PREFIX_PROP, NAME_PREFIX_PROP, TEXT_MARKUP, WIKI_MARKUP |
Constructor Summary | |
---|---|
AlertRule()
|
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
containsAlertChannel(AlertChannel alertChannel)
Returns true if this AlertRule contains the given alertChannel. |
boolean |
equals(Object obj)
|
static AlertRule |
fromJSON(String json)
|
String[] |
getAlertChannels()
|
Set<AlertChannel> |
getAlertChannelSet()
|
String |
getAlertFullName()
Returns the full name (i.e. domain + "." + name) of the alert type of this AlertRule. |
String |
getAlertLabel(String userLang)
Returns the label of the alert type of this AlertRule. |
static Set<AlertRule> |
getAlertRuleSet(String json)
|
String |
getDomain()
|
Alert.Level |
getLevel()
|
String |
getLevelKey()
|
String |
getName()
|
boolean |
isEmpty()
Returns true if this AlertRule is empty (i.e. no level, no domain and no alert channel). |
boolean |
matches(Alert alert)
Returns true if the given alert match this rule. |
boolean |
notEmpty()
Returns true if this AlertRule is not empty (i.e. a level, a domain or an alert channel). |
void |
setAlertChannels(String[] alertChannels)
|
void |
setAlertChannelSet(Set<AlertChannel> alertChannelSet)
|
void |
setDomain(String domain)
|
void |
setLevel(Alert.Level level)
|
void |
setLevelKey(String key)
|
void |
setName(String name)
|
String |
toJSON()
|
static String |
toJSON(Set<AlertRule> ruleSet)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlertRule()
Method Detail |
---|
public boolean matches(Alert alert)
alert
- the alert
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
public Alert.Level getLevel()
public void setLevel(Alert.Level level)
public String getLevelKey()
public void setLevelKey(String key)
public String getDomain()
public void setDomain(String domain)
public String getName()
public void setName(String name)
public Set<AlertChannel> getAlertChannelSet()
public void setAlertChannelSet(Set<AlertChannel> alertChannelSet)
public String[] getAlertChannels()
public void setAlertChannels(String[] alertChannels)
public boolean isEmpty()
public boolean notEmpty()
public boolean containsAlertChannel(AlertChannel alertChannel)
alertChannel
- the alertChannel
public String getAlertFullName()
public String getAlertLabel(String userLang)
userLang
- the user language
public String toString()
toString
in class Object
public String toJSON()
public static String toJSON(Set<AlertRule> ruleSet)
public static Set<AlertRule> getAlertRuleSet(String json)
public static AlertRule fromJSON(String json)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |