public abstract class PermissionsUtil extends Object
| Constructor and Description |
|---|
PermissionsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createPublishPermission(String topic)
Creates a TopicPermission for the given topic and the type PUBLISH
Note that a
java.lang.Object is returned in case creating a new TopicPermission
fails.
|
static Object |
createSubscribePermission(String topic)
Creates a TopicPermission for the given topic and the type SUBSCRIBE
Note that a
java.lang.Object is returned in case creating a new TopicPermission
fails.
|
public static Object createPublishPermission(String topic)
topic - The target topicTopicPermissionpublic static Object createSubscribePermission(String topic)
topic - The target topicTopicPermissionCopyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.