Class AssignedRolesGetter
java.lang.Object
io.weaviate.client.base.AsyncBaseClient<List<Role>>
io.weaviate.client.v1.async.users.api.common.AssignedRolesGetter
- All Implemented Interfaces:
AsyncClientResult<List<Role>>
public class AssignedRolesGetter
extends AsyncBaseClient<List<Role>>
implements AsyncClientResult<List<Role>>
-
Field Summary
Fields inherited from class io.weaviate.client.base.AsyncBaseClient
client -
Constructor Summary
ConstructorsConstructorDescriptionAssignedRolesGetter(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, Config config, AccessTokenProvider tokenProvider, String userType) -
Method Summary
Modifier and TypeMethodDescriptionInclude a full list of permissions for each role.includePermissions(boolean include) withUserId(String userId) Methods inherited from class io.weaviate.client.base.AsyncBaseClient
getRequest, sendDeleteRequest, sendDeleteRequest, sendGetRequest, sendGetRequest, sendHeadRequest, sendHeadRequest, sendPatchRequest, sendPatchRequest, sendPostRequest, sendPostRequest, sendPutRequest, sendPutRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.weaviate.client.base.AsyncClientResult
run
-
Constructor Details
-
AssignedRolesGetter
public AssignedRolesGetter(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, Config config, AccessTokenProvider tokenProvider, String userType)
-
-
Method Details
-
withUserId
-
includePermissions
Include a full list of permissions for each role. If not set, only role names will be populated. -
includePermissions
-
run
public Future<Result<List<Role>>> run(org.apache.hc.core5.concurrent.FutureCallback<Result<List<Role>>> callback) - Specified by:
runin interfaceAsyncClientResult<List<Role>>
-