public enum GlobalPermission extends Enum<GlobalPermission> implements Permission
PathPermission
Enum Constant and Description |
---|
AUTHENTICATE
Add an authentication handler.
|
CONTROL_SERVER
Change the server's runtime state - for example, shut it down.
|
MODIFY_SECURITY
Change the security configuration.
|
MODIFY_SESSION
Alter a client session.
|
MODIFY_TOPIC_VIEWS
Modify topic views.
|
READ_TOPIC_VIEWS
Read topic views.
|
REGISTER_HANDLER
Required to register any server-side handler.
|
UNKNOWN_GLOBAL_PERMISSION
A permission that is unsupported by the session.
|
VIEW_SECURITY
Read the security configuration.
|
VIEW_SERVER
View the server's runtime state - for example, read metrics.
|
VIEW_SESSION
List or listen to client sessions.
|
Modifier and Type | Method and Description |
---|---|
static GlobalPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalPermission AUTHENTICATE
public static final GlobalPermission VIEW_SESSION
public static final GlobalPermission MODIFY_SESSION
public static final GlobalPermission REGISTER_HANDLER
This restricts clients from consuming resources by registering long lived handlers (or example, addMessageHandler). Typically these would never be called due to lack of other permissions.
public static final GlobalPermission VIEW_SERVER
public static final GlobalPermission CONTROL_SERVER
public static final GlobalPermission VIEW_SECURITY
public static final GlobalPermission MODIFY_SECURITY
public static final GlobalPermission UNKNOWN_GLOBAL_PERMISSION
public static final GlobalPermission READ_TOPIC_VIEWS
public static final GlobalPermission MODIFY_TOPIC_VIEWS
public static GlobalPermission[] values()
for (GlobalPermission c : GlobalPermission.values()) System.out.println(c);
public static GlobalPermission 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.