Package org.opennms.netmgt.model
Class OnmsNotification
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsNotification
-
- All Implemented Interfaces:
java.io.Serializable
,Acknowledgeable
@Entity public class OnmsNotification extends java.lang.Object implements Acknowledgeable, java.io.Serializable
OnmsNotification class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsNotification()
default constructorOnmsNotification(java.lang.Integer notifyId, java.lang.String textMsg, java.lang.String subject, java.lang.String numericMsg, java.util.Date pageTime, java.util.Date respondTime, java.lang.String answeredBy, java.net.InetAddress ipAddress, OnmsServiceType serviceType, java.lang.String queueId, OnmsEvent event, OnmsNode node, java.util.Set<OnmsUserNotification> usersNotified, java.lang.String notifConfigName)
full constructorOnmsNotification(java.lang.Integer notifyId, java.lang.String textMsg, OnmsEvent event, OnmsNode node, java.util.Set<OnmsUserNotification> usersNotified)
minimal constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledge(java.lang.String ackUser)
acknowledgevoid
clear(java.lang.String ackUser)
clearvoid
escalate(java.lang.String ackUser)
escalatejava.lang.Integer
getAckId()
getAckIdjava.util.Date
getAckTime()
getAckTimejava.lang.String
getAckUser()
getAckUserjava.lang.String
getAnsweredBy()
getAnsweredByOnmsEvent
getEvent()
getEventjava.lang.Integer
getEventId()
java.lang.String
getEventUei()
getEventUeijava.net.InetAddress
getIpAddress()
getIpAddressOnmsNode
getNode()
getNodejava.lang.Integer
getNodeId()
java.lang.String
getNodeLabel()
java.lang.String
getNotifConfigName()
getNotifConfigNamejava.lang.Integer
getNotifyId()
getNotifyIdjava.lang.String
getNumericMsg()
getNumericMsgjava.util.Date
getPageTime()
getPageTimejava.lang.String
getQueueId()
getQueueIdjava.util.Date
getRespondTime()
getRespondTimeOnmsServiceType
getServiceType()
getServiceTypeOnmsSeverity
getSeverity()
java.lang.String
getSeverityLabel()
getSeverityLabeljava.lang.String
getSubject()
getSubjectjava.lang.String
getTextMsg()
getTextMsgAckType
getType()
getTypejava.util.Set<OnmsUserNotification>
getUsersNotified()
getUsersNotifiedvoid
setAnsweredBy(java.lang.String answeredby)
setAnsweredByvoid
setEvent(OnmsEvent event)
setEventvoid
setEventUei(java.lang.String eventUei)
setEventUeivoid
setIpAddress(java.net.InetAddress ipAddress)
setIpAddressvoid
setNode(OnmsNode node)
setNodevoid
setNotifConfigName(java.lang.String notifConfigName)
setNotifConfigNamevoid
setNotifyId(java.lang.Integer notifyid)
setNotifyIdvoid
setNumericMsg(java.lang.String numericmsg)
setNumericMsgvoid
setPageTime(java.util.Date pagetime)
setPageTimevoid
setQueueId(java.lang.String queueid)
setQueueIdvoid
setRespondTime(java.util.Date respondtime)
setRespondTimevoid
setServiceType(OnmsServiceType serviceType)
setServiceTypevoid
setSubject(java.lang.String subject)
setSubjectvoid
setTextMsg(java.lang.String textmsg)
setTextMsgvoid
setUsersNotified(java.util.Set<OnmsUserNotification> usersnotifieds)
setUsersNotifiedjava.lang.String
toString()
toStringvoid
unacknowledge(java.lang.String ackUser)
unacknowledge
-
-
-
Constructor Detail
-
OnmsNotification
public OnmsNotification(java.lang.Integer notifyId, java.lang.String textMsg, java.lang.String subject, java.lang.String numericMsg, java.util.Date pageTime, java.util.Date respondTime, java.lang.String answeredBy, java.net.InetAddress ipAddress, OnmsServiceType serviceType, java.lang.String queueId, OnmsEvent event, OnmsNode node, java.util.Set<OnmsUserNotification> usersNotified, java.lang.String notifConfigName)
full constructor- Parameters:
notifyId
- aInteger
object.textMsg
- aString
object.subject
- aString
object.numericMsg
- aString
object.pageTime
- aDate
object.respondTime
- aDate
object.answeredBy
- aString
object.ipAddress
- aString
object.serviceType
- aOnmsServiceType
object.queueId
- aString
object.event
- aOnmsEvent
object.node
- aOnmsNode
object.usersNotified
- aSet
object.notifConfigName
- aString
object.
-
OnmsNotification
public OnmsNotification()
default constructor
-
OnmsNotification
public OnmsNotification(java.lang.Integer notifyId, java.lang.String textMsg, OnmsEvent event, OnmsNode node, java.util.Set<OnmsUserNotification> usersNotified)
minimal constructor
-
-
Method Detail
-
getNotifyId
public java.lang.Integer getNotifyId()
getNotifyId
- Returns:
- a
Integer
object.
-
setNotifyId
public void setNotifyId(java.lang.Integer notifyid)
setNotifyId
- Parameters:
notifyid
- aInteger
object.
-
getTextMsg
public java.lang.String getTextMsg()
getTextMsg
- Returns:
- a
String
object.
-
setTextMsg
public void setTextMsg(java.lang.String textmsg)
setTextMsg
- Parameters:
textmsg
- aString
object.
-
getSubject
public java.lang.String getSubject()
getSubject
- Returns:
- a
String
object.
-
setSubject
public void setSubject(java.lang.String subject)
setSubject
- Parameters:
subject
- aString
object.
-
getNumericMsg
public java.lang.String getNumericMsg()
getNumericMsg
- Returns:
- a
String
object.
-
setNumericMsg
public void setNumericMsg(java.lang.String numericmsg)
setNumericMsg
- Parameters:
numericmsg
- aString
object.
-
getPageTime
public java.util.Date getPageTime()
getPageTime
- Returns:
- a
Date
object.
-
setPageTime
public void setPageTime(java.util.Date pagetime)
setPageTime
- Parameters:
pagetime
- aDate
object.
-
getRespondTime
public java.util.Date getRespondTime()
getRespondTime
- Returns:
- a
Date
object.
-
setRespondTime
public void setRespondTime(java.util.Date respondtime)
setRespondTime
- Parameters:
respondtime
- aDate
object.
-
getAnsweredBy
public java.lang.String getAnsweredBy()
getAnsweredBy
- Returns:
- a
String
object.
-
setAnsweredBy
public void setAnsweredBy(java.lang.String answeredby)
setAnsweredBy
- Parameters:
answeredby
- aString
object.
-
getIpAddress
public java.net.InetAddress getIpAddress()
getIpAddress
- Returns:
- a
String
object.
-
setIpAddress
public void setIpAddress(java.net.InetAddress ipAddress)
setIpAddress
- Parameters:
ipAddress
- aString
object.
-
getServiceType
public OnmsServiceType getServiceType()
getServiceType
- Returns:
- a
OnmsServiceType
object.
-
setServiceType
public void setServiceType(OnmsServiceType serviceType)
setServiceType
- Parameters:
serviceType
- aOnmsServiceType
object.
-
getQueueId
public java.lang.String getQueueId()
getQueueId
- Returns:
- a
String
object.
-
setQueueId
public void setQueueId(java.lang.String queueid)
setQueueId
- Parameters:
queueid
- aString
object.
-
getEventId
public java.lang.Integer getEventId()
-
getEventUei
public java.lang.String getEventUei()
getEventUei
- Returns:
- a
String
object.
-
setEventUei
public void setEventUei(java.lang.String eventUei)
setEventUei
- Parameters:
eventUei
- aString
object.
-
getSeverityLabel
public java.lang.String getSeverityLabel()
getSeverityLabel
- Returns:
- a
String
object.
-
getSeverity
public OnmsSeverity getSeverity()
- Specified by:
getSeverity
in interfaceAcknowledgeable
-
getNode
public OnmsNode getNode()
getNode
- Specified by:
getNode
in interfaceAcknowledgeable
- Returns:
- a
OnmsNode
object.
-
getNodeId
public java.lang.Integer getNodeId()
-
getNodeLabel
public java.lang.String getNodeLabel()
-
getUsersNotified
public java.util.Set<OnmsUserNotification> getUsersNotified()
getUsersNotified
- Returns:
- a
Set
object.
-
setUsersNotified
public void setUsersNotified(java.util.Set<OnmsUserNotification> usersnotifieds)
setUsersNotified
- Parameters:
usersnotifieds
- aSet
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getNotifConfigName
public java.lang.String getNotifConfigName()
getNotifConfigName
- Returns:
- a
String
object.
-
setNotifConfigName
public void setNotifConfigName(java.lang.String notifConfigName)
setNotifConfigName
- Parameters:
notifConfigName
- aString
object.
-
acknowledge
public void acknowledge(java.lang.String ackUser)
acknowledge
- Specified by:
acknowledge
in interfaceAcknowledgeable
- Parameters:
ackUser
- aString
object.
-
getType
public AckType getType()
getType
- Specified by:
getType
in interfaceAcknowledgeable
- Returns:
- a
AckType
object.
-
getAckId
public java.lang.Integer getAckId()
getAckId
- Specified by:
getAckId
in interfaceAcknowledgeable
- Returns:
- a
Integer
object.
-
getAckUser
public java.lang.String getAckUser()
getAckUser
- Specified by:
getAckUser
in interfaceAcknowledgeable
- Returns:
- a
String
object.
-
getAckTime
public java.util.Date getAckTime()
getAckTime
- Specified by:
getAckTime
in interfaceAcknowledgeable
- Returns:
- a
Date
object.
-
clear
public void clear(java.lang.String ackUser)
clear
- Specified by:
clear
in interfaceAcknowledgeable
- Parameters:
ackUser
- aString
object.
-
escalate
public void escalate(java.lang.String ackUser)
escalate
- Specified by:
escalate
in interfaceAcknowledgeable
- Parameters:
ackUser
- aString
object.
-
unacknowledge
public void unacknowledge(java.lang.String ackUser)
unacknowledge
- Specified by:
unacknowledge
in interfaceAcknowledgeable
- Parameters:
ackUser
- aString
object.
-
-