Package io.trino.plugin.base.security
Class ReadOnlySystemAccessControl
- java.lang.Object
-
- io.trino.plugin.base.security.ReadOnlySystemAccessControl
-
- All Implemented Interfaces:
SystemAccessControl
public class ReadOnlySystemAccessControl extends Object implements SystemAccessControl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadOnlySystemAccessControl.Factory
-
Constructor Summary
Constructors Constructor Description ReadOnlySystemAccessControl()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.security.SystemAccessControl
checkCanAddColumn, checkCanCreateMaterializedView, checkCanCreateSchema, checkCanCreateTable, checkCanCreateView, checkCanDeleteFromTable, checkCanDropColumn, checkCanDropMaterializedView, checkCanDropSchema, checkCanDropTable, checkCanDropView, checkCanExecuteProcedure, checkCanGrantSchemaPrivilege, checkCanGrantTablePrivilege, checkCanImpersonateUser, checkCanInsertIntoTable, checkCanKillQueryOwnedBy, checkCanReadSystemInformation, checkCanRefreshMaterializedView, checkCanRenameColumn, checkCanRenameSchema, checkCanRenameTable, checkCanRenameView, checkCanRevokeSchemaPrivilege, checkCanRevokeTablePrivilege, checkCanSetColumnComment, checkCanSetSchemaAuthorization, checkCanSetTableAuthorization, checkCanSetTableComment, checkCanSetViewAuthorization, checkCanShowCreateSchema, checkCanShowCreateTable, checkCanUpdateTableColumns, checkCanWriteSystemInformation, getColumnMask, getEventListeners, getRowFilter
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkCanSetUser
public void checkCanSetUser(Optional<Principal> principal, String userName)
- Specified by:
checkCanSetUserin interfaceSystemAccessControl
-
checkCanExecuteQuery
public void checkCanExecuteQuery(SystemSecurityContext context)
- Specified by:
checkCanExecuteQueryin interfaceSystemAccessControl
-
checkCanViewQueryOwnedBy
public void checkCanViewQueryOwnedBy(SystemSecurityContext context, String queryOwner)
- Specified by:
checkCanViewQueryOwnedByin interfaceSystemAccessControl
-
filterViewQueryOwnedBy
public Set<String> filterViewQueryOwnedBy(SystemSecurityContext context, Set<String> queryOwners)
- Specified by:
filterViewQueryOwnedByin interfaceSystemAccessControl
-
checkCanSetSystemSessionProperty
public void checkCanSetSystemSessionProperty(SystemSecurityContext context, String propertyName)
- Specified by:
checkCanSetSystemSessionPropertyin interfaceSystemAccessControl
-
checkCanAccessCatalog
public void checkCanAccessCatalog(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanAccessCatalogin interfaceSystemAccessControl
-
checkCanSelectFromColumns
public void checkCanSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns)
- Specified by:
checkCanSelectFromColumnsin interfaceSystemAccessControl
-
checkCanSetCatalogSessionProperty
public void checkCanSetCatalogSessionProperty(SystemSecurityContext context, String catalogName, String propertyName)
- Specified by:
checkCanSetCatalogSessionPropertyin interfaceSystemAccessControl
-
checkCanCreateViewWithSelectFromColumns
public void checkCanCreateViewWithSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns)
- Specified by:
checkCanCreateViewWithSelectFromColumnsin interfaceSystemAccessControl
-
checkCanGrantExecuteFunctionPrivilege
public void checkCanGrantExecuteFunctionPrivilege(SystemSecurityContext context, String functionName, TrinoPrincipal grantee, boolean grantOption)
- Specified by:
checkCanGrantExecuteFunctionPrivilegein interfaceSystemAccessControl
-
filterCatalogs
public Set<String> filterCatalogs(SystemSecurityContext context, Set<String> catalogs)
- Specified by:
filterCatalogsin interfaceSystemAccessControl
-
filterSchemas
public Set<String> filterSchemas(SystemSecurityContext context, String catalogName, Set<String> schemaNames)
- Specified by:
filterSchemasin interfaceSystemAccessControl
-
filterTables
public Set<SchemaTableName> filterTables(SystemSecurityContext context, String catalogName, Set<SchemaTableName> tableNames)
- Specified by:
filterTablesin interfaceSystemAccessControl
-
checkCanShowColumns
public void checkCanShowColumns(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanShowColumnsin interfaceSystemAccessControl
-
filterColumns
public Set<String> filterColumns(SystemSecurityContext context, CatalogSchemaTableName tableName, Set<String> columns)
- Specified by:
filterColumnsin interfaceSystemAccessControl
-
checkCanShowSchemas
public void checkCanShowSchemas(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanShowSchemasin interfaceSystemAccessControl
-
checkCanShowTables
public void checkCanShowTables(SystemSecurityContext context, CatalogSchemaName schema)
- Specified by:
checkCanShowTablesin interfaceSystemAccessControl
-
checkCanShowRoles
public void checkCanShowRoles(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanShowRolesin interfaceSystemAccessControl
-
checkCanExecuteFunction
public void checkCanExecuteFunction(SystemSecurityContext systemSecurityContext, String functionName)
- Specified by:
checkCanExecuteFunctionin interfaceSystemAccessControl
-
-