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 DatabaseObjectgetParent()Get the parent object.StringgetPassword()Get the user's password.default StringgetType()Get the type of the database object.Usergrant(DatabaseObject object, ObjectPrivilege... privileges)Grant the user access to a database schema with the given privileges.Usergrant(GlobalPrivilege... privileges)Grant system privileges to a user.UsergrantAllAccess(DatabaseObject object)Grant the user access to all aspects of a database schema.default booleanhasParent()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:
Userinstance 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:
Userinstance for fluent programming
-
grant
User grant(GlobalPrivilege... privileges)
Grant system privileges to a user.- Parameters:
privileges- system privileges- Returns:
Userinstance for fluent programming
-
getType
default String getType()
Description copied from interface:DatabaseObjectGet the type of the database object.- Specified by:
getTypein interfaceDatabaseObject- Returns:
- type of the database object
-
hasParent
default boolean hasParent()
Description copied from interface:DatabaseObjectCheck if this object has a parent object that sets the scope within the database- Specified by:
hasParentin interfaceDatabaseObject- Returns:
trueif the object has a parent
-
getParent
default DatabaseObject getParent()
Description copied from interface:DatabaseObjectGet the parent object.- Specified by:
getParentin interfaceDatabaseObject- Returns:
- parent object
-
-