|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.notification.bobject.Notification
public class Notification
This class holds the information parsed from the notifications.xml
| Constructor Summary | |
|---|---|
Notification()
Default constructor, initializes members |
|
| Method Summary | |
|---|---|
void |
addTarget(NotificationTarget target)
Adds a target to the notification |
String |
getComments()
Returns the comments for the notification |
String |
getInterval()
Returns the string version of the interval |
long |
getIntervalMilliseconds()
Returns the interval converted to milliseconds |
long |
getIntervalSeconds()
Returns the interval in seconds |
String |
getName()
Returns the name of the notification |
List<NotificationTarget> |
getTargets()
Returns the list of targets |
void |
setComments(String comments)
Sets the comments for the notification |
void |
setInterval(String interval)
Sets the interval for the notification |
void |
setName(String name)
Sets the name of the notification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notification()
| Method Detail |
|---|
public void setName(String name)
name - the name to be set for this notification.public String getName()
public void setComments(String comments)
comments - comments to be set for this notification.public String getComments()
public void setInterval(String interval)
interval - the interval to be set for this notification.public String getInterval()
public long getIntervalMilliseconds()
public long getIntervalSeconds()
public void addTarget(NotificationTarget target)
target - a target to be added for this notification.public List<NotificationTarget> getTargets()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||