Class SqlUserUtil
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
SqlUserUtil
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlUserUtil(io.vertx.ext.auth.sqlclient.SqlUserUtil delegate) Create a new instance ofSqlUserUtildelegating to the given (non-null) instance ofSqlUserUtil.SqlUserUtil(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlUserUtilCreate an instance of the user helper.static SqlUserUtilcreate(SqlClient client, String insertUserSQL, String insertUserRoleSQL, String insertRolePermissionSQL) Create an instance of the user helper with custom queries.io.smallrye.mutiny.Uni<Void>createHashedUser(String username, String hash) Insert a user into a database.voidcreateHashedUserAndAwait(String username, String hash) Insert a user into a database.createHashedUserAndForget(String username, String hash) Insert a user into a database.io.smallrye.mutiny.Uni<Void>createRolePermission(String role, String permission) Insert a role permission into a database.voidcreateRolePermissionAndAwait(String role, String permission) Insert a role permission into a database.createRolePermissionAndForget(String role, String permission) Insert a role permission into a database.io.smallrye.mutiny.Uni<Void>createUser(String username, String password) Insert a user into a database.voidcreateUserAndAwait(String username, String password) Insert a user into a database.createUserAndForget(String username, String password) Insert a user into a database.io.smallrye.mutiny.Uni<Void>createUserRole(String username, String role) Insert a user role into a database.voidcreateUserRoleAndAwait(String username, String role) Insert a user role into a database.createUserRoleAndForget(String username, String role) Insert a user role into a database.booleanio.vertx.ext.auth.sqlclient.SqlUserUtilGet the delegate instance.inthashCode()static SqlUserUtilnewInstance(io.vertx.ext.auth.sqlclient.SqlUserUtil delegate) Creates a new instance of theSqlUserUtil.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SqlUserUtil
public SqlUserUtil(io.vertx.ext.auth.sqlclient.SqlUserUtil delegate) Create a new instance ofSqlUserUtildelegating to the given (non-null) instance ofSqlUserUtil. -
SqlUserUtil
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.sqlclient.SqlUserUtil getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
createUser
Insert a user into a database.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.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:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlUserUtil.createUser(String, String)
-
createUserAndAwait
Insert a user into a database.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
username- the username to be setpassword- the passsword in clear text, will be adapted following the definitions of the defined strategy- See Also:
-
SqlUserUtil.createUser(String, String)
-
createUserAndForget
Insert a user into a database.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
username- the username to be setpassword- the passsword in clear text, will be adapted following the definitions of the defined strategy- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlUserUtil.createUser(String, String)
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
username- the username to be sethash- the password hash, as result ofio.vertx.ext.auth.HashingStrategy#hash(String, Map, String, String)- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlUserUtil.createHashedUser(String, String)
-
createHashedUserAndAwait
Insert a user into a database.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
username- the username to be sethash- the password hash, as result ofio.vertx.ext.auth.HashingStrategy#hash(String, Map, String, String)- See Also:
-
SqlUserUtil.createHashedUser(String, String)
-
createHashedUserAndForget
Insert a user into a database.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
username- the username to be sethash- the password hash, as result ofio.vertx.ext.auth.HashingStrategy#hash(String, Map, String, String)- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlUserUtil.createHashedUser(String, String)
-
createUserRole
Insert a user role into a database.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
username- the username to be setrole- a to be set- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlUserUtil.createUserRole(String, String)
-
createUserRoleAndAwait
Insert a user role into a database.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
username- the username to be setrole- a to be set- See Also:
-
SqlUserUtil.createUserRole(String, String)
-
createUserRoleAndForget
Insert a user role into a database.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
username- the username to be setrole- a to be set- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlUserUtil.createUserRole(String, String)
-
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. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
role- a to be setpermission- the permission to be set- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlUserUtil.createRolePermission(String, String)
-
createRolePermissionAndAwait
Insert a role permission into a database.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
role- a to be setpermission- the permission to be set- See Also:
-
SqlUserUtil.createRolePermission(String, String)
-
createRolePermissionAndForget
Insert a role permission into a database.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
role- a to be setpermission- the permission to be set- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlUserUtil.createRolePermission(String, String)
-
create
Create an instance of the user helper.- 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) Create an instance of the user helper with custom queries.- Parameters:
client- the client with write rights to the database.- Returns:
- the instance
-
newInstance
Creates a new instance of theSqlUserUtil. -
hashCode
public int hashCode() -
equals
-
toString
-