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 topicTopicPermission
public static Object createSubscribePermission(String topic)
topic
- The target topicTopicPermission
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.