public final class TopicAdminHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FOR_PUBLISHING
Validate topic creation for publication.
|
static int |
FOR_SUBSCRIBING
Validate topic creation for subscription.
|
static java.lang.String |
ROOT
The root cmw topic namespace
|
| Constructor and Description |
|---|
TopicAdminHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
validateTopic(java.lang.String topic,
java.lang.String username,
int reason)
Check the topic validity with respect to the username.
|
public static final java.lang.String ROOT
public static final int FOR_PUBLISHING
public static final int FOR_SUBSCRIBING
public static boolean validateTopic(java.lang.String topic,
java.lang.String username,
int reason)
topic - The topic name.username - The username.reason - The reason why the topic is about to be created.