Class EventSinkConfigAdmin

java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.event.sink.config.services.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Invokes appropriate methods to delete specific Event Sink
    List<org.wso2.carbon.event.sink.EventSink>
    Invokes appropriate methods to get All Event Sinks
    org.wso2.carbon.event.sink.EventSink
    Invokes appropriate methods to get specific Event Sink
    boolean
    updateEventSink(String name, String username, String password, String receiverUrl, String authenticatorUrl)
    Invokes appropriate methods to update specific Event Sink
    boolean
    writeEventSink(String name, String username, String password, String receiverUrl, String authenticatorUrl)
    Invokes Appropriate class methods to write event sink xml file

    Methods inherited from class org.wso2.carbon.core.AbstractAdmin

    getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserId, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventSinkConfigAdmin

      public EventSinkConfigAdmin()
  • Method Details

    • 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