/** * Check if identity is allowed to execute SHOW SCHEMAS in a catalog. * <p> * NOTE: This method is only present to give users an error message when listing is not allowed. * The {@link #filterSchemas} method must handle filter all results for unauthorized users, * since there are multiple way to list schemas. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanShowSchemas(ConnectorTransactionHandle transactionHandle, Identity identity) { denyShowSchemas(); }
/** * Check if identity is allowed to execute SHOW SCHEMAS in a catalog. * <p> * NOTE: This method is only present to give users an error message when listing is not allowed. * The {@link #filterSchemas} method must filter all results for unauthorized users, * since there are multiple ways to list schemas. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanShowSchemas(Identity identity, String catalogName) { denyShowSchemas(); }
@Override public void checkCanShowSchemas(TransactionId transactionId, Identity identity, String catalogName) { denyShowSchemas(); }
public static void denyShowSchemas() { denyShowSchemas(null); }
/** * Check if identity is allowed to execute SHOW SCHEMAS in a catalog. * <p> * NOTE: This method is only present to give users an error message when listing is not allowed. * The {@link #filterSchemas} method must handle filter all results for unauthorized users, * since there are multiple way to list schemas. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanShowSchemas(ConnectorTransactionHandle transactionHandle, Identity identity) { denyShowSchemas(); }
public static void denyShowSchemas() { denyShowSchemas(null); }
/** * Check if identity is allowed to execute SHOW SCHEMAS in a catalog. * <p> * NOTE: This method is only present to give users an error message when listing is not allowed. * The {@link #filterSchemas} method must filter all results for unauthorized users, * since there are multiple ways to list schemas. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanShowSchemas(Identity identity, String catalogName) { denyShowSchemas(); }