public static void denyCreateTable(String tableName) { denyCreateTable(tableName, null); }
/** * Check if identity is allowed to create the specified table in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanCreateTable(Identity identity, CatalogSchemaTableName table) { denyCreateTable(table.toString()); }
@Override public void checkCanCreateTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { denyCreateTable(tableName.toString()); }
@Override public void checkCanCreateTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { denyCreateTable(tableName.toString()); }
/** * Check if identity is allowed to create the specified table in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanCreateTable(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName tableName) { denyCreateTable(tableName.toString()); }
@Override public void checkCanCreateTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!isDatabaseOwner(transaction, identity, tableName.getSchemaName())) { denyCreateTable(tableName.toString()); } }
@Override public void checkCanCreateTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!isDatabaseOwner(identity, tableName.getSchemaName())) { denyCreateTable(tableName.toString()); } }
@Override public void checkCanCreateTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { if (shouldDenyPrivilege(identity.getUser(), tableName.getObjectName(), CREATE_TABLE)) { denyCreateTable(tableName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanCreateTable(transactionId, identity, tableName); } }
public static void denyCreateTable(String tableName) { denyCreateTable(tableName, null); }
/** * Check if identity is allowed to create the specified table in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanCreateTable(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName tableName) { denyCreateTable(tableName.toString()); }
/** * Check if identity is allowed to create the specified table in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanCreateTable(Identity identity, CatalogSchemaTableName table) { denyCreateTable(table.toString()); }
@Override public void checkCanCreateTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { denyCreateTable(tableName.toString()); }
@Override public void checkCanCreateTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { denyCreateTable(tableName.toString()); }
@Override public void checkCanCreateTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!checkDatabasePermission(identity, tableName.getSchemaName(), OWNERSHIP)) { denyCreateTable(tableName.toString()); } }
@Override public void checkCanCreateTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { if (shouldDenyPrivilege(identity.getUser(), tableName.getObjectName(), CREATE_TABLE)) { denyCreateTable(tableName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanCreateTable(transactionId, identity, tableName); } }