Package com.exasol.dbbuilder.dialects
Interface User
-
- All Superinterfaces:
DatabaseObject
- All Known Implementing Classes:
AbstractUser
,ExasolUser
,MySqlUser
,PostgreSqlUser
public interface User extends DatabaseObject
Database user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Set<GlobalPrivilege>
getGlobalPrivileges()
Get the systemPrivileges of the user.Map<DatabaseObject,ObjectPrivilege[]>
getObjectPrivileges()
Get the objectPrivileges of the user.default DatabaseObject
getParent()
Get the parent object.String
getPassword()
Get the user's password.default String
getType()
Get the type of the database object.User
grant(DatabaseObject object, ObjectPrivilege... privileges)
Grant the user access to a database schema with the given privileges.User
grant(GlobalPrivilege... privileges)
Grant system privileges to a user.User
grantAllAccess(DatabaseObject object)
Grant the user access to all aspects of a database schema.default boolean
hasParent()
Check if this object has a parent object that sets the scope within the database-
Methods inherited from interface com.exasol.dbbuilder.dialects.DatabaseObject
drop, getFullyQualifiedName, getName, isOwned
-
-
-
-
Method Detail
-
getPassword
String getPassword()
Get the user's password.- Returns:
- password
-
getObjectPrivileges
Map<DatabaseObject,ObjectPrivilege[]> getObjectPrivileges()
Get the objectPrivileges of the user.- Returns:
- object privileges
-
getGlobalPrivileges
Set<GlobalPrivilege> getGlobalPrivileges()
Get the systemPrivileges of the user.- Returns:
- system privileges
-
grantAllAccess
User grantAllAccess(DatabaseObject object)
Grant the user access to all aspects of a database schema.- Parameters:
object
- database object- Returns:
User
instance for fluent programming
-
grant
User grant(DatabaseObject object, ObjectPrivilege... privileges)
Grant the user access to a database schema with the given privileges.- Parameters:
object
- database objectprivileges
- privileges to grant the user- Returns:
User
instance for fluent programming
-
grant
User grant(GlobalPrivilege... privileges)
Grant system privileges to a user.- Parameters:
privileges
- system privileges- Returns:
User
instance for fluent programming
-
getType
default String getType()
Description copied from interface:DatabaseObject
Get the type of the database object.- Specified by:
getType
in interfaceDatabaseObject
- Returns:
- type of the database object
-
hasParent
default boolean hasParent()
Description copied from interface:DatabaseObject
Check if this object has a parent object that sets the scope within the database- Specified by:
hasParent
in interfaceDatabaseObject
- Returns:
true
if the object has a parent
-
getParent
default DatabaseObject getParent()
Description copied from interface:DatabaseObject
Get the parent object.- Specified by:
getParent
in interfaceDatabaseObject
- Returns:
- parent object
-
-