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 org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
com.arangodb.entity.UserEntity create(String passwd, com.arangodb.model.UserCreateOptions options) throws org.springframework.dao.DataAccessException
passwd
- The user passwordoptions
- Additional options, can be nullorg.springframework.dao.DataAccessException
com.arangodb.entity.UserEntity update(com.arangodb.model.UserUpdateOptions options) throws org.springframework.dao.DataAccessException
options
- Properties of the user to be changedorg.springframework.dao.DataAccessException
com.arangodb.entity.UserEntity replace(com.arangodb.model.UserUpdateOptions options) throws org.springframework.dao.DataAccessException
options
- Additional properties of the user, can be nullorg.springframework.dao.DataAccessException
void delete() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
void grantDefaultDatabaseAccess(com.arangodb.entity.Permissions permissions) throws org.springframework.dao.DataAccessException
permissions
- The permissions the user grantorg.springframework.dao.DataAccessException
void grantDatabaseAccess(com.arangodb.entity.Permissions permissions) throws org.springframework.dao.DataAccessException
permissions
- The permissions the user grantorg.springframework.dao.DataAccessException
void resetDatabaseAccess() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
void grantDefaultCollectionAccess(com.arangodb.entity.Permissions permissions) throws org.springframework.dao.DataAccessException
permissions
- The permissions the user grantorg.springframework.dao.DataAccessException
void grantCollectionAccess(Class<?> entityClass, com.arangodb.entity.Permissions permissions) throws org.springframework.dao.DataAccessException
entityClass
- The entity type representing the collectionpermissions
- The permissions the user grantorg.springframework.dao.DataAccessException
void grantCollectionAccess(String name, com.arangodb.entity.Permissions permissions) throws org.springframework.dao.DataAccessException
name
- The name of the collectionpermissions
- The permissions the user grantorg.springframework.dao.DataAccessException
void resetCollectionAccess(Class<?> entityClass) throws org.springframework.dao.DataAccessException
entityClass
- The entity type representing the collectionorg.springframework.dao.DataAccessException
void resetCollectionAccess(String name) throws org.springframework.dao.DataAccessException
name
- The name of the collectionorg.springframework.dao.DataAccessException
com.arangodb.entity.Permissions getDatabasePermissions() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
com.arangodb.entity.Permissions getCollectionPermissions(Class<?> entityClass) throws org.springframework.dao.DataAccessException
entityClass
- The entity type representing the collectionorg.springframework.dao.DataAccessException
com.arangodb.entity.Permissions getCollectionPermissions(String name) throws org.springframework.dao.DataAccessException
name
- The name of the collectionorg.springframework.dao.DataAccessException
Copyright © 2017 ArangoDB GmbH. All rights reserved.