Uses of Class
io.trino.spi.connector.ConnectorSecurityContext
Packages that use ConnectorSecurityContext
-
Uses of ConnectorSecurityContext in io.trino.spi.connector
Methods in io.trino.spi.connector with parameters of type ConnectorSecurityContextModifier and TypeMethodDescriptiondefault booleanConnectorAccessControl.canCreateViewWithExecuteFunction(ConnectorSecurityContext context, SchemaRoutineName function) Is identity allowed to create a view that executes the specified function?default booleanConnectorAccessControl.canExecuteFunction(ConnectorSecurityContext context, SchemaRoutineName function) Is the identity allowed to execute the specified function?default voidConnectorAccessControl.checkCanAddColumn(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to add columns to the specified table.default voidConnectorAccessControl.checkCanAlterColumn(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to alter columns for the specified table.default voidConnectorAccessControl.checkCanCreateFunction(ConnectorSecurityContext context, SchemaRoutineName function) Check if identity is allowed to create the specified function.default voidConnectorAccessControl.checkCanCreateMaterializedView(ConnectorSecurityContext context, SchemaTableName materializedViewName, Map<String, Object> properties) Check if identity is allowed to create the specified materialized view.default voidConnectorAccessControl.checkCanCreateRole(ConnectorSecurityContext context, String role, Optional<TrinoPrincipal> grantor) default voidConnectorAccessControl.checkCanCreateSchema(ConnectorSecurityContext context, String schemaName, Map<String, Object> properties) Check if identity is allowed to create the specified schema with properties.default voidConnectorAccessControl.checkCanCreateTable(ConnectorSecurityContext context, SchemaTableName tableName, Map<String, Object> properties) Check if identity is allowed to create the specified table with properties.default voidConnectorAccessControl.checkCanCreateView(ConnectorSecurityContext context, SchemaTableName viewName) Check if identity is allowed to create the specified view.default voidConnectorAccessControl.checkCanCreateViewWithSelectFromColumns(ConnectorSecurityContext 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 voidConnectorAccessControl.checkCanDeleteFromTable(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to delete from the specified table.default voidConnectorAccessControl.checkCanDenySchemaPrivilege(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal grantee) Check if identity is allowed to deny to any other user the specified privilege on the specified schema.default voidConnectorAccessControl.checkCanDenyTablePrivilege(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal grantee) Check if identity is allowed to deny to any other user the specified privilege on the specified table.default voidConnectorAccessControl.checkCanDropColumn(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to drop columns from the specified table.default voidConnectorAccessControl.checkCanDropFunction(ConnectorSecurityContext context, SchemaRoutineName function) Check if identity is allowed to drop the specified function.default voidConnectorAccessControl.checkCanDropMaterializedView(ConnectorSecurityContext context, SchemaTableName materializedViewName) Check if identity is allowed to drop the specified materialized view.default voidConnectorAccessControl.checkCanDropRole(ConnectorSecurityContext context, String role) default voidConnectorAccessControl.checkCanDropSchema(ConnectorSecurityContext context, String schemaName) Check if identity is allowed to drop the specified schema.default voidConnectorAccessControl.checkCanDropTable(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to drop the specified table.default voidConnectorAccessControl.checkCanDropView(ConnectorSecurityContext context, SchemaTableName viewName) Check if identity is allowed to drop the specified view.default voidConnectorAccessControl.checkCanExecuteProcedure(ConnectorSecurityContext context, SchemaRoutineName procedure) default voidConnectorAccessControl.checkCanExecuteTableProcedure(ConnectorSecurityContext context, SchemaTableName tableName, String procedure) default voidConnectorAccessControl.checkCanGrantRoles(ConnectorSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) default voidConnectorAccessControl.checkCanGrantSchemaPrivilege(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant to any other user the specified privilege on the specified schema.default voidConnectorAccessControl.checkCanGrantTablePrivilege(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant to any other user the specified privilege on the specified table.default voidConnectorAccessControl.checkCanInsertIntoTable(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to insert into the specified table.default voidConnectorAccessControl.checkCanRefreshMaterializedView(ConnectorSecurityContext context, SchemaTableName materializedViewName) Check if identity is allowed to refresh the specified materialized view.default voidConnectorAccessControl.checkCanRenameColumn(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to rename a column in the specified table.default voidConnectorAccessControl.checkCanRenameMaterializedView(ConnectorSecurityContext context, SchemaTableName viewName, SchemaTableName newViewName) Check if identity is allowed to rename the specified materialized view.default voidConnectorAccessControl.checkCanRenameSchema(ConnectorSecurityContext context, String schemaName, String newSchemaName) Check if identity is allowed to rename the specified schema.default voidConnectorAccessControl.checkCanRenameTable(ConnectorSecurityContext context, SchemaTableName tableName, SchemaTableName newTableName) Check if identity is allowed to rename the specified table.default voidConnectorAccessControl.checkCanRenameView(ConnectorSecurityContext context, SchemaTableName viewName, SchemaTableName newViewName) Check if identity is allowed to rename the specified view.default voidConnectorAccessControl.checkCanRevokeRoles(ConnectorSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) default voidConnectorAccessControl.checkCanRevokeSchemaPrivilege(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal revokee, boolean grantOption) default voidConnectorAccessControl.checkCanRevokeTablePrivilege(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified table from any user.default voidConnectorAccessControl.checkCanSelectFromColumns(ConnectorSecurityContext context, SchemaTableName tableName, Set<String> columnNames) Check if identity is allowed to select from the specified columns in a relation.default voidConnectorAccessControl.checkCanSetCatalogSessionProperty(ConnectorSecurityContext context, String propertyName) Check if identity is allowed to set the specified property.default voidConnectorAccessControl.checkCanSetColumnComment(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to comment the column in the specified table.default voidConnectorAccessControl.checkCanSetMaterializedViewProperties(ConnectorSecurityContext context, SchemaTableName materializedViewName, Map<String, Optional<Object>> properties) Check if identity is allowed to set the properties of the specified materialized view.default voidConnectorAccessControl.checkCanSetRole(ConnectorSecurityContext context, String role) default voidConnectorAccessControl.checkCanSetSchemaAuthorization(ConnectorSecurityContext context, String schemaName, TrinoPrincipal principal) Check if identity is allowed to change the specified schema's user/role.default voidConnectorAccessControl.checkCanSetTableAuthorization(ConnectorSecurityContext context, SchemaTableName tableName, TrinoPrincipal principal) Check if identity is allowed to change the specified table's user/role.default voidConnectorAccessControl.checkCanSetTableComment(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to comment the specified table.default voidConnectorAccessControl.checkCanSetTableProperties(ConnectorSecurityContext context, SchemaTableName tableName, Map<String, Optional<Object>> properties) Check if identity is allowed to set properties to the specified table.default voidConnectorAccessControl.checkCanSetViewAuthorization(ConnectorSecurityContext context, SchemaTableName viewName, TrinoPrincipal principal) Check if identity is allowed to change the specified view's user/role.default voidConnectorAccessControl.checkCanSetViewComment(ConnectorSecurityContext context, SchemaTableName viewName) Check if identity is allowed to comment the specified view.default voidConnectorAccessControl.checkCanShowColumns(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to show columns of tables by executing SHOW COLUMNS, DESCRIBE etc.default voidConnectorAccessControl.checkCanShowCreateFunction(ConnectorSecurityContext context, SchemaRoutineName function) Check if identity is allowed to execute SHOW CREATE FUNCTION.default voidConnectorAccessControl.checkCanShowCreateSchema(ConnectorSecurityContext context, String schemaName) Check if identity is allowed to execute SHOW CREATE SCHEMA.default voidConnectorAccessControl.checkCanShowCreateTable(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to execute SHOW CREATE TABLE, SHOW CREATE VIEW or SHOW CREATE MATERIALIZED VIEWdefault voidConnectorAccessControl.checkCanShowCurrentRoles(ConnectorSecurityContext context) Check if identity is allowed to show current roles.default voidConnectorAccessControl.checkCanShowFunctions(ConnectorSecurityContext context, String schemaName) Check if identity is allowed to show functions by executing SHOW FUNCTIONS.default voidConnectorAccessControl.checkCanShowRoleGrants(ConnectorSecurityContext context) Check if identity is allowed to show its own role grants.default voidConnectorAccessControl.checkCanShowRoles(ConnectorSecurityContext context) Check if identity is allowed to show roles.default voidConnectorAccessControl.checkCanShowSchemas(ConnectorSecurityContext context) Check if identity is allowed to execute SHOW SCHEMAS.default voidConnectorAccessControl.checkCanShowTables(ConnectorSecurityContext context, String schemaName) Check if identity is allowed to show metadata of tables by executing SHOW TABLES, SHOW GRANTS etc..default voidConnectorAccessControl.checkCanTruncateTable(ConnectorSecurityContext context, SchemaTableName tableName) Check if identity is allowed to truncate the specified table in this catalog.default voidConnectorAccessControl.checkCanUpdateTableColumns(ConnectorSecurityContext context, SchemaTableName tableName, Set<String> updatedColumns) Check if identity is allowed to update the supplied columns in the specified table in this catalog.default Map<SchemaTableName, Set<String>> ConnectorAccessControl.filterColumns(ConnectorSecurityContext context, Map<SchemaTableName, Set<String>> tableColumns) Filter lists of columns of multiple tables to those visible to the identity.default Set<SchemaFunctionName> ConnectorAccessControl.filterFunctions(ConnectorSecurityContext context, Set<SchemaFunctionName> functionNames) Filter the list of functions to those visible to the identity.ConnectorAccessControl.filterSchemas(ConnectorSecurityContext context, Set<String> schemaNames) Filter the list of schemas to those visible to the identity.default Set<SchemaTableName> ConnectorAccessControl.filterTables(ConnectorSecurityContext context, Set<SchemaTableName> tableNames) Filter the list of tables and views to those visible to the identity.default Optional<ViewExpression> ConnectorAccessControl.getColumnMask(ConnectorSecurityContext context, SchemaTableName tableName, String columnName, Type type) Deprecated.default Map<ColumnSchema, ViewExpression> ConnectorAccessControl.getColumnMasks(ConnectorSecurityContext context, SchemaTableName tableName, List<ColumnSchema> columns) Bulk method for getting column masks for a subset of columns in a table.default List<ViewExpression> ConnectorAccessControl.getRowFilters(ConnectorSecurityContext context, SchemaTableName tableName) Get row filters associated with the given table and identity.
ConnectorAccessControl.getColumnMasks(ConnectorSecurityContext, SchemaTableName, List)