class UserController
- UserController
- Controller
- ActionController::Base
- Reference
- Object
Defined in:
lavinmq/api/controllers/user.crConstant Summary
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json"]
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.list_all_users(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#bulk_delete(list_users : BulkUser)
Bulk delete users Delete multiple users.
-
#create_or_update(name : String, user : UserInput) : Nil | LavinMQ::User
Create/update user Create new user, or update an existing user.
-
#delete(name : String)
Delete user Remove a specific user by name.
-
#list_all_users : Array(User)
List all users List all users in the server.
-
#list_all_users_without_permissions : Array(User)
List users with no permissions List all users that doesn't have any permissions.
-
#list_user(name : String) : User | Nil
List user Find a specific user by name.
-
#permissions(name : String, vhost : String | Nil) : Array(Permission)
List permissions of user List permissions by user.
Instance methods inherited from class Controller
amqpserver_is_open
amqpserver_is_open,
api_server_is_open
api_server_is_open,
bad_media_type(error) : AC::Error::ContentResponse
bad_media_type,
bad_request_return(error) : LavinMQ::Error::CommonResponse
bad_request_return,
enable_cors
enable_cors,
forbidden_return(error) : LavinMQ::Error::CommonResponse
forbidden_return,
invalid_param(error) : AC::Error::ParameterResponse
invalid_param,
json_mal_formatted(error) : LavinMQ::Error::CommonResponse
json_mal_formatted,
json_serializable_error(error) : LavinMQ::Error::CommonResponse
json_serializable_error,
not_found(error) : LavinMQ::Error::CommonResponse
not_found,
precondition_failed_return(error) : LavinMQ::Error::CommonResponse
precondition_failed_return,
service_unavailable(error) : LavinMQ::Error::CommonResponse
service_unavailable,
unauthorized_return(error) : LavinMQ::Error::CommonResponse
unauthorized_return
Instance methods inherited from module LavinMQ::API::ManageVhost
vhosts(user : User)
vhosts
Instance methods inherited from module LavinMQ::API::ManageAuth
auth_user
auth_user
Class Method Detail
def self.list_all_users(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls
Instance Method Detail
Create/update user Create new user, or update an existing user.
List users with no permissions List all users that doesn't have any permissions.
List permissions of user List permissions by user.