@Override public void checkCanDropSchema(ConnectorTransactionHandle transactionHandle, Identity identity, String schemaName) { denyDropSchema(schemaName); }
public static void denyDropSchema(String schemaName) { denyDropSchema(schemaName, null); }
/** * Check if identity is allowed to drop the specified schema in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropSchema(ConnectorTransactionHandle transactionHandle, Identity identity, String schemaName) { denyDropSchema(schemaName); }
@Override public void checkCanDropSchema(ConnectorTransactionHandle transaction, Identity identity, String schemaName) { if (!isDatabaseOwner(transaction, identity, schemaName)) { denyDropSchema(schemaName); } }
/** * Check if identity is allowed to drop the specified schema in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropSchema(Identity identity, CatalogSchemaName schema) { denyDropSchema(schema.toString()); }
@Override public void checkCanDropSchema(TransactionId transactionId, Identity identity, CatalogSchemaName schemaName) { denyDropSchema(schemaName.toString()); }
@Override public void checkCanDropSchema(TransactionId transactionId, Identity identity, CatalogSchemaName schemaName) { if (shouldDenyPrivilege(identity.getUser(), schemaName.getSchemaName(), DROP_SCHEMA)) { denyDropSchema(schemaName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanDropSchema(transactionId, identity, schemaName); } }
/** * Check if identity is allowed to drop the specified schema in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropSchema(ConnectorTransactionHandle transactionHandle, Identity identity, String schemaName) { denyDropSchema(schemaName); }
public static void denyDropSchema(String schemaName) { denyDropSchema(schemaName, null); }
/** * Check if identity is allowed to drop the specified schema in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropSchema(Identity identity, CatalogSchemaName schema) { denyDropSchema(schema.toString()); }