Class 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 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 - a Integer object.
        textMsg - a String object.
        subject - a String object.
        numericMsg - a String object.
        pageTime - a Date object.
        respondTime - a Date object.
        answeredBy - a String object.
        ipAddress - a String object.
        serviceType - a OnmsServiceType object.
        queueId - a String object.
        event - a OnmsEvent object.
        node - a OnmsNode object.
        usersNotified - a Set object.
        notifConfigName - a String 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
        Parameters:
        notifyId - a Integer object.
        textMsg - a String object.
        event - a OnmsEvent object.
        node - a OnmsNode object.
        usersNotified - a Set object.
    • Method Detail

      • getNotifyId

        public java.lang.Integer getNotifyId()

        getNotifyId

        Returns:
        a Integer object.
      • setNotifyId

        public void setNotifyId​(java.lang.Integer notifyid)

        setNotifyId

        Parameters:
        notifyid - a Integer object.
      • getTextMsg

        public java.lang.String getTextMsg()

        getTextMsg

        Returns:
        a String object.
      • setTextMsg

        public void setTextMsg​(java.lang.String textmsg)

        setTextMsg

        Parameters:
        textmsg - a String object.
      • getSubject

        public java.lang.String getSubject()

        getSubject

        Returns:
        a String object.
      • setSubject

        public void setSubject​(java.lang.String subject)

        setSubject

        Parameters:
        subject - a String object.
      • getNumericMsg

        public java.lang.String getNumericMsg()

        getNumericMsg

        Returns:
        a String object.
      • setNumericMsg

        public void setNumericMsg​(java.lang.String numericmsg)

        setNumericMsg

        Parameters:
        numericmsg - a String object.
      • getPageTime

        public java.util.Date getPageTime()

        getPageTime

        Returns:
        a Date object.
      • setPageTime

        public void setPageTime​(java.util.Date pagetime)

        setPageTime

        Parameters:
        pagetime - a Date object.
      • getRespondTime

        public java.util.Date getRespondTime()

        getRespondTime

        Returns:
        a Date object.
      • setRespondTime

        public void setRespondTime​(java.util.Date respondtime)

        setRespondTime

        Parameters:
        respondtime - a Date object.
      • getAnsweredBy

        public java.lang.String getAnsweredBy()

        getAnsweredBy

        Returns:
        a String object.
      • setAnsweredBy

        public void setAnsweredBy​(java.lang.String answeredby)

        setAnsweredBy

        Parameters:
        answeredby - a String object.
      • getIpAddress

        public java.net.InetAddress getIpAddress()

        getIpAddress

        Returns:
        a String object.
      • setIpAddress

        public void setIpAddress​(java.net.InetAddress ipAddress)

        setIpAddress

        Parameters:
        ipAddress - a String object.
      • getQueueId

        public java.lang.String getQueueId()

        getQueueId

        Returns:
        a String object.
      • setQueueId

        public void setQueueId​(java.lang.String queueid)

        setQueueId

        Parameters:
        queueid - a String object.
      • setEvent

        public void setEvent​(OnmsEvent event)

        setEvent

        Parameters:
        event - a OnmsEvent 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 - a String object.
      • getSeverityLabel

        public java.lang.String getSeverityLabel()

        getSeverityLabel

        Returns:
        a String object.
      • getNodeId

        public java.lang.Integer getNodeId()
      • getNodeLabel

        public java.lang.String getNodeLabel()
      • setNode

        public void setNode​(OnmsNode node)

        setNode

        Parameters:
        node - a OnmsNode object.
      • getUsersNotified

        public java.util.Set<OnmsUserNotification> getUsersNotified()

        getUsersNotified

        Returns:
        a Set object.
      • setUsersNotified

        public void setUsersNotified​(java.util.Set<OnmsUserNotification> usersnotifieds)

        setUsersNotified

        Parameters:
        usersnotifieds - a Set object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.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 - a String object.
      • acknowledge

        public void acknowledge​(java.lang.String ackUser)

        acknowledge

        Specified by:
        acknowledge in interface Acknowledgeable
        Parameters:
        ackUser - a String object.
      • getAckId

        public java.lang.Integer getAckId()

        getAckId

        Specified by:
        getAckId in interface Acknowledgeable
        Returns:
        a Integer object.
      • getAckUser

        public java.lang.String getAckUser()

        getAckUser

        Specified by:
        getAckUser in interface Acknowledgeable
        Returns:
        a String object.
      • getAckTime

        public java.util.Date getAckTime()

        getAckTime

        Specified by:
        getAckTime in interface Acknowledgeable
        Returns:
        a Date object.
      • clear

        public void clear​(java.lang.String ackUser)

        clear

        Specified by:
        clear in interface Acknowledgeable
        Parameters:
        ackUser - a String object.
      • escalate

        public void escalate​(java.lang.String ackUser)

        escalate

        Specified by:
        escalate in interface Acknowledgeable
        Parameters:
        ackUser - a String object.
      • unacknowledge

        public void unacknowledge​(java.lang.String ackUser)

        unacknowledge

        Specified by:
        unacknowledge in interface Acknowledgeable
        Parameters:
        ackUser - a String object.