Class NotifdConfigManager

  • Direct Known Subclasses:
    MockNotifdConfigManager, NotifdConfigFactory

    public abstract class NotifdConfigManager
    extends java.lang.Object

    Abstract NotifdConfigManager class.

    Version:
    $Id: $
    Author:
    david TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
    • Constructor Detail

      • NotifdConfigManager

        public NotifdConfigManager()
    • Method Detail

      • parseXml

        public void parseXml​(java.io.InputStream stream)
                      throws java.io.IOException

        parseXml

        Parameters:
        stream - a InputStream object.
        Throws:
        java.io.IOException - if any.
      • getConfiguration

        public NotifdConfiguration getConfiguration()
                                             throws java.io.IOException

        Getter for the field configuration.

        Returns:
        a NotifdConfiguration object.
        Throws:
        java.io.IOException - if any.
      • update

        protected abstract void update()
                                throws java.io.IOException

        update

        Throws:
        java.io.IOException - if any.
      • getNotificationStatus

        public java.lang.String getNotificationStatus()
                                               throws java.io.IOException

        getNotificationStatus

        Returns:
        a String object.
        Throws:
        java.io.IOException - if any.
      • turnNotifdOn

        public final void turnNotifdOn()
                                throws java.io.IOException
        Turns the notifd service on
        Throws:
        java.io.IOException - if any.
      • turnNotifdOff

        public final void turnNotifdOff()
                                 throws java.io.IOException
        Turns the notifd service off
        Throws:
        java.io.IOException - if any.
      • getNotificationMatch

        public boolean getNotificationMatch()
                                     throws java.io.IOException

        getNotificationMatch

        Returns:
        a boolean.
        Throws:
        java.io.IOException - if any.
      • saveCurrent

        public void saveCurrent()
                         throws java.io.IOException

        saveCurrent

        Throws:
        java.io.IOException - if any.
      • saveXml

        protected abstract void saveXml​(java.lang.String xml)
                                 throws java.io.IOException

        saveXml

        Parameters:
        xml - a String object.
        Throws:
        java.io.IOException - if any.
      • getNextNotifIdSql

        public java.lang.String getNextNotifIdSql()
                                           throws java.io.IOException

        getNextNotifIdSql

        Returns:
        a String object.
        Throws:
        java.io.IOException - if any.
      • matchNotificationParameters

        public boolean matchNotificationParameters​(Event event,
                                                   Notification notification)

        matchNotificationParameters

        Parameters:
        event - a Event object.
        notification - a Notification object.
        Returns:
        a boolean.
      • getNextUserNotifIdSql

        public java.lang.String getNextUserNotifIdSql()
                                               throws java.io.IOException

        getNextUserNotifIdSql

        Returns:
        a String object.
        Throws:
        java.io.IOException - if any.
      • getAutoAcknowledges

        public java.util.Collection<AutoAcknowledge> getAutoAcknowledges()
                                                                  throws java.io.IOException

        getAutoAcknowledges

        Returns:
        a Collection object.
        Throws:
        java.io.IOException - if any.
      • getOutageCalendarNames

        public java.util.Collection<java.lang.String> getOutageCalendarNames()
                                                                      throws java.io.IOException

        getOutageCalendarNames

        Returns:
        a Collection object.
        Throws:
        java.io.IOException - if any.