Enum Class GlobalPermission
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<GlobalPermission>, Constable
@Generated
public enum GlobalPermission
extends Enum<GlobalPermission>
implements com.google.protobuf.ProtocolMessageEnum
Server-wide permissions that apply globally across all instances. These permissions control access to server administration, user management, and self-service operations. Checked via the PermissionContext.global() method. ADMIN role users have all global permissions by default.Protobuf enum
soulfire.v1.GlobalPermission-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPermission to create new SoulFire instances.Permission to create new user accounts.Permission to delete user accounts.Permission to generate API tokens for other users.Permission to generate an API token for oneself.Permission to generate a WebDAV authentication token for oneself.Permission to execute commands at the global/server level.Permission to subscribe to server-wide log streams.Permission to invalidate one's own sessions.Permission to invalidate sessions for other users.Permission to read the authenticated user's own client data.Permission to read the server configuration.Permission to read information about other users.Permission to update one's own email address.Permission to update one's own username.Permission to modify the server configuration.Permission to modify other users' accounts. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPermission to create new SoulFire instances.static final intPermission to create new user accounts.static final intPermission to delete user accounts.static final intPermission to generate API tokens for other users.static final intPermission to generate an API token for oneself.static final intPermission to generate a WebDAV authentication token for oneself.static final intPermission to execute commands at the global/server level.static final intPermission to subscribe to server-wide log streams.static final intPermission to invalidate one's own sessions.static final intPermission to invalidate sessions for other users.static final intPermission to read the authenticated user's own client data.static final intPermission to read the server configuration.static final intPermission to read information about other users.static final intPermission to update one's own email address.static final intPermission to update one's own username.static final intPermission to modify the server configuration.static final intPermission to modify other users' accounts. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalPermissionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<GlobalPermission> static GlobalPermissionvalueOf(int value) Deprecated.static GlobalPermissionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static 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
-
CREATE_INSTANCE
Permission to create new SoulFire instances. Required by InstanceService.CreateInstance RPC.
CREATE_INSTANCE = 0; -
GLOBAL_SUBSCRIBE_LOGS
Permission to subscribe to server-wide log streams. Allows receiving logs from all instances and system components.
GLOBAL_SUBSCRIBE_LOGS = 1; -
READ_CLIENT_DATA
Permission to read the authenticated user's own client data. Required by ClientService.GetClientData RPC. Returns user profile, permissions, and server information.
READ_CLIENT_DATA = 2; -
READ_SERVER_CONFIG
Permission to read the server configuration. Required by ServerService.GetServerInfo RPC.
READ_SERVER_CONFIG = 3; -
UPDATE_SERVER_CONFIG
Permission to modify the server configuration. Required by ServerService.UpdateServerConfig and UpdateServerConfigEntry RPCs.
UPDATE_SERVER_CONFIG = 4; -
CREATE_USER
Permission to create new user accounts. Required by UserService.CreateUser RPC.
CREATE_USER = 5; -
READ_USER
Permission to read information about other users. Required by UserService.ListUsers and GetUserInfo RPCs.
READ_USER = 6; -
UPDATE_USER
Permission to modify other users' accounts. Required by UserService.UpdateUser RPC.
UPDATE_USER = 7; -
DELETE_USER
Permission to delete user accounts. Required by UserService.DeleteUser RPC.
DELETE_USER = 8; -
GLOBAL_COMMAND_EXECUTION
Permission to execute commands at the global/server level. Required by CommandService for server-wide command execution.
GLOBAL_COMMAND_EXECUTION = 9; -
INVALIDATE_SESSIONS
Permission to invalidate sessions for other users. Required by UserService.InvalidateSessions RPC. Forces other users to re-authenticate.
INVALIDATE_SESSIONS = 11; -
GENERATE_SELF_WEBDAV_TOKEN
Permission to generate a WebDAV authentication token for oneself. Required by ClientService.GenerateWebDAVToken RPC. WebDAV tokens provide file system access to instance data.
GENERATE_SELF_WEBDAV_TOKEN = 12; -
GENERATE_SELF_API_TOKEN
Permission to generate an API token for oneself. Required by ClientService.GenerateAPIToken RPC. API tokens can be used for programmatic access.
GENERATE_SELF_API_TOKEN = 15; -
UPDATE_SELF_USERNAME
Permission to update one's own username. Required by ClientService.UpdateSelfUsername RPC.
UPDATE_SELF_USERNAME = 13; -
UPDATE_SELF_EMAIL
Permission to update one's own email address. Required by ClientService.UpdateSelfEmail RPC.
UPDATE_SELF_EMAIL = 14; -
GENERATE_API_TOKEN
Permission to generate API tokens for other users. Required by UserService.GenerateUserAPIToken RPC.
GENERATE_API_TOKEN = 16; -
INVALIDATE_SELF_SESSIONS
Permission to invalidate one's own sessions. Required by ClientService.InvalidateSelfSessions RPC. Logs the user out of all devices.
INVALIDATE_SELF_SESSIONS = 17; -
UNRECOGNIZED
-
-
Field Details
-
CREATE_INSTANCE_VALUE
public static final int CREATE_INSTANCE_VALUEPermission to create new SoulFire instances. Required by InstanceService.CreateInstance RPC.
CREATE_INSTANCE = 0;- See Also:
-
GLOBAL_SUBSCRIBE_LOGS_VALUE
public static final int GLOBAL_SUBSCRIBE_LOGS_VALUEPermission to subscribe to server-wide log streams. Allows receiving logs from all instances and system components.
GLOBAL_SUBSCRIBE_LOGS = 1;- See Also:
-
READ_CLIENT_DATA_VALUE
public static final int READ_CLIENT_DATA_VALUEPermission to read the authenticated user's own client data. Required by ClientService.GetClientData RPC. Returns user profile, permissions, and server information.
READ_CLIENT_DATA = 2;- See Also:
-
READ_SERVER_CONFIG_VALUE
public static final int READ_SERVER_CONFIG_VALUEPermission to read the server configuration. Required by ServerService.GetServerInfo RPC.
READ_SERVER_CONFIG = 3;- See Also:
-
UPDATE_SERVER_CONFIG_VALUE
public static final int UPDATE_SERVER_CONFIG_VALUEPermission to modify the server configuration. Required by ServerService.UpdateServerConfig and UpdateServerConfigEntry RPCs.
UPDATE_SERVER_CONFIG = 4;- See Also:
-
CREATE_USER_VALUE
public static final int CREATE_USER_VALUEPermission to create new user accounts. Required by UserService.CreateUser RPC.
CREATE_USER = 5;- See Also:
-
READ_USER_VALUE
public static final int READ_USER_VALUEPermission to read information about other users. Required by UserService.ListUsers and GetUserInfo RPCs.
READ_USER = 6;- See Also:
-
UPDATE_USER_VALUE
public static final int UPDATE_USER_VALUEPermission to modify other users' accounts. Required by UserService.UpdateUser RPC.
UPDATE_USER = 7;- See Also:
-
DELETE_USER_VALUE
public static final int DELETE_USER_VALUEPermission to delete user accounts. Required by UserService.DeleteUser RPC.
DELETE_USER = 8;- See Also:
-
GLOBAL_COMMAND_EXECUTION_VALUE
public static final int GLOBAL_COMMAND_EXECUTION_VALUEPermission to execute commands at the global/server level. Required by CommandService for server-wide command execution.
GLOBAL_COMMAND_EXECUTION = 9;- See Also:
-
INVALIDATE_SESSIONS_VALUE
public static final int INVALIDATE_SESSIONS_VALUEPermission to invalidate sessions for other users. Required by UserService.InvalidateSessions RPC. Forces other users to re-authenticate.
INVALIDATE_SESSIONS = 11;- See Also:
-
GENERATE_SELF_WEBDAV_TOKEN_VALUE
public static final int GENERATE_SELF_WEBDAV_TOKEN_VALUEPermission to generate a WebDAV authentication token for oneself. Required by ClientService.GenerateWebDAVToken RPC. WebDAV tokens provide file system access to instance data.
GENERATE_SELF_WEBDAV_TOKEN = 12;- See Also:
-
GENERATE_SELF_API_TOKEN_VALUE
public static final int GENERATE_SELF_API_TOKEN_VALUEPermission to generate an API token for oneself. Required by ClientService.GenerateAPIToken RPC. API tokens can be used for programmatic access.
GENERATE_SELF_API_TOKEN = 15;- See Also:
-
UPDATE_SELF_USERNAME_VALUE
public static final int UPDATE_SELF_USERNAME_VALUEPermission to update one's own username. Required by ClientService.UpdateSelfUsername RPC.
UPDATE_SELF_USERNAME = 13;- See Also:
-
UPDATE_SELF_EMAIL_VALUE
public static final int UPDATE_SELF_EMAIL_VALUEPermission to update one's own email address. Required by ClientService.UpdateSelfEmail RPC.
UPDATE_SELF_EMAIL = 14;- See Also:
-
GENERATE_API_TOKEN_VALUE
public static final int GENERATE_API_TOKEN_VALUEPermission to generate API tokens for other users. Required by UserService.GenerateUserAPIToken RPC.
GENERATE_API_TOKEN = 16;- See Also:
-
INVALIDATE_SELF_SESSIONS_VALUE
public static final int INVALIDATE_SELF_SESSIONS_VALUEPermission to invalidate one's own sessions. Required by ClientService.InvalidateSelfSessions RPC. Logs the user out of all devices.
INVALIDATE_SELF_SESSIONS = 17;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
desc- 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
-