@Deprecated public class RegistryTopicManager extends Object implements TopicManager
Constructor and Description |
---|
RegistryTopicManager(String topicStoragePath)
Deprecated.
Initializes Registry Topic Manager
|
Modifier and Type | Method and Description |
---|---|
void |
addTopic(String topicName)
Deprecated.
Adds a new topic
|
String[] |
getBackendRoles()
Deprecated.
Get array of backend roles excluding admin and wso2.anonymous.role roles
|
Subscription[] |
getJMSSubscriptions(String topicName)
Deprecated.
Gets the JMS subscriptions for a given topic
|
Subscription[] |
getSubscriptions(String topicName,
boolean withChildren)
Deprecated.
Gets subscriptions for a topic
|
TopicRolePermission[] |
getTopicRolePermission(String topicName)
Deprecated.
Gets the permissions for topic
|
String |
getTopicStoragePath()
Deprecated.
Gets the topic storage path
|
TopicNode |
getTopicTree()
Deprecated.
Gets the topic tree.
|
boolean |
isTopicExists(String topicName)
Deprecated.
Checks whether topic exists
|
boolean |
removeTopic(String topicName)
Deprecated.
Removes a topic
|
void |
setTopicStoragePath(String topicStoragePath)
Deprecated.
The topic storage path
|
void |
updatePermissions(String topicName,
TopicRolePermission[] topicRolePermissions)
Deprecated.
Update permissions for a topic
|
public RegistryTopicManager(String topicStoragePath)
topicStoragePath
- the topic registry pathpublic TopicNode getTopicTree() throws EventBrokerException
getTopicTree
in interface TopicManager
EventBrokerException
public void addTopic(String topicName) throws EventBrokerException
addTopic
in interface TopicManager
topicName
- topic nameEventBrokerException
public TopicRolePermission[] getTopicRolePermission(String topicName) throws EventBrokerException
getTopicRolePermission
in interface TopicManager
topicName
- topic nameEventBrokerException
public void updatePermissions(String topicName, TopicRolePermission[] topicRolePermissions) throws EventBrokerException
updatePermissions
in interface TopicManager
topicName
- topic nametopicRolePermissions
- array of permissions for topicsEventBrokerException
public String getTopicStoragePath()
public void setTopicStoragePath(String topicStoragePath)
topicStoragePath
- path for topic storagepublic Subscription[] getSubscriptions(String topicName, boolean withChildren) throws EventBrokerException
getSubscriptions
in interface TopicManager
topicName
- topic namewithChildren
- include topics with children. i.e subtopicsEventBrokerException
public Subscription[] getJMSSubscriptions(String topicName) throws EventBrokerException
getJMSSubscriptions
in interface TopicManager
topicName
- topic nameEventBrokerException
public String[] getBackendRoles() throws EventBrokerException
getBackendRoles
in interface TopicManager
EventBrokerException
public boolean removeTopic(String topicName) throws EventBrokerException
removeTopic
in interface TopicManager
topicName
- topic nameEventBrokerException
public boolean isTopicExists(String topicName) throws EventBrokerException
isTopicExists
in interface TopicManager
topicName
- topic nameEventBrokerException
Copyright © 2018 WSO2. All rights reserved.