public class EmailFilter extends Object
Constructor and Description |
---|
EmailFilter()
Instantiates a new Email filter.
|
EmailFilter(String name,
String rule)
Instantiates a new Email filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(NorthboundAlarm alarm)
Checks if the alarm is accepted by the filter.
|
String |
getBody()
Gets the template of the email message field: body.
|
String |
getFrom()
Gets the email message field: from.
|
String |
getName()
Gets the filter name.
|
String |
getRule()
Gets the filter rule.
|
String |
getSubject()
Gets the template of the email message field: subject.
|
String |
getTo()
Gets the email message field: to.
|
Boolean |
isEnabled()
Checks if the rule is enabled.
|
void |
setBody(String body)
Sets the body.
|
void |
setEnabled(Boolean enabled)
Sets the enabled flag.
|
void |
setFrom(String from)
Sets the from.
|
void |
setName(String name)
Sets the filter name.
|
void |
setRule(String rule)
Sets the filter rule.
|
void |
setSubject(String subject)
Sets the subject.
|
void |
setTo(String to)
Sets the to.
|
void |
update(SendmailMessage message)
Updates the sendmail message object
|
public Boolean isEnabled()
public String getName()
public String getRule()
public String getFrom()
public String getTo()
public String getSubject()
public String getBody()
public void setEnabled(Boolean enabled)
enabled
- the new enabledpublic void setName(String name)
name
- the new namepublic void setRule(String rule)
rule
- the rulepublic void setFrom(String from)
from
- the new frompublic void setTo(String to)
to
- the new topublic void setSubject(String subject)
subject
- the new subjectpublic void setBody(String body)
body
- the new bodypublic boolean accepts(NorthboundAlarm alarm)
alarm
- the northbound alarmpublic void update(SendmailMessage message)
message
- the message objectCopyright © 2016. All rights reserved.