Class SyslogNorthbounderConfigurationResource

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Component
    public class SyslogNorthbounderConfigurationResource
    extends OnmsRestService
    implements org.springframework.beans.factory.InitializingBean
    The Class SyslogNorthbounderConfigurationResource.
    Author:
    Alejandro Galue
    • Constructor Detail

      • SyslogNorthbounderConfigurationResource

        public SyslogNorthbounderConfigurationResource()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getConfiguration

        public javax.ws.rs.core.Response getConfiguration()
        Gets the configuration.
        Returns:
        the configuration
      • setConfiguration

        public javax.ws.rs.core.Response setConfiguration​(SyslogNorthbounderConfig config)
        Sets the configuration.
        Parameters:
        config - the full configuration object
        Returns:
        the response
      • getStatus

        public javax.ws.rs.core.Response getStatus()
        Gets the status.
        Returns:
        the status
      • getStatus

        public javax.ws.rs.core.Response getStatus​(Boolean enabled)
                                            throws javax.ws.rs.WebApplicationException
        Gets the status.
        Parameters:
        enabled - the enabled
        Returns:
        the status
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception
      • getEmailDestinations

        public javax.ws.rs.core.Response getEmailDestinations()
        Gets all the email destinations.
        Returns:
        the email destinations
      • getSyslogDestination

        public SyslogDestination getSyslogDestination​(String destinationName)
        Gets a syslog destination.
        Parameters:
        destinationName - the destination name
        Returns:
        the syslog destination
      • setSyslogDestination

        public javax.ws.rs.core.Response setSyslogDestination​(SyslogDestination destination)
        Sets a syslog destination.

        If there is a destination with the same name, the existing one will be overridden.

        Parameters:
        destination - the destination
        Returns:
        the response
      • updateSyslogDestination

        public javax.ws.rs.core.Response updateSyslogDestination​(String destinationName,
                                                                 MultivaluedMapImpl params)
        Update a specific Syslog Destination.
        Parameters:
        destinationName - the destination name
        params - the parameters map
        Returns:
        the response
      • removeSyslogDestination

        public javax.ws.rs.core.Response removeSyslogDestination​(String destinationName)
        Removes a specific syslog destination.
        Parameters:
        destinationName - the destination name
        Returns:
        the response