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
-
-
Constructor Summary
Constructors Constructor Description EventSinkConfigAdmin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteEventSink(String name)
Invokes appropriate methods to delete specific Event SinkList<org.wso2.carbon.event.sink.EventSink>
getAllEventSinks()
Invokes appropriate methods to get All Event Sinksorg.wso2.carbon.event.sink.EventSink
getEventSinkFromName(String name)
Invokes appropriate methods to get specific Event Sinkboolean
updateEventSink(String name, String username, String password, String receiverUrl, String authenticatorUrl)
Invokes appropriate methods to update specific Event Sinkboolean
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, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
-
-
-
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 nameusername
- String to set as Event Sink usernamepassword
- String to set as Event Sink passwordreceiverUrl
- String to set as Event Sink receiverUrlauthenticatorUrl
- 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 nameusername
- String to set as Event Sink usernamepassword
- String to set as Event Sink passwordreceiverUrl
- String to set as Event Sink receiverUrlauthenticatorUrl
- String to set as Event Sink authenticatorUrl- Returns:
- Status of the update as boolean value
- Throws:
org.wso2.carbon.event.sink.EventSinkException
-
-