public enum TopicPermission extends Enum<TopicPermission> implements Permission
GlobalPermission
Enum Constant and Description |
---|
MODIFY_TOPIC
Add a topic or remove a topic.
|
READ_TOPIC
Required to receive information from a topic.
|
SELECT_TOPIC
Use a topic selector that selects the topic path.
|
SEND_TO_MESSAGE_HANDLER
Send a message to a handler registered with the server.
|
SEND_TO_SESSION
Send a message to a client session.
|
UPDATE_TOPIC
Update a topic.
|
Modifier and Type | Method and Description |
---|---|
static TopicPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicPermission SELECT_TOPIC
A session must have this permission for the
path prefix
of any topic selector used to subscribe or fetch.
When the subscription or fetch request completes, the resulting topics
are further filtered based on the READ_TOPIC
permission.
A session that has READ_TOPIC
but not SELECT_TOPIC
for a
particular topic path cannot subscribe directly to topics belonging to
the path. However, the session can be independently subscribed by a
control session that has GlobalPermission.MODIFY_SESSION
permission in addition to the appropriate SELECT_TOPIC
permission.
public static final TopicPermission READ_TOPIC
If a session does not have read_topic permission for a topic, the topic will be excluded from the results of subscription or fetch operations for the session, and the topic's details cannot be retrieved by the session.
SELECT_TOPIC
public static final TopicPermission UPDATE_TOPIC
public static final TopicPermission MODIFY_TOPIC
public static final TopicPermission SEND_TO_MESSAGE_HANDLER
public static final TopicPermission SEND_TO_SESSION
public static TopicPermission[] values()
for (TopicPermission c : TopicPermission.values()) System.out.println(c);
public static TopicPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.