public static void denyInsertTable(String tableName) { denyInsertTable(tableName, null); }
/** * Check if identity is allowed to insert into the specified table in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanInsertIntoTable(Identity identity, CatalogSchemaTableName table) { denyInsertTable(table.toString()); }
/** * Check if identity is allowed to insert into the specified table in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanInsertIntoTable(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName tableName) { denyInsertTable(tableName.toString()); }
@Override public void checkCanInsertIntoTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { denyInsertTable(tableName.toString()); }
@Override public void checkCanInsertIntoTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { denyInsertTable(tableName.toString()); }
@Override public void checkCanInsertIntoTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!checkTablePermission(identity, tableName, INSERT)) { denyInsertTable(tableName.toString()); } }
@Override public void checkCanInsertIntoTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!checkTablePermission(transaction, identity, tableName, INSERT)) { denyInsertTable(tableName.toString()); } }
@Override public void checkCanInsertIntoTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { if (shouldDenyPrivilege(identity.getUser(), tableName.getObjectName(), INSERT_TABLE)) { denyInsertTable(tableName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanInsertIntoTable(transactionId, identity, tableName); } }
public static void denyInsertTable(String tableName) { denyInsertTable(tableName, null); }
/** * Check if identity is allowed to insert into the specified table in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanInsertIntoTable(Identity identity, CatalogSchemaTableName table) { denyInsertTable(table.toString()); }
@Override public void checkCanInsertIntoTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { denyInsertTable(tableName.toString()); }
/** * Check if identity is allowed to insert into the specified table in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanInsertIntoTable(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName tableName) { denyInsertTable(tableName.toString()); }
@Override public void checkCanInsertIntoTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { denyInsertTable(tableName.toString()); }
@Override public void checkCanInsertIntoTable(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName tableName) { if (!checkTablePermission(identity, tableName, INSERT)) { denyInsertTable(tableName.toString()); } }
@Override public void checkCanInsertIntoTable(TransactionId transactionId, Identity identity, QualifiedObjectName tableName) { if (shouldDenyPrivilege(identity.getUser(), tableName.getObjectName(), INSERT_TABLE)) { denyInsertTable(tableName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanInsertIntoTable(transactionId, identity, tableName); } }