|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.web.notification.bobject.Notification
This class holds the information parsed from the notifications.xml
Field Summary | |
private java.lang.String |
m_comments
Comments for the notification |
private java.lang.String |
m_interval
The interval to wait between processing target |
private java.lang.String |
m_name
The name of the notification |
private java.util.List |
m_targets
The list of users or other notifications to include in this notification |
Constructor Summary | |
Notification()
Default constructor, initializes members |
Method Summary | |
void |
addTarget(NotificationTarget target)
Adds a target to the notification |
java.lang.String |
getComments()
Returns the comments for the notification |
java.lang.String |
getInterval()
Returns the string version of the interval |
long |
getIntervalMilliseconds()
Returns the interval converted to milliseconds |
long |
getIntervalSeconds()
Returns the interval in seconds |
java.lang.String |
getName()
Returns the name of the notification |
java.util.List |
getTargets()
Returns the list of targets |
void |
setComments(java.lang.String comments)
Sets the comments for the notification |
void |
setInterval(java.lang.String interval)
Sets the interval for the notification |
void |
setName(java.lang.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 |
Field Detail |
private java.lang.String m_interval
private java.lang.String m_name
private java.lang.String m_comments
private java.util.List m_targets
Constructor Detail |
public Notification()
Method Detail |
public void setName(java.lang.String name)
name
- the name to be set for this notification.public java.lang.String getName()
public void setComments(java.lang.String comments)
comments
- comments to be set for this notification.public java.lang.String getComments()
public void setInterval(java.lang.String interval)
interval
- the interval to be set for this notification.public java.lang.String getInterval()
public long getIntervalMilliseconds()
public long getIntervalSeconds()
public void addTarget(NotificationTarget target)
target
- a target to be added for this notification.public java.util.List getTargets()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |