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
EventBrokerException
TopicNode 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 roundEventBrokerException
void addTopic(String topicName) throws EventBrokerException
topicName
- topic nameEventBrokerException
TopicRolePermission[] getTopicRolePermission(String topicName) throws EventBrokerException
topicName
- topic nameEventBrokerException
void updatePermissions(String topicName, TopicRolePermission[] topicRolePermissions) throws EventBrokerException
topicName
- topic nametopicRolePermissions
- array of permissions for topicsEventBrokerException
Subscription[] getSubscriptions(String topicName, boolean withChildren) throws EventBrokerException
topicName
- topic namewithChildren
- include topics with children. i.e subtopicsEventBrokerException
Subscription[] getJMSSubscriptions(String topicName) throws EventBrokerException
topicName
- topic nameEventBrokerException
String[] getBackendRoles() throws EventBrokerException
EventBrokerException
boolean removeTopic(String topicName) throws EventBrokerException
topicName
- topic nameEventBrokerException
boolean isTopicExists(String topicName) throws EventBrokerException
topicName
- topic nameEventBrokerException
boolean checkUserHasAddTopicPermission(String username) throws EventBrokerException
username
- usernameEventBrokerException
boolean checkUserHasDeleteTopicPermission(String username) throws EventBrokerException
username
- usernameEventBrokerException
boolean checkUserHasDetailsTopicPermission(String username) throws EventBrokerException
username
- usernameEventBrokerException
boolean checkUserHasPublishTopicPermission(String topicName, String username) throws EventBrokerException
topicName
- topic name to check againstusername
- usernameEventBrokerException
Copyright © 2018 WSO2. All rights reserved.