PathPermission
. In
previous releases, the path-scoped permissions were called "topic
permissions". This was a source of confusion since some of the
permissions apply to message paths or to session lock names, both
of which are hierarchical but have nothing to do with topics in
the topic tree. The term "topic permission" has been renamed
"path permission" throughout the API. Additional methods have
been added to reflect this renaming. The old methods are
deprecated and will be removed in a future release.@Deprecated public enum TopicPermission extends Enum<TopicPermission> implements Permission
GlobalPermission
Enum Constant and Description |
---|
ACQUIRE_LOCK
Deprecated.
Acquire a session lock.
|
EDIT_OWN_TIME_SERIES_EVENTS
Deprecated.
Submit edits to time series topic events which have an author which is
the same as the principal of the calling session.
|
EDIT_TIME_SERIES_EVENTS
Deprecated.
Submit edits to time series topic events.
|
MODIFY_TOPIC
Deprecated.
Add a topic or remove a topic.
|
QUERY_OBSOLETE_TIME_SERIES_EVENTS
Deprecated.
Evaluate queries that return a non-current view of a time series topic.
|
READ_TOPIC
Deprecated.
Required to receive information from a topic.
|
SELECT_TOPIC
Deprecated.
Use a topic selector that selects the topic path.
|
SEND_TO_MESSAGE_HANDLER
Deprecated.
Send a message to a handler registered with the server.
|
SEND_TO_SESSION
Deprecated.
Send a message to a client session.
|
UNKNOWN_TOPIC_PERMISSION
Deprecated.
A permission that is unsupported by the session.
|
UPDATE_TOPIC
Deprecated.
Update a topic.
|
Modifier and Type | Method and Description |
---|---|
static TopicPermission |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static TopicPermission[] |
values()
Deprecated.
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 final TopicPermission QUERY_OBSOLETE_TIME_SERIES_EVENTS
The READ_TOPIC
permission is required to evaluate any type of
TimeSeries.Query
for a time series topic. This permission is additionally
required for queries that potentially return a non-current view of all or
part of a time series. Such queries include value range queries that
specify an edit range, and all types of edit range query.
TimeSeries
public static final TopicPermission EDIT_TIME_SERIES_EVENTS
The UPDATE_TOPIC
permission is required to update a time series
topic. This permission is additionally required to submit
edits
to a time series topic.
TimeSeries
,
EDIT_OWN_TIME_SERIES_EVENTS
public static final TopicPermission EDIT_OWN_TIME_SERIES_EVENTS
This permission is a more restrictive alternative to
EDIT_TIME_SERIES_EVENTS
.
The UPDATE_TOPIC
permission is required to update a time series
topic. This permission is additionally required to submit
edits
to a time series topic where the event
author is the same as the principal of the calling session.
TimeSeries
,
EDIT_TIME_SERIES_EVENTS
public static final TopicPermission ACQUIRE_LOCK
Session.lock(java.lang.String)
public static final TopicPermission UNKNOWN_TOPIC_PERMISSION
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 © 2022 Push Technology Ltd. All Rights Reserved.