public class DBUserServiceImpl extends BaseTroveServices implements UserService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
DBUserServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ActionResponse |
create(String instanceId,
TroveDatabaseUser.DatabaseUsers databaseUsers)
Create a user for the database instance
|
ActionResponse |
delete(String instanceId,
String userName)
Deletes a user for the database instance
|
ActionResponse |
grantUserDBAccess(String instanceId,
String userName,
TroveDatabase.Databases databases)
Grant user access to a database on the database instance
|
List<? extends DatabaseUser> |
list(String instanceId)
Returns list of all users for the database instance
|
List<? extends Database> |
listUserDatabases(String instanceId,
String userName)
Returns list of all databases which the user has access to on the database instance
|
ActionResponse |
revokeUserDBAccess(String instanceId,
String userName,
String dbName)
Revoke user access to a database on the database instance
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends DatabaseUser> list(String instanceId)
list
in interface UserService
public List<? extends Database> listUserDatabases(String instanceId, String userName)
listUserDatabases
in interface UserService
public ActionResponse create(String instanceId, TroveDatabaseUser.DatabaseUsers databaseUsers)
create
in interface UserService
public ActionResponse delete(String instanceId, String userName)
delete
in interface UserService
public ActionResponse grantUserDBAccess(String instanceId, String userName, TroveDatabase.Databases databases)
grantUserDBAccess
in interface UserService
public ActionResponse revokeUserDBAccess(String instanceId, String userName, String dbName)
revokeUserDBAccess
in interface UserService
Copyright © 2017. All rights reserved.