Package io.weaviate.client.v1.async.rbac
Class Roles
java.lang.Object
io.weaviate.client.v1.async.rbac.Roles
-
Constructor Summary
ConstructorsConstructorDescriptionRoles(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client, Config config, AccessTokenProvider tokenProvider) -
Method Summary
Modifier and TypeMethodDescriptionGet all existing roles.Deprecated.creator()deleter()Get all existing roles.exists()Check if a role exists.getter()Get role and its assiciated permissions.Add permissions to an existing role.Check if a role has a permission.Remove permissions from a role.Get role assignments.
-
Constructor Details
-
Roles
public Roles(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client, Config config, AccessTokenProvider tokenProvider)
-
-
Method Details
-
creator
-
deleter
Get all existing roles. -
permissionAdder
Add permissions to an existing role. Note: This method is an upsert operation. If the permission already exists, it will be updated. If it does not exist, it will be created. -
permissionRemover
Remove permissions from a role. Note: This method is a downsert operation. If the permission does not exist, it will be ignored. If these permissions are the only permissions of the role, the role will be deleted. -
permissionChecker
Check if a role has a permission. -
allGetter
Get all existing roles. -
getter
Get role and its assiciated permissions. -
assignedUsersGetter
Deprecated.Get users assigned to a role.Deprecated - prefer
userAssignmentsGetter(). -
userAssignmentsGetter
Get role assignments.Note, that the result is not a list of unique users, but rather a list of all username+namespace combinations allowed for this role. In clusters with enabled OIDC authorization, users created dynamically (db_user) or configured in the environment (db_env_user) will appear twice: once as 'db_*' user and once as 'oidc' user.
-
exists
Check if a role exists.
-