Class EventSinkConfigAdmin


  • public class EventSinkConfigAdmin
    extends org.wso2.carbon.core.AbstractAdmin
    Admin service class to expose all web services
    • Field Summary

      • Fields inherited from class org.wso2.carbon.core.AbstractAdmin

        axisConfig, configurationContext
    • Constructor Detail

      • EventSinkConfigAdmin

        public EventSinkConfigAdmin()
    • Method Detail

      • writeEventSink

        public boolean writeEventSink​(String name,
                                      String username,
                                      String password,
                                      String receiverUrl,
                                      String authenticatorUrl)
                               throws org.wso2.carbon.event.sink.EventSinkException
        Invokes Appropriate class methods to write event sink xml file
        Parameters:
        name - String to set as Event Sink name
        username - String to set as Event Sink username
        password - String to set as Event Sink password
        receiverUrl - String to set as Event Sink receiverUrl
        authenticatorUrl - String to set as Event Sink authenticatorUrl
        Throws:
        org.wso2.carbon.event.sink.EventSinkException
      • getAllEventSinks

        public List<org.wso2.carbon.event.sink.EventSink> getAllEventSinks()
        Invokes appropriate methods to get All Event Sinks
        Returns:
        list of Evenn Sinks in the deployment directory
      • getEventSinkFromName

        public org.wso2.carbon.event.sink.EventSink getEventSinkFromName​(String name)
                                                                  throws org.wso2.carbon.event.sink.EventSinkException
        Invokes appropriate methods to get specific Event Sink
        Parameters:
        name - Event Sink name to be retrieved.
        Returns:
        Requested Event Sink
        Throws:
        org.wso2.carbon.event.sink.EventSinkException
      • deleteEventSink

        public boolean deleteEventSink​(String name)
                                throws org.wso2.carbon.event.sink.EventSinkException
        Invokes appropriate methods to delete specific Event Sink
        Parameters:
        name - Event Sink to be deleted
        Returns:
        Status of the deletion as boolean value
        Throws:
        org.wso2.carbon.event.sink.EventSinkException
      • updateEventSink

        public boolean updateEventSink​(String name,
                                       String username,
                                       String password,
                                       String receiverUrl,
                                       String authenticatorUrl)
                                throws org.wso2.carbon.event.sink.EventSinkException
        Invokes appropriate methods to update specific Event Sink
        Parameters:
        name - String to set as Event Sink name
        username - String to set as Event Sink username
        password - String to set as Event Sink password
        receiverUrl - String to set as Event Sink receiverUrl
        authenticatorUrl - String to set as Event Sink authenticatorUrl
        Returns:
        Status of the update as boolean value
        Throws:
        org.wso2.carbon.event.sink.EventSinkException