Class SqlUserUtil
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlUserUtil
(io.vertx.ext.auth.sqlclient.SqlUserUtil delegate) SqlUserUtil
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlUserUtil
static SqlUserUtil
create
(SqlClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL) io.smallrye.mutiny.Uni<Void>
createHashedUser
(String username, String hash) Insert a user into a database.createHashedUserAndAwait
(String username, String hash) Blocking variant ofcreateHashedUser(String,String)
.createHashedUserAndForget
(String username, String hash) Variant ofcreateHashedUser(String,String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
createRolePermission
(String role, String permission) Insert a role permission into a database.createRolePermissionAndAwait
(String role, String permission) Blocking variant ofcreateRolePermission(String,String)
.createRolePermissionAndForget
(String role, String permission) Variant ofcreateRolePermission(String,String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
createUser
(String username, String password) Insert a user into a database.createUserAndAwait
(String username, String password) Blocking variant ofcreateUser(String,String)
.createUserAndForget
(String username, String password) Variant ofcreateUser(String,String)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
createUserRole
(String username, String role) Insert a user role into a database.createUserRoleAndAwait
(String username, String role) Blocking variant ofcreateUserRole(String,String)
.createUserRoleAndForget
(String username, String role) Variant ofcreateUserRole(String,String)
that ignores the result of the operation.boolean
io.vertx.ext.auth.sqlclient.SqlUserUtil
int
hashCode()
static SqlUserUtil
newInstance
(io.vertx.ext.auth.sqlclient.SqlUserUtil arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SqlUserUtil
public SqlUserUtil(io.vertx.ext.auth.sqlclient.SqlUserUtil delegate) -
SqlUserUtil
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.sqlclient.SqlUserUtil getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
client
- the client with write rights to the database.- Returns:
- the instance
-
create
public static SqlUserUtil create(SqlClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL) - Parameters:
client
- the client with write rights to the database.insertUserSQL
-insertUserRoleSQL
-insertRolePermissionSQL
-- Returns:
- the instance
-
createUser
Insert a user into a database.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
username
- the username to be setpassword
- the passsword in clear text, will be adapted following the definitions of the defined strategy- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createUserAndAwait
Blocking variant ofcreateUser(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
username
- the username to be setpassword
- the passsword in clear text, will be adapted following the definitions of the defined strategy- Returns:
- the Void instance produced by the operation.
-
createUserAndForget
Variant ofcreateUser(String,String)
that ignores the result of the operation.This method subscribes on the result of
createUser(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateUser(String,String)
but you don't need to compose it with other operations.- Parameters:
username
- the username to be setpassword
- the passsword in clear text, will be adapted following the definitions of the defined strategy- Returns:
- the instance of SqlUserUtil to chain method calls.
-
createHashedUser
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> createHashedUser(String username, String hash) Insert a user into a database.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
username
- the username to be sethash
- the password hash, as result ofHashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createHashedUserAndAwait
Blocking variant ofcreateHashedUser(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
username
- the username to be sethash
- the password hash, as result ofHashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
- Returns:
- the Void instance produced by the operation.
-
createHashedUserAndForget
Variant ofcreateHashedUser(String,String)
that ignores the result of the operation.This method subscribes on the result of
createHashedUser(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateHashedUser(String,String)
but you don't need to compose it with other operations.- Parameters:
username
- the username to be sethash
- the password hash, as result ofHashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
- Returns:
- the instance of SqlUserUtil to chain method calls.
-
createUserRole
Insert a user role into a database.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
username
- the username to be setrole
- a to be set- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createUserRoleAndAwait
Blocking variant ofcreateUserRole(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
username
- the username to be setrole
- a to be set- Returns:
- the Void instance produced by the operation.
-
createUserRoleAndForget
Variant ofcreateUserRole(String,String)
that ignores the result of the operation.This method subscribes on the result of
createUserRole(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateUserRole(String,String)
but you don't need to compose it with other operations.- Parameters:
username
- the username to be setrole
- a to be set- Returns:
- the instance of SqlUserUtil to chain method calls.
-
createRolePermission
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> createRolePermission(String role, String permission) Insert a role permission into a database.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
role
- a to be setpermission
- the permission to be set- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createRolePermissionAndAwait
Blocking variant ofcreateRolePermission(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
role
- a to be setpermission
- the permission to be set- Returns:
- the Void instance produced by the operation.
-
createRolePermissionAndForget
Variant ofcreateRolePermission(String,String)
that ignores the result of the operation.This method subscribes on the result of
createRolePermission(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateRolePermission(String,String)
but you don't need to compose it with other operations.- Parameters:
role
- a to be setpermission
- the permission to be set- Returns:
- the instance of SqlUserUtil to chain method calls.
-
newInstance
-