| Package | Description |
|---|---|
| com.facebook.presto.spi | |
| com.facebook.presto.spi.connector | |
| com.facebook.presto.spi.security |
| Modifier and Type | Method and Description |
|---|---|
ConnectorIdentity |
ConnectorSession.getIdentity() |
| Modifier and Type | Method and Description |
|---|---|
default void |
ConnectorAccessControl.checkCanAddColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to add columns to the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String role,
Optional<PrestoPrincipal> grantor) |
default void |
ConnectorAccessControl.checkCanCreateSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to create the specified schema in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to create the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName viewName)
Check if identity is allowed to create the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateViewWithSelectFromColumns(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
Set<String> columnNames)
Check if identity is allowed to create a view that selects from the specified columns in a relation.
|
default void |
ConnectorAccessControl.checkCanDeleteFromTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to delete from the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to drop columns from the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String role) |
default void |
ConnectorAccessControl.checkCanDropSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to drop the specified schema in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to drop the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName viewName)
Check if identity is allowed to drop the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanGrantRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorAccessControl.checkCanGrantTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal grantee,
boolean withGrantOption)
Check if identity is allowed to grant to any other user the specified privilege on the specified table.
|
default void |
ConnectorAccessControl.checkCanInsertIntoTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to insert into the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to rename a column in the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName,
String newSchemaName)
Check if identity is allowed to rename the specified schema in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
SchemaTableName newTableName)
Check if identity is allowed to rename the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRevokeRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorAccessControl.checkCanRevokeTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal revokee,
boolean grantOptionFor)
Check if identity is allowed to revoke the specified privilege on the specified table from any user.
|
default void |
ConnectorAccessControl.checkCanSelectFromColumns(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
Set<Subfield> columnOrSubfieldNames)
Check if identity is allowed to select from the specified columns.
|
default void |
ConnectorAccessControl.checkCanSetCatalogSessionProperty(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String propertyName)
Check if identity is allowed to set the specified property in this catalog.
|
default void |
ConnectorAccessControl.checkCanSetRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext accessControlContext,
String role,
String catalogName) |
default void |
ConnectorAccessControl.checkCanShowCurrentRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show current roles on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowRoleGrants(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show its own role grants on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show roles on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowSchemas(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context)
Check if identity is allowed to execute SHOW SCHEMAS in a catalog.
|
default void |
ConnectorAccessControl.checkCanShowTablesMetadata(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to show metadata of tables by executing SHOW TABLES, SHOW GRANTS etc.
|
default void |
ConnectorAccessControl.checkCanTruncateTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to truncate the specified table in this catalog.
|
default Set<String> |
ConnectorAccessControl.filterSchemas(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> schemaNames)
Filter the list of schemas to those visible to the identity.
|
default Set<SchemaTableName> |
ConnectorAccessControl.filterTables(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectorIdentity |
Identity.toConnectorIdentity() |
ConnectorIdentity |
Identity.toConnectorIdentity(String catalog) |
| Modifier and Type | Method and Description |
|---|---|
static void |
AccessDeniedException.denyCreateViewWithSelect(String sourceName,
ConnectorIdentity identity) |
static void |
AccessDeniedException.denyCreateViewWithSelect(String sourceName,
ConnectorIdentity identity,
String extraInfo) |
Copyright © 2012–2022. All rights reserved.