io.reactiverse.elasticsearch.client.reactivex.SecurityClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-client-rxjava2 Show documentation
Show all versions of elasticsearch-client-rxjava2 Show documentation
Reactiverse Elasticsearch client :: RxJava2 bindings
The newest version!
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.reactiverse.elasticsearch.client.reactivex;
import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
@RxGen(io.reactiverse.elasticsearch.client.SecurityClient.class)
public class SecurityClient {
@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;
SecurityClient that = (SecurityClient) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg __TYPE_ARG = new TypeArg<>( obj -> new SecurityClient((io.reactiverse.elasticsearch.client.SecurityClient) obj),
SecurityClient::getDelegate
);
private final io.reactiverse.elasticsearch.client.SecurityClient delegate;
public SecurityClient(io.reactiverse.elasticsearch.client.SecurityClient delegate) {
this.delegate = delegate;
}
public SecurityClient(Object delegate) {
this.delegate = (io.reactiverse.elasticsearch.client.SecurityClient)delegate;
}
public io.reactiverse.elasticsearch.client.SecurityClient getDelegate() {
return delegate;
}
public void getUsersAsync(org.elasticsearch.client.security.GetUsersRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getUsersAsync(request, options, handler);
}
public void getUsersAsync(org.elasticsearch.client.security.GetUsersRequest request, org.elasticsearch.client.RequestOptions options) {
getUsersAsync(request, options, ar -> { });
}
public io.reactivex.Single rxGetUsersAsync(org.elasticsearch.client.security.GetUsersRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getUsersAsync(request, options, $handler);
});
}
public void putUserAsync(org.elasticsearch.client.security.PutUserRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.putUserAsync(request, options, handler);
}
public void putUserAsync(org.elasticsearch.client.security.PutUserRequest request, org.elasticsearch.client.RequestOptions options) {
putUserAsync(request, options, ar -> { });
}
public io.reactivex.Single rxPutUserAsync(org.elasticsearch.client.security.PutUserRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
putUserAsync(request, options, $handler);
});
}
public void deleteUserAsync(org.elasticsearch.client.security.DeleteUserRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.deleteUserAsync(request, options, handler);
}
public void deleteUserAsync(org.elasticsearch.client.security.DeleteUserRequest request, org.elasticsearch.client.RequestOptions options) {
deleteUserAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDeleteUserAsync(org.elasticsearch.client.security.DeleteUserRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
deleteUserAsync(request, options, $handler);
});
}
public void putRoleMappingAsync(org.elasticsearch.client.security.PutRoleMappingRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.putRoleMappingAsync(request, options, handler);
}
public void putRoleMappingAsync(org.elasticsearch.client.security.PutRoleMappingRequest request, org.elasticsearch.client.RequestOptions options) {
putRoleMappingAsync(request, options, ar -> { });
}
public io.reactivex.Single rxPutRoleMappingAsync(org.elasticsearch.client.security.PutRoleMappingRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
putRoleMappingAsync(request, options, $handler);
});
}
public void getRoleMappingsAsync(org.elasticsearch.client.security.GetRoleMappingsRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getRoleMappingsAsync(request, options, handler);
}
public void getRoleMappingsAsync(org.elasticsearch.client.security.GetRoleMappingsRequest request, org.elasticsearch.client.RequestOptions options) {
getRoleMappingsAsync(request, options, ar -> { });
}
public io.reactivex.Single rxGetRoleMappingsAsync(org.elasticsearch.client.security.GetRoleMappingsRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getRoleMappingsAsync(request, options, $handler);
});
}
public void enableUserAsync(org.elasticsearch.client.security.EnableUserRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.enableUserAsync(request, options, handler);
}
public void enableUserAsync(org.elasticsearch.client.security.EnableUserRequest request, org.elasticsearch.client.RequestOptions options) {
enableUserAsync(request, options, ar -> { });
}
public io.reactivex.Single rxEnableUserAsync(org.elasticsearch.client.security.EnableUserRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
enableUserAsync(request, options, $handler);
});
}
public void disableUserAsync(org.elasticsearch.client.security.DisableUserRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.disableUserAsync(request, options, handler);
}
public void disableUserAsync(org.elasticsearch.client.security.DisableUserRequest request, org.elasticsearch.client.RequestOptions options) {
disableUserAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDisableUserAsync(org.elasticsearch.client.security.DisableUserRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
disableUserAsync(request, options, $handler);
});
}
public void authenticateAsync(org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.authenticateAsync(options, handler);
}
public void authenticateAsync(org.elasticsearch.client.RequestOptions options) {
authenticateAsync(options, ar -> { });
}
public io.reactivex.Single rxAuthenticateAsync(org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
authenticateAsync(options, $handler);
});
}
public void hasPrivilegesAsync(org.elasticsearch.client.security.HasPrivilegesRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.hasPrivilegesAsync(request, options, handler);
}
public void hasPrivilegesAsync(org.elasticsearch.client.security.HasPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
hasPrivilegesAsync(request, options, ar -> { });
}
public io.reactivex.Single rxHasPrivilegesAsync(org.elasticsearch.client.security.HasPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
hasPrivilegesAsync(request, options, $handler);
});
}
public void getUserPrivilegesAsync(org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getUserPrivilegesAsync(options, handler);
}
public void getUserPrivilegesAsync(org.elasticsearch.client.RequestOptions options) {
getUserPrivilegesAsync(options, ar -> { });
}
public io.reactivex.Single rxGetUserPrivilegesAsync(org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getUserPrivilegesAsync(options, $handler);
});
}
public void clearRealmCacheAsync(org.elasticsearch.client.security.ClearRealmCacheRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.clearRealmCacheAsync(request, options, handler);
}
public void clearRealmCacheAsync(org.elasticsearch.client.security.ClearRealmCacheRequest request, org.elasticsearch.client.RequestOptions options) {
clearRealmCacheAsync(request, options, ar -> { });
}
public io.reactivex.Single rxClearRealmCacheAsync(org.elasticsearch.client.security.ClearRealmCacheRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
clearRealmCacheAsync(request, options, $handler);
});
}
public void clearRolesCacheAsync(org.elasticsearch.client.security.ClearRolesCacheRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.clearRolesCacheAsync(request, options, handler);
}
public void clearRolesCacheAsync(org.elasticsearch.client.security.ClearRolesCacheRequest request, org.elasticsearch.client.RequestOptions options) {
clearRolesCacheAsync(request, options, ar -> { });
}
public io.reactivex.Single rxClearRolesCacheAsync(org.elasticsearch.client.security.ClearRolesCacheRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
clearRolesCacheAsync(request, options, $handler);
});
}
public void clearPrivilegesCacheAsync(org.elasticsearch.client.security.ClearPrivilegesCacheRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.clearPrivilegesCacheAsync(request, options, handler);
}
public void clearPrivilegesCacheAsync(org.elasticsearch.client.security.ClearPrivilegesCacheRequest request, org.elasticsearch.client.RequestOptions options) {
clearPrivilegesCacheAsync(request, options, ar -> { });
}
public io.reactivex.Single rxClearPrivilegesCacheAsync(org.elasticsearch.client.security.ClearPrivilegesCacheRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
clearPrivilegesCacheAsync(request, options, $handler);
});
}
public void clearApiKeyCacheAsync(org.elasticsearch.client.security.ClearApiKeyCacheRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.clearApiKeyCacheAsync(request, options, handler);
}
public void clearApiKeyCacheAsync(org.elasticsearch.client.security.ClearApiKeyCacheRequest request, org.elasticsearch.client.RequestOptions options) {
clearApiKeyCacheAsync(request, options, ar -> { });
}
public io.reactivex.Single rxClearApiKeyCacheAsync(org.elasticsearch.client.security.ClearApiKeyCacheRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
clearApiKeyCacheAsync(request, options, $handler);
});
}
public void getSslCertificatesAsync(org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getSslCertificatesAsync(options, handler);
}
public void getSslCertificatesAsync(org.elasticsearch.client.RequestOptions options) {
getSslCertificatesAsync(options, ar -> { });
}
public io.reactivex.Single rxGetSslCertificatesAsync(org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getSslCertificatesAsync(options, $handler);
});
}
public void changePasswordAsync(org.elasticsearch.client.security.ChangePasswordRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.changePasswordAsync(request, options, handler);
}
public void changePasswordAsync(org.elasticsearch.client.security.ChangePasswordRequest request, org.elasticsearch.client.RequestOptions options) {
changePasswordAsync(request, options, ar -> { });
}
public io.reactivex.Single rxChangePasswordAsync(org.elasticsearch.client.security.ChangePasswordRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
changePasswordAsync(request, options, $handler);
});
}
public void getRolesAsync(org.elasticsearch.client.security.GetRolesRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getRolesAsync(request, options, handler);
}
public void getRolesAsync(org.elasticsearch.client.security.GetRolesRequest request, org.elasticsearch.client.RequestOptions options) {
getRolesAsync(request, options, ar -> { });
}
public io.reactivex.Single rxGetRolesAsync(org.elasticsearch.client.security.GetRolesRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getRolesAsync(request, options, $handler);
});
}
public void putRoleAsync(org.elasticsearch.client.security.PutRoleRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.putRoleAsync(request, options, handler);
}
public void putRoleAsync(org.elasticsearch.client.security.PutRoleRequest request, org.elasticsearch.client.RequestOptions options) {
putRoleAsync(request, options, ar -> { });
}
public io.reactivex.Single rxPutRoleAsync(org.elasticsearch.client.security.PutRoleRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
putRoleAsync(request, options, $handler);
});
}
public void deleteRoleMappingAsync(org.elasticsearch.client.security.DeleteRoleMappingRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.deleteRoleMappingAsync(request, options, handler);
}
public void deleteRoleMappingAsync(org.elasticsearch.client.security.DeleteRoleMappingRequest request, org.elasticsearch.client.RequestOptions options) {
deleteRoleMappingAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDeleteRoleMappingAsync(org.elasticsearch.client.security.DeleteRoleMappingRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
deleteRoleMappingAsync(request, options, $handler);
});
}
public void deleteRoleAsync(org.elasticsearch.client.security.DeleteRoleRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.deleteRoleAsync(request, options, handler);
}
public void deleteRoleAsync(org.elasticsearch.client.security.DeleteRoleRequest request, org.elasticsearch.client.RequestOptions options) {
deleteRoleAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDeleteRoleAsync(org.elasticsearch.client.security.DeleteRoleRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
deleteRoleAsync(request, options, $handler);
});
}
public void createTokenAsync(org.elasticsearch.client.security.CreateTokenRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.createTokenAsync(request, options, handler);
}
public void createTokenAsync(org.elasticsearch.client.security.CreateTokenRequest request, org.elasticsearch.client.RequestOptions options) {
createTokenAsync(request, options, ar -> { });
}
public io.reactivex.Single rxCreateTokenAsync(org.elasticsearch.client.security.CreateTokenRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
createTokenAsync(request, options, $handler);
});
}
public void invalidateTokenAsync(org.elasticsearch.client.security.InvalidateTokenRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.invalidateTokenAsync(request, options, handler);
}
public void invalidateTokenAsync(org.elasticsearch.client.security.InvalidateTokenRequest request, org.elasticsearch.client.RequestOptions options) {
invalidateTokenAsync(request, options, ar -> { });
}
public io.reactivex.Single rxInvalidateTokenAsync(org.elasticsearch.client.security.InvalidateTokenRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
invalidateTokenAsync(request, options, $handler);
});
}
public void getBuiltinPrivilegesAsync(org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getBuiltinPrivilegesAsync(options, handler);
}
public void getBuiltinPrivilegesAsync(org.elasticsearch.client.RequestOptions options) {
getBuiltinPrivilegesAsync(options, ar -> { });
}
public io.reactivex.Single rxGetBuiltinPrivilegesAsync(org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getBuiltinPrivilegesAsync(options, $handler);
});
}
public void getPrivilegesAsync(org.elasticsearch.client.security.GetPrivilegesRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getPrivilegesAsync(request, options, handler);
}
public void getPrivilegesAsync(org.elasticsearch.client.security.GetPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
getPrivilegesAsync(request, options, ar -> { });
}
public io.reactivex.Single rxGetPrivilegesAsync(org.elasticsearch.client.security.GetPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getPrivilegesAsync(request, options, $handler);
});
}
public void putPrivilegesAsync(org.elasticsearch.client.security.PutPrivilegesRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.putPrivilegesAsync(request, options, handler);
}
public void putPrivilegesAsync(org.elasticsearch.client.security.PutPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
putPrivilegesAsync(request, options, ar -> { });
}
public io.reactivex.Single rxPutPrivilegesAsync(org.elasticsearch.client.security.PutPrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
putPrivilegesAsync(request, options, $handler);
});
}
public void deletePrivilegesAsync(org.elasticsearch.client.security.DeletePrivilegesRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.deletePrivilegesAsync(request, options, handler);
}
public void deletePrivilegesAsync(org.elasticsearch.client.security.DeletePrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
deletePrivilegesAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDeletePrivilegesAsync(org.elasticsearch.client.security.DeletePrivilegesRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
deletePrivilegesAsync(request, options, $handler);
});
}
public void createApiKeyAsync(org.elasticsearch.client.security.CreateApiKeyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.createApiKeyAsync(request, options, handler);
}
public void createApiKeyAsync(org.elasticsearch.client.security.CreateApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
createApiKeyAsync(request, options, ar -> { });
}
public io.reactivex.Single rxCreateApiKeyAsync(org.elasticsearch.client.security.CreateApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
createApiKeyAsync(request, options, $handler);
});
}
public void getApiKeyAsync(org.elasticsearch.client.security.GetApiKeyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.getApiKeyAsync(request, options, handler);
}
public void getApiKeyAsync(org.elasticsearch.client.security.GetApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
getApiKeyAsync(request, options, ar -> { });
}
public io.reactivex.Single rxGetApiKeyAsync(org.elasticsearch.client.security.GetApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
getApiKeyAsync(request, options, $handler);
});
}
public void invalidateApiKeyAsync(org.elasticsearch.client.security.InvalidateApiKeyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.invalidateApiKeyAsync(request, options, handler);
}
public void invalidateApiKeyAsync(org.elasticsearch.client.security.InvalidateApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
invalidateApiKeyAsync(request, options, ar -> { });
}
public io.reactivex.Single rxInvalidateApiKeyAsync(org.elasticsearch.client.security.InvalidateApiKeyRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
invalidateApiKeyAsync(request, options, $handler);
});
}
public void delegatePkiAuthenticationAsync(org.elasticsearch.client.security.DelegatePkiAuthenticationRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) {
delegate.delegatePkiAuthenticationAsync(request, options, handler);
}
public void delegatePkiAuthenticationAsync(org.elasticsearch.client.security.DelegatePkiAuthenticationRequest request, org.elasticsearch.client.RequestOptions options) {
delegatePkiAuthenticationAsync(request, options, ar -> { });
}
public io.reactivex.Single rxDelegatePkiAuthenticationAsync(org.elasticsearch.client.security.DelegatePkiAuthenticationRequest request, org.elasticsearch.client.RequestOptions options) {
return AsyncResultSingle.toSingle($handler -> {
delegatePkiAuthenticationAsync(request, options, $handler);
});
}
public static SecurityClient newInstance(io.reactiverse.elasticsearch.client.SecurityClient arg) {
return arg != null ? new SecurityClient(arg) : null;
}
}