public interface TopicManagerService
| Modifier and Type | Method and Description |
|---|---|
void |
addTopic(String topicName)
Adds a new topic
|
boolean |
checkUserHasAddTopicPermission(String username)
Check if given user has add topic permission.
|
boolean |
checkUserHasDeleteTopicPermission(String username)
Check if given user has delete topic permission.
|
boolean |
checkUserHasDetailsTopicPermission(String username)
Check if given user has permission to view topic details.
|
boolean |
checkUserHasPublishTopicPermission(String topicName,
String username)
Check if given user has permission to publish to topic.
|
String[] |
getBackendRoles()
Get array of backend roles excluding admin and wso2.anonymous.role roles
|
Subscription[] |
getJMSSubscriptions(String topicName)
Gets the JMS subscriptions for a given topic
|
TopicNode |
getPaginatedTopicTree(String topicPath,
int startIndex,
int numberOfTopicsPerRound)
Get the paginated topic tree.
|
Subscription[] |
getSubscriptions(String topicName,
boolean withChildren)
Gets subscriptions for a topic
|
TopicRolePermission[] |
getTopicRolePermission(String topicName)
Gets the permissions for topic
|
TopicNode |
getTopicTree()
Gets the topic tree.
|
boolean |
isTopicExists(String topicName)
Checks whether topic exists
|
boolean |
removeTopic(String topicName)
Removes a topic
|
void |
updatePermissions(String topicName,
TopicRolePermission[] topicRolePermissions)
Update permissions for a topic
|
TopicNode getTopicTree() throws EventBrokerException
EventBrokerExceptionTopicNode getPaginatedTopicTree(String topicPath, int startIndex, int numberOfTopicsPerRound) throws EventBrokerException
topicPath - path of the node in the topic treestartIndex - start index of the paginated treenumberOfTopicsPerRound - number of topics should be shown per roundEventBrokerExceptionvoid addTopic(String topicName) throws EventBrokerException
topicName - topic nameEventBrokerExceptionTopicRolePermission[] getTopicRolePermission(String topicName) throws EventBrokerException
topicName - topic nameEventBrokerExceptionvoid updatePermissions(String topicName, TopicRolePermission[] topicRolePermissions) throws EventBrokerException
topicName - topic nametopicRolePermissions - array of permissions for topicsEventBrokerExceptionSubscription[] getSubscriptions(String topicName, boolean withChildren) throws EventBrokerException
topicName - topic namewithChildren - include topics with children. i.e subtopicsEventBrokerExceptionSubscription[] getJMSSubscriptions(String topicName) throws EventBrokerException
topicName - topic nameEventBrokerExceptionString[] getBackendRoles() throws EventBrokerException
EventBrokerExceptionboolean removeTopic(String topicName) throws EventBrokerException
topicName - topic nameEventBrokerExceptionboolean isTopicExists(String topicName) throws EventBrokerException
topicName - topic nameEventBrokerExceptionboolean checkUserHasAddTopicPermission(String username) throws EventBrokerException
username - usernameEventBrokerExceptionboolean checkUserHasDeleteTopicPermission(String username) throws EventBrokerException
username - usernameEventBrokerExceptionboolean checkUserHasDetailsTopicPermission(String username) throws EventBrokerException
username - usernameEventBrokerExceptionboolean checkUserHasPublishTopicPermission(String topicName, String username) throws EventBrokerException
topicName - topic name to check againstusername - usernameEventBrokerExceptionCopyright © 2017 WSO2. All rights reserved.