Enum Class GlobalPermission
- All Implemented Interfaces:
Permission,Serializable,Comparable<GlobalPermission>,Constable
Permissions that protect globally scoped, access-controlled operations. There
is no related object, permission is granted globally.
- Since:
- 5.2
- Author:
- DiffusionData Limited
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd an authentication handler.Change the server's runtime state - for example, shut it down.Change the security configuration.Alter a client session.Modify topic views.Read topic views.Required to register any server-side handler.A permission that is unsupported by the session.Read the security configuration.View the server's runtime state - for example, read metrics.List or listen to client sessions. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalPermissionReturns the enum constant of this class with the specified name.static GlobalPermission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHENTICATE
Add an authentication handler. -
VIEW_SESSION
List or listen to client sessions. -
MODIFY_SESSION
Alter a client session. This covers a range of actions including:- subscribe session to topic
- enable conflation for session
- close session
-
REGISTER_HANDLER
Required to register any server-side 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.
-
VIEW_SERVER
View the server's runtime state - for example, read metrics. -
CONTROL_SERVER
Change the server's runtime state - for example, shut it down. -
VIEW_SECURITY
Read the security configuration. -
MODIFY_SECURITY
Change the security configuration. -
UNKNOWN_GLOBAL_PERMISSION
A permission that is unsupported by the session.- Since:
- 6.1
-
READ_TOPIC_VIEWS
Read topic views.- Since:
- 6.3
-
MODIFY_TOPIC_VIEWS
Modify topic views.- Since:
- 6.3
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-