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