public class TopicManagerAdminService extends Object
| Constructor and Description |
|---|
TopicManagerAdminService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTopic(String topic)
Adds a new topic
|
org.wso2.carbon.event.core.topic.TopicNode |
getAllTopics()
Gets all the topics
|
int |
getAllWSSubscriptionCountForTopic(String topic)
Gets the total number of subscriptions for a topic
Suppressing warning as this is used as a web service
|
Subscription[] |
getAllWSSubscriptionsForTopic(String topic,
int startingIndex,
int maxSubscriptionCount)
Gets all subscriptions for a topic with limited results to return
Suppressing warning as this is used as a web service
|
Subscription[] |
getJMSSubscriptionsForTopic(String topic)
Gets the JMS subscriptions for a topic
Suppressing warning as this is used as a web service
|
org.wso2.carbon.event.core.topic.TopicRolePermission[] |
getTopicRolePermissions(String topic)
Gets the permission roles for a topic
Suppressing warning as this is used as a web service
|
String[] |
getUserRoles()
Gets user roles through topic manager
|
Subscription[] |
getWsSubscriptionsForTopic(String topic)
Gets all the subscriptions
Suppressing warning as this is used as a web service
|
boolean |
removeTopic(String topic)
Removes a topic
Suppressing warning as this is used as a web service
|
void |
updatePermission(String topic,
org.wso2.carbon.event.core.topic.TopicRolePermission[] topicRolePermissions)
Updates the permissions for roles of a topic
Suppressing warning as this is used as a web service
|
public org.wso2.carbon.event.core.topic.TopicNode getAllTopics()
throws EventAdminException
EventAdminExceptionpublic org.wso2.carbon.event.core.topic.TopicRolePermission[] getTopicRolePermissions(String topic) throws EventAdminException
topic - Topic nameEventAdminException - Thrown when topic manager cannot be accessed.public void addTopic(String topic) throws EventAdminException
topic - New topic nameEventAdminException - Thrown when accessing registry or when providing permissions.public void updatePermission(String topic, org.wso2.carbon.event.core.topic.TopicRolePermission[] topicRolePermissions) throws EventAdminException
topic - Topic nametopicRolePermissions - New roles with permissionsEventAdminException - Thrown when updating topic permissions.public Subscription[] getAllWSSubscriptionsForTopic(String topic, int startingIndex, int maxSubscriptionCount) throws EventAdminException
topic - Topic namestartingIndex - Starting index of which the results should be returnedmaxSubscriptionCount - The amount of results to be returnedEventAdminException - Thrown when accessing topic manager.public Subscription[] getWsSubscriptionsForTopic(String topic) throws EventAdminException
topic - Topic nameEventAdminException - Thrown when accessing topic manager.public int getAllWSSubscriptionCountForTopic(String topic) throws EventAdminException
topic - Topic nameEventAdminException - Thrown when accessing topic manager.public Subscription[] getJMSSubscriptionsForTopic(String topic) throws EventAdminException
topic - Topic nameEventAdminException - Thrown when getting JMS subscriptions details from registry.public String[] getUserRoles() throws EventAdminException
EventAdminException - Thrown when topic manager is unable to get user roles.public boolean removeTopic(String topic) throws EventAdminException
topic - Topic nameEventAdminExceptionCopyright © 2019 WSO2. All rights reserved.