io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization Maven / Gradle / Ivy
package io.vertx.mutiny.ext.auth.sqlclient;
import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions;
/**
* Factory interface for creating instances that use the Vert.x SQL client.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.sqlclient.SqlAuthorization original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.sqlclient.SqlAuthorization.class)
public class SqlAuthorization extends io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new SqlAuthorization((io.vertx.ext.auth.sqlclient.SqlAuthorization) obj),
SqlAuthorization::getDelegate
);
private final io.vertx.ext.auth.sqlclient.SqlAuthorization delegate;
public SqlAuthorization(io.vertx.ext.auth.sqlclient.SqlAuthorization delegate) {
super(delegate);
this.delegate = delegate;
}
public SqlAuthorization(Object delegate) {
super((io.vertx.ext.auth.sqlclient.SqlAuthorization)delegate);
this.delegate = (io.vertx.ext.auth.sqlclient.SqlAuthorization)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
SqlAuthorization() {
super(null);
this.delegate = null;
}
public io.vertx.ext.auth.sqlclient.SqlAuthorization getDelegate() {
return delegate;
}
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SqlAuthorization that = (SqlAuthorization) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @param client the SQL client instance
* @return the auth provider
*/
public static io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization create(io.vertx.mutiny.sqlclient.SqlClient client) {
io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization ret = io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization.newInstance((io.vertx.ext.auth.sqlclient.SqlAuthorization)io.vertx.ext.auth.sqlclient.SqlAuthorization.create(client.getDelegate()));
return ret;
}
/**
* @param client the SQL client instance
* @param options the {@link io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions}
* @return the auth provider
*/
public static io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization create(io.vertx.mutiny.sqlclient.SqlClient client, io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions options) {
io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization ret = io.vertx.mutiny.ext.auth.sqlclient.SqlAuthorization.newInstance((io.vertx.ext.auth.sqlclient.SqlAuthorization)io.vertx.ext.auth.sqlclient.SqlAuthorization.create(client.getDelegate(), options));
return ret;
}
public static SqlAuthorization newInstance(io.vertx.ext.auth.sqlclient.SqlAuthorization arg) {
return arg != null ? new SqlAuthorization(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy