public interface UserOperations
Modifier and Type | Method and Description |
---|---|
com.arangodb.entity.UserEntity |
create(String passwd,
com.arangodb.model.UserCreateOptions options)
Create a new user.
|
void |
delete()
Removes an existing user, identified by user.
|
com.arangodb.entity.UserEntity |
get()
Fetches data about the specified user.
|
com.arangodb.entity.Permissions |
getCollectionPermissions(Class<?> entityClass)
Get the collection access level
|
com.arangodb.entity.Permissions |
getCollectionPermissions(String name)
Get the collection access level
|
com.arangodb.entity.Permissions |
getDatabasePermissions()
Get specific database access level
|
void |
grantCollectionAccess(Class<?> entityClass,
com.arangodb.entity.Permissions permissions)
Grants or revoke access to the collection for user.
|
void |
grantCollectionAccess(String name,
com.arangodb.entity.Permissions permissions)
Grants or revoke access to the collection for user.
|
void |
grantDatabaseAccess(com.arangodb.entity.Permissions permissions)
Grants or revoke access to the database for the user.
|
void |
grantDefaultCollectionAccess(com.arangodb.entity.Permissions permissions)
Sets the default access level for collections for the user.
|
void |
grantDefaultDatabaseAccess(com.arangodb.entity.Permissions permissions)
Sets the default access level for databases for the user.
|
com.arangodb.entity.UserEntity |
replace(com.arangodb.model.UserUpdateOptions options)
Replaces the data of an existing user.
|
void |
resetCollectionAccess(Class<?> entityClass)
Clear the collection access level, revert back to the default access level.
|
void |
resetCollectionAccess(String name)
Clear the collection access level, revert back to the default access level.
|
void |
resetDatabaseAccess()
Clear the database access level, revert back to the default access level.
|
com.arangodb.entity.UserEntity |
update(com.arangodb.model.UserUpdateOptions options)
Partially updates the data of an existing user.
|
com.arangodb.entity.UserEntity get() throws DataAccessException
DataAccessException
com.arangodb.entity.UserEntity create(String passwd, com.arangodb.model.UserCreateOptions options) throws DataAccessException
passwd
- The user passwordoptions
- Additional options, can be nullDataAccessException
com.arangodb.entity.UserEntity update(com.arangodb.model.UserUpdateOptions options) throws DataAccessException
options
- Properties of the user to be changedDataAccessException
com.arangodb.entity.UserEntity replace(com.arangodb.model.UserUpdateOptions options) throws DataAccessException
options
- Additional properties of the user, can be nullDataAccessException
void delete() throws DataAccessException
DataAccessException
void grantDefaultDatabaseAccess(com.arangodb.entity.Permissions permissions) throws DataAccessException
permissions
- The permissions the user grantDataAccessException
void grantDatabaseAccess(com.arangodb.entity.Permissions permissions) throws DataAccessException
permissions
- The permissions the user grantDataAccessException
void resetDatabaseAccess() throws DataAccessException
DataAccessException
void grantDefaultCollectionAccess(com.arangodb.entity.Permissions permissions) throws DataAccessException
permissions
- The permissions the user grantDataAccessException
void grantCollectionAccess(Class<?> entityClass, com.arangodb.entity.Permissions permissions) throws DataAccessException
entityClass
- The entity type representing the collectionpermissions
- The permissions the user grantDataAccessException
void grantCollectionAccess(String name, com.arangodb.entity.Permissions permissions) throws DataAccessException
name
- The name of the collectionpermissions
- The permissions the user grantDataAccessException
void resetCollectionAccess(Class<?> entityClass) throws DataAccessException
entityClass
- The entity type representing the collectionDataAccessException
void resetCollectionAccess(String name) throws DataAccessException
name
- The name of the collectionDataAccessException
com.arangodb.entity.Permissions getDatabasePermissions() throws DataAccessException
DataAccessException
com.arangodb.entity.Permissions getCollectionPermissions(Class<?> entityClass) throws DataAccessException
entityClass
- The entity type representing the collectionDataAccessException
com.arangodb.entity.Permissions getCollectionPermissions(String name) throws DataAccessException
name
- The name of the collectionDataAccessException
Copyright © 2017–2020 ArangoDB GmbH. All rights reserved.