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